Practical ReScript eBook pre-orders are Open!

Practical ReScript eBook pre-orders are Open!

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

  1. The core of ReScript
  2. Understanding the Type System
  3. Keeping Things Fast

Part II: Thinking with Types

  1. Data Structures
  2. Error Handling
  3. Typed State Machines
  4. Business Logic
  5. External Data
  6. External Logic

Part III: Scaling your Project

  1. Modules and Interfaces
  2. Debugging
  3. 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.