Factories the Modern Way: A Dictionary of Functions
A factory's if chain still grows by one line a month and gets edited by everyone; a dictionary from each product's name to a function that makes it lets a new product be added in one line, from anywhere, without touching the factory.
Updated

- Category
- Data Structures
- Level
- Apprentice
- Tags
- Higher-Order Function, OOP, Open/Closed Principle, Simple Factory