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.

input email → email sender

Finish the sentencePrompthaus

Simple factory centralizes…

Practice this term

Write it in your own words in the app.

In real work

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

In the illustration

An order card reading EMAIL drops into the hopper, the selector dial turns itself to email and the press stamps out an email sender part into the tray.

Use it in a prompt

Write a simple factory in your coding agent called makeParser(for:) that returns the right parser from a file extension, and move the three if statements that do this today behind it.

Try it now

The fastest way to learn a word is to use it. Open this line in the agent you already work in and watch what it does. Change the tool to the one you use.

Go further

  1. 01Practice

    Make it stick

    One term a day, a short quiz, and sentence practice that checks your own words.

    Get the app →

  2. 02Verify

    Prove you know it

    Pass the quiz and keep it in a Skills Wallet you can share with anyone who needs proof.

    How verification works →

  3. 03Career

    Find the work that uses it

    See which roles lean on this vocabulary, and what they pay in year one.

    All career pathways →

Learn the next term tomorrow.

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

Markdown for agents