I’m more interested in learning practical application of the principles in order to write better code.
It was written before the ReScript rebranding, but not much has changed (other than the ReScript syntax and some compiler outputs). I still think it’s a good way to get started.
It’s on sale right now ($5 for the ebook).
If you are looking for a free alternative, Prof. Dan Grossman’s free online course is a great resource as well: https://www.coursera.org/learn/programming-languages . It uses Standard ML as a teaching language, but more than 90% of the concepts carry over intact to ReScript.
I forgot that I had purchased this book last year. I guess I got side-tracked. Thanks for responding though and providing the additional resource as well. Nothing wrong with shameless self-promotion when it benefits the community
Maybe try Scala? It’s known as a relatively practical language as functional languages go, and it’s sort of got a similar syntax to ReScript (like, it has some significant whitespace but also uses some C-like braces, parentheses, and semicolons).
Or elm? The syntax of Elm is really different, but because it’s exclusively a browser-side thing, it’s documentation ends up being very practical.
This has been my #1 recommendation for many years now and IMO is one of the best ways to learn Functional Programming particularly for JS devs. It gives a very good ground level understanding of FP; at my company we put all new JS developers through it during their training to give them a leg up on understanding FP techniques we use in TypeScript.