Chapter 18. Table-Driven Methods
Contents
Related Topics
Information hiding: "Hide Secrets (Information Hiding)" in Design Building Blocks: Heuristics
Class design: Chapter 6
Using decision tables to replace complicated logic: in Boolean Expressions
Substitute table lookups for complicated expressions: in Logic
A table-driven method is a scheme that allows you to look up information in a table rather than using logic statements (if and case) to figure it out. Virtually anything you can select with logic statements, you can select with tables instead. In simple cases, logic statements are easier ...
Get Code Complete, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.