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

Functional Programming Principles in Scala
École Polytechnique Fédérale de Lausanne via Coursera
Functional Program Design in Scala
École Polytechnique Fédérale de Lausanne via Coursera
Paradigms of Computer Programming
Université catholique de Louvain via edX
Introduction to Functional Programming
Delft University of Technology via edX
Paradigms of Computer Programming – Fundamentals
Université catholique de Louvain via edX