r/purescript • u/imright_anduknowit • Jun 15 '21
PureScript Book: Functional Programming Made Easier: A Step-by-Step Guide
I’m excited to announce that I finished my book, Functional Programming Made Easier: A Step-by-Step Guide. By the end of this book, the reader will not only learn Functional Programming, but they will learn PureScript.
https://leanpub.com/fp-made-easier
This book takes the reader from knowing zero about Functional Programming to writing a Full-Stack application using HTTPure on the backend and Halogen 6on the front-end.
Below is a list of some of what’s covered (in no particular order):
- Pure Functions
- Immutability
- Higher-order Functions
- Currying
- Partial Application
- Recursion
- Tail Recursion
- Pattern Matching
Types
- Polymorphic
- Monomorphic
- Sum
- Product
- Typeclasses
- Multi-parametric Typeclasses
- Overlapping Instances
- Orphaned Instances
- Functional Dependencies
- Isomorphisms
- Homomorphisms
- Abstract Algebra
- Magma
Semigroup
- Monoid
- Group
- Abelian Group (aka Commutative Group)
- Semiring
- Ring and Commutative RingEuclidean Ring
- Folds
- Algebraic Data Types (ADT)
- Functors (Covariant, Contravariant, Invariant)
- Functors of Values vs Functions
- Bifunctors
- Profunctors
- Applicative Functors
- Traversables
- Foldables
- Applicative Parsers
- Monads
- Monadic Parsers
- Monad Stacks (aka Monad Transformers)
Category Theory (superficially)
- Definition
- Hask Category
- Functors
- Applicative
- Kleisli Category
Some of the skills it’ll teach you along the way are:
- Interpreting Compiler Errors
- Type Holes
- Effects (Synchronous and Asynchronous)
- AVars and Refs (Managed Global State)
- Data Bus
- Ajax
- JSON Decoding
- Foreign Function Interface (FFI)
From the exercises and final project you will learn:
- Hash Routing
- Static File Servers
- CORS
- Salt Hashing Passwords
View all comments
Show parent comment
3
u/imright_anduknowit Jul 19 '21
Thank you so much for writing to me. I'm so happy to hear your experience.
I basically wrote the programming book I always wanted and I figured I couldn't be the only person out there with high expectations for such material.
I too couldn't go back to JS once Elm wasn't possible for the server. I had no choice but to forge ahead on my own into Haskell. It wasn't easy and it shouldn't have been so hard. And since there were no books that take you completely through everything, I felt compelled to write one.
I'm so glad it's working for you.
Happy Learning,
Charles Scalfani