Quantcast
Channel: Frank Sun » Design Pattern
Viewing all articles
Browse latest Browse all 13

Design Principle

$
0
0
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 →

Viewing all articles
Browse latest Browse all 13

Trending Articles