Chapter 1. Stop listening!

This chapter covers

  • What FRP is
  • What events are, and how they cause trouble
  • What FRP is for: the problem we’re trying to solve
  • The benefits of FRP
  • How an FRP system works
  • A different way of thinking that underlies FRP

Welcome to our book! We love functional reactive programming (FRP). Many people like the idea too, yet they aren’t entirely clear what FRP is and what it will do for them. The short answer: it comes in the form of a simple library in a standard programming language, and it replaces listeners (also known as callbacks) in the widely used observer pattern, making your code cleaner, clearer, more robust, and more maintainable—in a word, simpler.

It’s more than this: FRP is a very different way of ...

Get Functional Reactive Programming 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.