# A New Product Every Month

A New Product Every Month: Simple Factory: One Place That Says new, Factories the Modern Way: A Dictionary of Functions.

Updated: November 17, 2026

1. [Simple Factory: One Place That Says new](https://www.ask-codey.com/lessons/dp-simple-factory) (Apprentice): When the same if chain that picks a class is copied into several places, a new product means editing all of them, and one is always forgotten; a simple factory moves that decision into one function, so a new product is one new class and one new line.
2. [Factories the Modern Way: A Dictionary of Functions](https://www.ask-codey.com/lessons/dp-factories-modern) (Apprentice): 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.

Source: https://www.ask-codey.com/courses/design-patterns/topics/dp-a-new-product-every-month
