Hello there, Developer!
Does your codebase feel like you're stitching together parts from different animals?
Find it takes longer and longer to change things as your codebase grows?
Have a hard time understanding where responsibilities begin and end?
Hear things like “abstract types” and “polymorphic variants”, but don’t know how to use them to make your projects easier to work with?
I’m here to help! Practical ReScript is a collection of design patterns I found in production libraries and apps to make code cheaper to change, easier to understand, and faster.
This is the book I wish I had when I got started writing ReScript.
In this book you'll learn:
- How to make the type system work for you
- How to build abstractions that help you deliver and refactor
- How to apply design patterns to your project
See the preliminary table of contents below:
Table of Contents
Part I: A Tour of the Language
- The core of ReScript
- Understanding the Type System
- Keeping Things Fast
Part II: Thinking with Types
- Data Structures
- Error Handling
- Typed State Machines
- Business Logic
- External Data
- External Logic
Part III: Scaling your Project
- Modules and Interfaces
- Debugging
- Vendoring
Who am I? I’m Leandro Ostera. I started writing this in the open as a series of ReasonML Design Patterns. In my last seven years of writing OCaml, Reason, and now ReScript, I saw a lot of beautiful, pragmatic code, and a lot of code that was pretty awful. It is my hope that this book can help you write your most pragmatic and beautiful ReScript yet.
Feel free to get in touch with me by emailing me to leandro at abstractmachines dot dev, or just ping me on twitter: @leostera.
Top comments (0)