O'Reilly logo

Functional Programming in JavaScript by Luis Atencio

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required