r/functionalprogramming • • May 26 '24

Question New to functional programming

24 Upvotes

55 comments sorted by

View all comments

4

u/malexj93 May 26 '24

My suggestion is probably going to be unpopular, but I'll qualify it. If you are the type of person that enjoys math (or the mathematical underpinnings of programming/CS), or you otherwise just find yourself confused or curious about why functional programming is the way it is, learning some category theory may be helpful. It's not necessary by any means, but it personally helped me understand the philosophies and the structures at a more big-picture level.

Bartosz Milewski's materials are a great place to start, as they are slanted towards programmers who don't have experience with higher mathematics. He's got a blog series, a video lecture series, and a textbook, and there's an unofficial LaTeX source version on GitHub, so there's a lot of ways to get the material.

That said, if you happen to have an undergraduate degree in mathematics (or equivalent independent study), then I highly suggest starting with Aluffi's "Algebra: Chapter 0" and then move on to maybe the first two volumes of Borceux's "Handbook of Categorical Algebra". I know it sounds like it's more algebra than category theory, but the two are pretty inseparable in serious mathematics, and both are incredibly applicable to functional programming.

If any/all of this sounds scary or unfun to you, then ignore the above and just pick one of the languages someone else suggested and start writing code.