Learning design patterns
Design patterns is a class that I see developers take often while on the job, mainly as a refresher as it is taught in college. It ensures a common ground of understanding, which is why I encourage TPMs to take the class as well. Here, we’ll explore two groups of design patterns: creational and structural. There are more, but these are the two that I find the most useful for a TPM to have a good understanding of. To learn about other design patterns, check out the Further reading section in this chapter.
Creational design patterns
Creational design patterns are related to the creation of objects. By creation, I’m referring to how to create an instance of an object, which is also referred to as instantiation. We’ll discuss three of the more common creational design patterns next.
Builder pattern
The builder pattern separates the construction of an object from the specific composition of that object. As an example, we’...