Skip to content
JS

State Monad in JavaScript

Course on egghead by Ian Hofmann-Hicks

View on egghead (opens in a new tab)
46 min
LengthVideo runtime
Free
Price modelListed as free
9
Lessons
5.0
Rating out of 54 ratings on egghead
Dec 2017
Published15 Dec 2017

About this course

Description from egghead

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.

What it covers

9 lessons
  1. 1Construct a Stateful Monad
  2. 2Map And Evaluate State With A Stateful Monad
  3. 3Substitute State Using Functions With A State Monad
  4. 4Update The State Of A State Monad
  5. 5Modify The State Of A State Monad
  6. 6Combine Stateful Computations Using A State Monad
  7. 7Combine Stateful Computations Using Composition
  8. 8Apply Stateful Computations To Functions
  9. 9Refactor Stateful Code To Use A State Monad

Similar functional programming courses

  1. Step-by-Step Async JavaScript with RxJS

    egghead · John Lindquist · 18 lessons · 4.9 from 6 ratings · Mar 2016

    46 minSubscription
    egghead184.9 (6)Mar 2016
  2. Introduction to Reactive Programming

    egghead · André Staltz · 10 lessons · Oct 2015

    51 minSubscription
    egghead10Oct 2015
  3. Save time avoiding common mistakes using RxJS

    egghead · André Staltz · 12 lessons · 4.9 from 11 ratings · May 2017

    52 minSubscription
    egghead124.9 (11)May 2017
  4. Functional JavaScript First Steps, v2

    Master.dev · Anjana Vakil · 24 lessons · Feb 2025

    3 h 27 minSubscription
    Master.dev24Feb 2025
  5. Hardcore Functional Programming in JavaScript, v2

    Master.dev · Brian Lonsdorf · 37 lessons · Mar 2020

    3 h 45 minSubscription
    Master.dev37Mar 2020
  6. The Hard Parts of Functional JavaScript

    Master.dev · Will Sentance · 37 lessons · Oct 2019

    4 h 54 minSubscription
    Master.dev37Oct 2019
  7. Functional Programming Patterns With RamdaJS!

    Educative · Yazeed Bzadough · 52 lessons · Apr 2026

    Beginner5 hFree
    Educative52Apr 2026
  8. Building Reactive Applications with RxJS

    Educative · Nasi Jofche · 28 lessons · Apr 2026

    Beginner6 hSubscription
    Educative28Apr 2026

A hyphen means the provider's catalogue does not state the value.

Same topic, nearest in length, up to three from any one provider.

Data read from the egghead catalogue on 28 Nov 2026. How the data is collected.

    Compare