Re:Clojure and the technology adoption curve
by SpaceCadetJones on Tuesday November 10, 2015 @03:50PM
(#10542380)
In a nutshell:
- Functional programming style tends to make your programs easier to reason about, as it avoids state/mutation. This also makes testing your programs much easier, and can also make concurrency easier.
- It's a different way of thinking. Some problems are much easier to solve in a functional fashion, some are much easier in a imperative fashion.
- Functional code can increase code re-usability as it decouples data from its operations
- A lot of functional languages have very advanced type systems compared to say, Java or C++. I'm personally a big fan of static typing and after learning F# I am sorely missing its type system in C#
- Functional programming style tends to make your programs easier to reason about, as it avoids state/mutation. This also makes testing your programs much easier, and can also make concurrency easier.
- It's a different way of thinking. Some problems are much easier to solve in a functional fashion, some are much easier in a imperative fashion.
- Functional code can increase code re-usability as it decouples data from its operations
- A lot of functional languages have very advanced type systems compared to say, Java or C++. I'm personally a big fan of static typing and after learning F# I am sorely missing its type system in C#