Design Patterns and Principles
This chapter is about design patterns and principles that provide tried-and-tested solutions to common problems. By using this guidance, developers avoid reinventing the wheel, which saves time and effort and leads to more reusable and maintainable code. This benefit applies to all the advice in this chapter.
As you read this chapter, especially about guidelines that developers should follow, you might find yourself rolling your eyes. Many of these ideas could be categorized as “common sense.” Sadly, “common sense” is less common than one might hope!
In any case, it is useful to have a checklist of good practices. And knowing all the acronyms and concepts covered in this chapter could save you from an embarrassing, “Sorry, I haven’t heard of that” in an interview. Design patterns and principles create a common vocabulary among developers. When a team member refers to a pattern or principle, other...