Foundations

What is Simple Factory?

A single function or type that picks and returns the right object based on input. Not a formal pattern, but common in apps.

Learn this term every day on iPhone.

One hand-written term. A real workplace example. Thirty seconds before your day gets loud.

In real work

Simple factory: NotificationFactory.make(for: .email) picks the sender so views stay free of switch statements.

How is this different from Googling it?

Google gives a definition. Prompthaus pairs each term with how it shows up in standups, PRs, prompts, and design reviews—then quizzes you until the word sticks. One term a day on iPhone.