ReasonML: First Look

ReasonML: First Look
ReasonML: First Look
English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 1 Hour | 163 MB

Adding type annotations to JavaScript using TypeScript or similar tools can help with basic debugging, but types have much more to offer. ReasonML—a new syntax for OCaml that compiles to JavaScript—offers advanced developers new possibilities for greater readability, performance, and maintainability of code. ReasonML brings the strong typing and functional style of OCaml to the web in a syntax that’s familiar to JavaScript developers.

In this course, join instructor J. David Eisenberg as he details the most salient features of ReasonML. Explore fundamental concepts, including the built-in ReasonML data types and pattern matching. Learn about the ReasonML type system, defining your own data types, and the power of type inference—which lets you write code without having to manually specify types. Plus, take a look at how JavaScript and ReasonML interoperate as you create a ReasonReact project.

Table of Contents

1 Why ReasonML could be the language for you
2 Base knowledge and setup
3 Variables and data types
4 Functions and annotations
5 Decisions with if and switch expressions
6 Output with Js.log()
7 Challenge Quadratic formula
8 Solution Quadratic formula
9 Creating your own data types
10 Say goodbye to null and undefined
11 Creating modules for reusable code
12 Using collection types
13 Creating record types
14 Challenge Generating random cakes
15 Solution Generating random cakes
16 Web pages with ReasonReact
17 Explore ReasonML resources