|
|
|
|
|
by HelloNurse
1442 days ago
|
|
It's a confused abstraction level: there must be a database of pizza "templates" (consisting of named menu items and of the lower level of pricing rules and admissible choices of crust, topping, etc.); it must be separate from generic pizza processing because it is subject to change over time; and conversely pizza processing must work for any configuration of that database, without special cases. Mixing pizza database identifiers into generic pizza processing (e.g. make_ham_pizza) is wrong even without repetitions. |
|