Jerry Yoakum's thoughts on software engineering and architecture from experience working with code, computer science, python, java, APIs, NASA, data mining, math, etc.
Saturday, January 07, 2017
Avoid Numerous Special Cases
There are often exceptional situations to an algorithm's design. Exceptional situations cause special cases to be added to the algorithm. Every special case makes it more difficult to debug, modify, maintain, and enhance an algorithm.
If you find too many special cases, you probably have an inappropriate algorithm. Rethink and redesign the algorithm.
Labels:
architecture,
design,
software-engineering
Location:
Springfield, MO, USA