News for hackers. Stuff that matters.
Re:Functional Programming using JavaScript by samspot on Monday November 24, 2014 @03:26PM (#8654556)
I hate to be this guy, but learning FP techniques that aren't available in my day to day language isn't terribly exciting. I want to see a short term benefit, so JS or Java focused articles and books are golden for me.
Re:Functional Programming using JavaScript by xwowsersx on Monday November 24, 2014 @03:30PM (#8654570)
The issue is that if you're going to be doing FP, you'll want to use a language in which it's not just possible, but natural and happens without an uphill battle. Similarly, if you're just trying to learn the concepts, you're going to have a lot of noise distracting you if you use a language like JS, etc in which FP concepts are quite unnatural to express.
Re:Functional Programming using JavaScript by coldtea on Monday November 24, 2014 @03:43PM (#8654632)
>The issue is that if you're going to be doing FP, you'll want to use a language in which it's not just possible, but natural and happens without an uphill battle.

Most FP paradigms are natural and quite easy in JS.

And learning Haskell can also be described as an "uphill battle".

Re:Functional Programming using JavaScript by cheepin on Monday November 24, 2014 @05:35PM (#8655121)
I think he was referring to Java
Re:Functional Programming using JavaScript by jbergens on Tuesday November 25, 2014 @06:26AM (#8657273)
Or, you want to use it in your day-to-day job where it might exist thousands upon thousands of lines of code in a not-so-FP language. I think just learning the concepts is great start. If you could rewrite your whole app, please do so. If not, see if you can write some parts with more FP style code. Like using LINQ in C# instead of rewriting everything to F#, or with Java 8 start using streams and other concepts.