Reason Bootcamp

@VladimirNovick

GDE & Independent Consultant

Web / Mobile / VR / AR / IoT

vnovick.com

Reason lets you write simple, fast and quality type-safe code while leveraging both the JavaScript & OCaml ecosystems.

A functional programming language with Hindley–Milner type system

Can be compiled to bytecode, native code or JS

Reason syntax is very familiar to JS​

general purpose programming language (1996)

Facebook is using it in several projects (Flow)

Performance and compilation time is blazing fast​

Why Ocaml

Amazing community

If it compiles - it works

A language for writing React (first React prototypes were in SML)

Side effects and other escape hatches

Amazing tooling in the language itself

Agenda - Day1

  • Values & Types
  • Bindings
  • Scopes
  • Tuples
  • Records
  • Variants
  • Pattern Matching

Agenda - Day2

Agenda - Day3

  • Recap
  • Modules advanced
  • Functors
  • JS Interop and FFI
  • Bucklescript

Agenda - Day4

  • Recap
  • Continue with Bucklescript 
  • Bucklescript build system
  • Writing bindings for libraries
  • ReasonReact
  • Leftovers and further learning

{ Show me some code }!

It's time for some homework

Tweet your solutions at me @VladimirNovick

Bootcamp repo with all demos

Thank You

@VladimirNovick

Reason Bootcamp - Day 1

By Vladimir Novick

Reason Bootcamp - Day 1

Values Types Bindings Scopes Pattern Matching Variants Records Tuples, Lists, Arrays

  • 1,536