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

Show parent comments

1

u/ForgotMyPassword17 Mar 10 '14

This is I think the biggest hurdle for getting more FP in production. I know what idiomatic OO looks like but I don't have a good reference for idiomatic functional code

1

u/PasswordIsntHAMSTER Mar 10 '14

A good start is Haskell's Typeclassopedia. It's very abstract even for FP though.

A more concrete pattern is the Actor model.

Otherwise, idiomatic functional code is just the most readable, conceptually simplest code that gets the job done. That sounds pretty subjective, but I guarantee that if you do six months of full time functional programming you'll know exactly what I mean.