Summary

 < Day Day Up > 



The symptoms of Over Simplification are:

  • Code that performs no useful function, either by design or through decay, and that is still present.

  • Complexity that has been shifted from its correct location and therefore been made more complex.

  • Excessive protectiveness placed on code just to maintain its simplicity.

To prevent Over Simplification:

  • Ensure that the design, interfaces, and implementation are complete in addition to minimal.

  • Be realistic and do not make the low-level design too simple; otherwise, you will be missing functionality that is required for the higher-level design.

  • Prepare for areas of likely change.

To cure the effects of Over Simplification:

  • Do not allow code to become a sacred cow because of its simplicity.

  • Add or move complexity when refactoring as necessary, rather than to avoid work or responsibility.

  • Make sure that functionality is at the proper place and level to minimize complexity.

  • Consider the possibility that the code will be reused when writing it.



 < Day Day Up > 



Preventative Programming Techniques. Avoid and Correct Common Mistakes
Preventative Programming Techniques: Avoid and Correct Common Mistakes (Charles River Media Programming)
ISBN: 1584502576
EAN: 2147483647
Year: 2002
Pages: 121
Authors: Brian Hawkins

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net