Code Complexity


Code Complexity comes from the "distinguishing" of objects.

High Code Maintenance increases with the the number of "distinct objects".


How do you reduce code complexity?

1. Using Decision Tables/Trees can greatly reduce the act of "distinguishing" objects.
2. Use Design Patterns that reduce the need for distinguisinging - Composite, Command, Chain of Responsibility, Abstract Factory

How do I lower code maintenance?
1. Write robust code to begin with
2. Use Design Patterns
3. Abstract classes and inheritance can reduce code maintenance