YoVDO

State Monad in JavaScript

Offered By: egghead.io

Tags

Javascript Courses Functional Programming Courses

Course Description

Overview

Dealing with stateful computations can be a challenge when writing purely functional JavaScript. They can result in undesired variable declaration at best and boilerplate state management code in every function dependent on the state at its worst.
In this course we will explore a well know Algebraic Data Type named State, that is built from the ground up to address these cerns. While this course will be focused around a State implementation provided by a library named crocks, a majority of the techniques we learn here can be used with most of the State implementations in the wild.

Syllabus

  • Construct a Stateful Monad
  • Map And Evaluate State With A Stateful Monad
  • Substitute State Using Functions With A State Monad
  • Update The State Of A State Monad
  • Modify The State Of A State Monad
  • Combine Stateful Computations Using A State Monad
  • Combine Stateful Computations Using Composition
  • Apply Stateful Computations To Functions
  • Refactor Stateful Code To Use A State Monad

Taught by

Ian Hofmann-Hicks

Related Courses

Programming Languages
University of Virginia via Udacity
Building a Basic Website
University of Massachusetts Amherst via Independent
iDESWEB, Introducción al desarrollo web
Miríadax
Web Engineering II: Developing Mobile HTML5 Apps
Technische Hochschule Mittelhessen via iversity
Web Application Architectures
University of New Mexico via Coursera