Summary
In this chapter, you learned about the presenter pattern and how it can be used to move representation logic closer to views. You now understand the drawbacks of keeping presentation logic in models and the downsides of using view helpers. You learned about open and closed presenters, as well as about the general decorator pattern.
You familiarized yourself with the common practices and conventions used to form/shape an abstraction layer from presenters. You’ve learned about representation patterns used in API applications, such as serializers, and how they’re common to presenters.
This chapter finishes the topic of reducing models’ responsibility. In the next chapter, we will talk about one of the vital security concerns and the corresponding abstractions—authorization.