September 2023
Intermediate to advanced
470 pages
11h 12m
English
In this chapter, we learned how to implement commands in a functional way.
First, we introduced the Command pattern to better control the changes to our system, and then we used the event sourcing pattern to store all the changes of the state of our system.
Finally, we connected the HTML UI to our commands and events so users can now add and modify ToDo lists.
In the next chapter, we’ll look at how to handle errors in a more sophisticated way using functional types.
Read now
Unlock full access