Code Complete: A Practical Handbook of Software Construction, Second Edition

 < Free Open Study > 

  • Tables provide an alternative to complicated logic and inheritance structures. If you find that you're confused by a program's logic or inheritance tree, ask yourself whether you could simplify by using a lookup table.

  • One key consideration in using a table is deciding how to access the table. You can access tables by using direct access, indexed access, or stair-step access.

  • Another key consideration in using a table is deciding what exactly to put into the table.

 < Free Open Study > 

Категории