Pragmatic Functional Programming

Click for: original source

Robert C. Martin (Uncle Bob) post about how move to functional programming began and happened.

He starts with Moore’s law and processor development and how multi-core processors changed the way we design software.

One of software designers responses was to learn Functional Programming (FP). One of our responses was to learn Functional Programming (FP). FP strongly discourages changing the state of a variable once initialized. This has a profound effect upon concurrency.

Authors argues that FP is easier to write, easier to read, easier to test, and easier to understand. Why? Because you don’t have to keep track of the state of the system. The state of variables can’t change; so the state of the system remains unaltered.

Interesting article with bit of code in Clojure.

[Read More]

Tags programming functional-programming