|
|
|
|
|
by frognumber
1450 days ago
|
|
It's data. make_pizza(toppings=HAWAIIAN_TOPPINGS)
or make_pizza(HAWAIIAN)
or similar. Data should generally not be hard-coded, both because it changes and because it wants to be validated. Starting with: HAWAIIAN = { TOPPINGS: [ PINEAPPLE ...
is okay. That can later be loaded from a config file, a database, or otherwise, as the system expands. |
|