Recalling its previous panga Yu teacher to the principle of open software again.
SOLID:
Single responsibility principle S
Open Closed Principle O
Richter substitution principle L
Interface Segregation Principle I
Dependency Inversion Principle D
All programming is maintenance program, because you rarely write original code. Only you typed in the first 10 minutes of the code is original, nothing more.
Dave Tomas 和 Andy Hunt