Beware of functional programming in Java!
-
While learning FP, I thought I should read a blog post, which used Java to help me bridge the OOP and FP.
In this article I will explain the most widely used ideas from functional languages using examples written in Java (yes, you could write functional programs in Java if you felt particularly masochistic).
Time to say goodbye to a good guide I think.
The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~
-
This sounds similar to: "Beware of driving your car on water!" Seriously: Would you think C is a good choice when trying to build a Django based website? Would it be a good idea to learn (actual details, not just using of some library) about raw USB signals processing using Ruby? Java has its uses ... it's just not what you should look at when you actually wanted to do FP. Yes J8 had introduced the lambda (and some minor FP stuff), and yes more is expected later. But that's like stating: "Because my car has a GPS built in, it should already be a self driving car".
-
This sounds similar to: "Beware of driving your car on water!" Seriously: Would you think C is a good choice when trying to build a Django based website? Would it be a good idea to learn (actual details, not just using of some library) about raw USB signals processing using Ruby? Java has its uses ... it's just not what you should look at when you actually wanted to do FP. Yes J8 had introduced the lambda (and some minor FP stuff), and yes more is expected later. But that's like stating: "Because my car has a GPS built in, it should already be a self driving car".
irneb wrote:
Because my car has a GPS built in, it should already be a self driving car
Well, what are you waiting for? Get on it!
-
irneb wrote:
Because my car has a GPS built in, it should already be a self driving car
Well, what are you waiting for? Get on it!
I already have it, don't I? Only it don't drive so well ... I mean I turn on the engine, start up the GPS, put it in drive and watch it go ... but it still seems to drive into walls! Damn! What's wrong? IMO, that's the same as this idea of J8's lambda's ... i.e. just because there's some features necessary for FP now built into Java, this article seems to expect Java to be "good at FP". And then finding it's not ... :laugh: