Chapter 5. Design patterns against complexity

This chapter covers

  • The issues with imperative error-handling schemes
  • Using containers to prevent access to invalid data
  • Implementing functors as a mechanism for data transformation
  • Understanding monads as data types that facilitate composition
  • Consolidating error-handling strategies with monadic types
  • Interleaving and composing monadic types

Null-references ... was a billion-dollar mistake.

Tony Hoare, InfoQ

Some people mistakenly view functional programming as a paradigm devoted only to academic problems, mostly numerical in nature, that are, for the most part, oblivious to the probabilities of failure real-life systems deal with. In recent years, however, people are finding that functional ...

Get Functional Programming in JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.