State Monad in JavaScript
Course on egghead by Ian Hofmann-Hicks
- 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
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
- 1Construct a Stateful Monad
- 2Map And Evaluate State With A Stateful Monad
- 3Substitute State Using Functions With A State Monad
- 4Update The State Of A State Monad
- 5Modify The State Of A State Monad
- 6Combine Stateful Computations Using A State Monad
- 7Combine Stateful Computations Using Composition
- 8Apply Stateful Computations To Functions
- 9Refactor Stateful Code To Use A State Monad
Similar functional programming courses
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.