1. Separating what changes from what stays the same - Take the parts that vary and encapsulate them, so that later you can alter or extend the parts that vary without affecting those that don’t.Example: Strategy pattern 2. Program to an interface, not an implementation. “program to an interface” really means program to a supertype … Read More →
↧