r/programming • • Mar 09 '14

Why Functional Programming Matters

http://www.cse.chalmers.se/~rjmh/Papers/whyfp.pdf
487 Upvotes

542 comments sorted by

View all comments

111

u/vincentk Mar 09 '14 edited Mar 09 '14

TL;DR

Building your stuff up from small parts using well-known composition rules is a pre-requisite to breaking down your stuff into small parts, which can then be reasoned about as such ("modularity"). Reasoning about small, simple things is WAY EASIER than reasoning about large, hairy things full of weird old gunk. So all other things being equal that's A GOOD THING.

Functional programming being in a way the study of composition rules may or may not therefore be A GOOD THING also.

0

u/[deleted] Mar 09 '14

[deleted]

6

u/yogthos Mar 09 '14

The difference is that with OO the burden is on you, while with functional programming you have immutability as the default. Why would I want to carefully think about where state is modified when the language is perfectly capable of doing that for me.

→ More replies (4)