Book Image

Clojure Reactive Programming

Book Image

Clojure Reactive Programming

Overview of this book

Table of Contents (19 chapters)
Clojure Reactive Programming
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Bibliography
Index

Summary


In this chapter, we learned how we can use the techniques from reactive programming we have learned so far in order to write code that is cleaner and easier to maintain. To do so, we insisted on thinking about asynchronous events simply as lists and saw how that way of thinking lends itself quite easily to being modeled as an event stream. All our game has to do, then, is operate on these streams using familiar sequence processing functions.

We also learned the basics of Reagi, a framework for CES similar to the one we created in Chapter 4, Introduction to core.async, but that is more feature rich and robust.

In the next chapter, we will take a break from CES and see how a more traditional reactive approach based on data flows can be useful.