table-driven programming
nounA way of writing computer programs where a table of choices tells the program what to do.
The game uses table-driven programming so each level's rules are stored in a simple table.
SYNONYMS
OTHER MEANINGS
2. A coding style where decisions are made by looking up values in a table instead of writing many if-else statements.
She replaced the long if-else chain with table-driven programming to make the code shorter.
3. A technique in which a program's behavior is controlled by an external table that can be changed without editing the code.
Thanks to table-driven programming, the team updated the pricing rules by editing a spreadsheet.
4. An approach used in testing where test cases are listed in a table and run automatically.
The test suite uses table-driven programming to check hundreds of inputs at once.