Weave Patterns into Your Code
A primary purpose for learning design patterns is to become a better developer. Think about how to use patterns in the code base you work with most often. Here, you have two choices: Apply design patterns as you add new code, or apply design patterns through refactoring. If part of your code is complex and difficult to maintain, you may be able to improve it by refactoring the code and using a design pattern. Before diving into such a project, make sure that you have a customer for the result. Also, before you change the code, be sure to create an automated test suite for the code that you are refactoring.
Now, suppose that you understand the patterns you have studied and are determined to use them carefully and ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access