Why Functional Programming?
So what's the best language for exploring FP's benefits? It depends.
Let's say you're heavily invested in Java skills and tools, and don't want to toss aside the code libraries and the skills and tools you count on. Then you should take a look at Scala.
Scala is a multi-paradigm language that integrates essential features of iterative object-oriented programming with the FP paradigm. It compiles to JVM bytecodes, you can use Java libraries in your Scala programs and inherit from Java classes. You depend on Eclipse? There's a plug-in. Scala lets you isolate those parts of your code that truly need the benefits of FP and write everything else in Java.
Mike Swaine ticks off today's functional programming languages in a list: Scala and F# (for Java and C# environments), Erlang for the hard core, and Haskell for the academically inclined.
Scala got a lot of attention when the Twitter server was re-written in Scala, and many serious java developers are either picking up Scala now, or have it on their schedule for the next year.
There's never a bad time to learn another programming language.



Comments [0]