Summary
In this chapter, we learned about how to add cure and prevention codes inside the application and save the programming resources by halting undesired situations.
We saw how to use global variables exported from the application module in order to store local variables and analyze their contents on demand.
We implemented a snapshot collector function to investigate the reasons of an incident and work on solutions based on the given situation. We saw how that snapshot function revealed the URLs pointing to an irrelevant website (Accor Hotels) with irrelevant contents (hotel guest comments).
With those basic principals now we can expand the prevention mechanisms to all concepts provided in this book. For example we can use them for content extraction, number of valid HTTP requests and so on.
We used the Sherlock Project as a platform to study Angular Services and how we can manage data flow with them. Now it is your turn to take the current project to the next level, by adding all bells...