Learn Type-Driven Development

A fast paced guide for JavaScript developers for writing safe, fast, and reusable code by leveraging ResaonML's strong static type system

Learn Type-Driven Development

Yawar Amin, Kamon Ayeva

A fast paced guide for JavaScript developers for writing safe, fast, and reusable code by leveraging ResaonML's strong static type system
Packt Subscription
FREE
$9.99/m after trial
eBook
$10.00
RRP $27.99
Save 64%
Print + eBook
$34.99
RRP $34.99
What do I get with a Packt subscription?
  • Exclusive monthly discount - no contract
  • Unlimited access to entire Packt library of 6500+ eBooks and Videos
  • 120 new titles added every month, on new and emerging tech
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
$0.00
$10.00
$34.99
$9.99 p/m after trial
RRP $27.99
RRP $34.99
Subscription
eBook
Print + eBook
Start a FREE 10-day trial

Frequently bought together


Learn Type-Driven Development Book Cover
Learn Type-Driven Development
$ 27.99
$ 10.00
Machine Learning Algorithms - Second Edition Book Cover
Machine Learning Algorithms - Second Edition
$ 39.99
$ 10.00
Buy 2 for $20.00
Save $47.98
Add to Cart

Book Details

ISBN 139781788838016
Paperback180 pages

Book Description

Type-driven development is an approach that uses a static type system to achieve results including safety and efficiency. Types are used to express relationships and other assumptions directly in the code, and these assumptions are enforced by the compiler before the code is run. Learn Type-Driven Development covers how to use these type systems to check the logical consistency of your code.

This book begins with the basic idea behind type-driven development. You’ll learn about values (or terms) and how they contrast with types. As you progress through the chapters, you’ll cover how to combine types and values inside modules and build structured types out of simpler ones. You’ll then understand how to express choices or alternatives directly in the type system using variants, polymorphic variants, and generalized algebraic data types. You’ll also get to grips with sum types, build sophisticated data types from generics, and explore functions that express change in the types of values. In the concluding chapters, you’ll cover advanced techniques for code reuse, such as parametric polymorphism and subtyping.

By end of this book, you will have learned how to iterate through a type-driven process of solving coding problems using static types, together with dynamic behavior, to obtain more safety and speed.

Table of Contents

Chapter 8: Reusing Code with Many Different Types

What You Will Learn

  • Use static types to capture information, making programs safer and faster
  • Learn ReasonML from experienced type-driven developers
  • Enhance safety by simply using basic types
  • Understand the most important type-driven concepts with simple examples
  • Explore a design space using static typing and find the best way to express your system rules
  • Use static types and dynamic runtime in harmony to write even safer and faster code

Authors

Table of Contents

Chapter 8: Reusing Code with Many Different Types

Book Details

ISBN 139781788838016
Paperback180 pages
Read More

Read More Reviews

Recommended for You

Machine Learning Algorithms - Second Edition Book Cover
Machine Learning Algorithms - Second Edition
$ 39.99
$ 10.00
Hands-On Dependency Injection in Go Book Cover
Hands-On Dependency Injection in Go
$ 31.99
$ 10.00
Machine Learning for Finance Book Cover
Machine Learning for Finance
$ 39.99
$ 10.00
Mastering Java 11 - Second Edition Book Cover
Mastering Java 11 - Second Edition
$ 35.99
$ 10.00
Statistics for Machine Learning - Second Edition Book Cover
Statistics for Machine Learning - Second Edition
$ 39.99
$ 10.00
Hands-On Serverless Applications with Kotlin Book Cover
Hands-On Serverless Applications with Kotlin
$ 35.99
$ 10.00