|
Distinguishing Characteristics
Optimization, as I use the term, is almost always misunderstood. Most people consider it to mean
the smallest amount of code, or the fastest execution time. I, on the other hand, also include such
factors as readability and maintainability.
What's sauce for the Manufacturing Inventory Control goose isn't necessarily sauce for the
Credit Card Processing Over Rented Lines gander.
Most situations call for a compromise among all the factors to represent a truly optimized program.
By avoiding tricky, or highly-repetative code while maintaining an easy-to-read modular design, one can reach
a balance of size, speed and maintenance cost.
This
program example illustrates the use of functions and procedures to eliminate redundant code.
|
|