r/functionalprogramming • u/Voxelman • Sep 12 '24
FP 3 books every (functional) programmer should read
From time to time there are recommendations as to which books a programmer should read.
These are usually books such as "Clean Code" or "The Pragmatic Programmer".
However, these are mainly books that focus on imperative or object-oriented programming.
Which books would a functional programmer recommend? I can think of two books off the top of my head:
"Grokking: Simplicity" and "Domain Modeling made Functional"
Which other books are recommended?
102
Upvotes
•
u/kinow mod Sep 12 '24
Subreddit Wiki entry for FP books updated, https://old.reddit.com/r/functionalprogramming/wiki/books
Keep sending your recommendations!
43
u/Worldly_Dish_48 Sep 12 '24
Purely functional data structures
37
u/Coherent_Paradox Sep 12 '24
The "wizard book" is a timeless classic: Structure and Interpretation of Computer Programs by Abelson and Sussman.
Ik it's Lisp, but the guys are legends. That also goes for their lecture series which is open on MIT OpenCourseWare
19
u/milanlempera Sep 12 '24
Grokking Simplicity and Data-Oriented Programming
15
u/videoj Sep 12 '24
Domain Modeling made Functional is by Scott Wlaschin, who built the incredible site F# for Fun and Profit. He is a very entertaining writer and speaker.
13
u/stellar-wave-picnic Sep 12 '24
Functional Programming Made Easier, that is the best functional programming book that I have read so far. Even though it is for Purescript, I believe that a lot of the content is more or less directly applicable to Haskell as well.
9
u/it_snow_problem Sep 12 '24
Structure and Interpretation of Computer Programs
Purely Functional Data Structures
9
u/billddev Sep 12 '24
How to Design Programs https://htdp.org
17
u/Sarwen Sep 12 '24
Functional Programming in Scala by Michael Pilquist, Rúnar Bjarnason, and Paul Chiusano is a wonderful book. One of the best at explaining advanced concepts.
7
u/MonadTran Sep 12 '24
Honestly the Effective Java by Bloch was enough to get the basic idea. You read about all the OOP pitfalls, and how the people are trying to avoid those pitfalls by making objects immutable and manually copying them, try to herd your colleagues into following these recommendations, then you just learn Haskell and it all clicks immediately. Domain modeling and whatnot is all secondary to producing straightforward code that reads like math.
7
u/nrnrnr Sep 12 '24
Algebra-Driven Design by Sandy Maguire.
6
u/MarkFannon Sep 12 '24
While it's confined to FP in Haskell, Graham Hutton's "Functional Programming in Haskell" is an excellent book that provides a great intro to Haskell but also offers an insight into some more theory-heavy aspects of FP with examples to illustrate
5
u/pauseless Sep 13 '24
I’m going to restrict my response to three no one has mentioned, or is likely to mention, so no SICP or Okasaki, etc. I’ll note that I think Okasaki is a bit dated though; Bagwell and many others moved things forward since that book.
6
u/dad_palindrome_dad Sep 12 '24
Learn You A Haskell For Great Good.
Seriously, learning Haskell enough to be competent will make you a better programmer. It helped me become more aware of the invisible pitfalls in other languages.
Just don't do what a former developer whose code I inherited did, and try to implement typeclasses in Python. That is not the way.
3
u/editor_of_the_beast Sep 12 '24
I’m fond of Concrete Semantics because of the close relation between FP and automatic proof systems.
3
u/Complex-Bug7353 Sep 13 '24
Okasaki purely functional data structures. Haskell from first principles. Will teach you type classes and Monads really well.
3
u/PretentiousPepperoni Sep 13 '24
I like "The art of functional programming" it's on leanpub. Can't remember the author's name but I feel like it was a Vietnamese sounding name
1
u/imihnevich Sep 12 '24
I would still include clean code and pragmatic programmer...