NEW: English for Tech Bundle → Save 40%
Your progress

Loading your progress…

Home
Code & Deliverynoun · /ˈfæktəri ˈpætərn/

factory pattern

In simple English

The factory pattern is one of the most fundamental object-oriented design patterns used in enterprise software development. Instead of using the new keyword directly to instantiate classes, you delegate object creation to a factory method. This provides flexibility: if you need to change which concrete class gets instantiated, you only modify the factory, not all the code that uses the objects. In real workplaces, developers use the factory pattern to decouple client code from specific class implementations. For example, a payment system might have a PaymentFactory that creates CreditCardPayment, PayPalPayment, or StripePayment objects depending on configuration. When a new payment provider is added, you extend the factory without touching the checkout logic. It appears frequently in code reviews, architecture discussions, and system design interviews. Senior engineers often recommend it when they spot tight coupling or when anticipating future class variations.

Non-native speakers want to understand what factory pattern is, why it matters, and how to implement or explain it in interviews.

At a glanceCEFR C1
Commonness4/5
Versatility4/5
FormalityCasualFormalFormal
Spoken ↔ WrittenSpokenWrittenBoth
Directness ↔ DiplomaticDirectDiplomaticDirect
RegionUS and UK
New app · Free lessons

Speak up in meetings. Feel confident.

Standup vocabulary, native examples, and quick practice — 100+ free lessons

Start learning freeNo card needed · Google or email

Say it like this

Let us implement the factory pattern here.
The factory pattern would work well for this use case.
This is a textbook example of the factory pattern.

Real examples

in a code review

"Instead of calling new DatabaseConnection() everywhere, we should use the factory pattern to centralize the creation logic."

in a design discussion

"The factory pattern allows us to swap payment providers without rewriting the entire checkout flow."

in a team meeting

"We are applying the factory pattern to handle multiple logger implementations across the application."

Don't say this

Handle with care. Non-native speakers sometimes confuse it with actual manufacturing or treat it as a verb. It is a software design pattern noun, not an action verb.

We need to factory pattern the code.
We should use the factory pattern here.Factory pattern is a noun (design pattern), not a verb. You use or apply the pattern, not factory pattern something.
The factory pattern creates the actual factory building.
The factory pattern is a design pattern that encapsulates object creation logic.Factory pattern is a software concept, not about manufacturing. The word factory is metaphorical.
Is this a factory pattern or a strategy pattern?
Should we implement the factory pattern or the strategy pattern here?Clarify whether you are asking about identification or suggesting implementation.

Other forms

noun

factory pattern

"The factory pattern is useful when you have multiple subclasses."

noun phrase

abstract factory pattern

"We used the abstract factory pattern to handle cross-platform UI components."

noun phrase

factory method pattern

"The factory method pattern simplifies object instantiation."

Often used with

implement the factory patternCommon verb phrase meaning to code and use the pattern in a project
use the factory patternGeneral phrase indicating application of the design pattern
apply the factory patternSimilar to use; often appears in architectural decisions
abstract factory patternA specific variant that creates families of related objects
factory method patternAnother variant focusing on a single factory method for creation

Similar words

object creation patternBroader category; factory pattern is a specific type within it
creational patternBroader classification; factory is one of several creational patterns
abstract factoryA specific variant of the factory pattern for creating object families

Opposites

tight couplinghardcoded instantiation

Practice

Try it

4 quick exercises

Pick the most natural phrasing

1. Your team is debating how to handle multiple database types. What would a senior engineer likely say?

Complete the sentence

2. The _______ is a design pattern that centralizes object creation and reduces tight coupling.

Spot the mistake

3. Which sentence uses factory pattern incorrectly?

Rewrite naturally

4. Rewrite this using factory pattern: 'We make different kinds of database connections in many places, and it is hard to change them all when we add a new database type.'

Questions

Quick poll

Have you said "factory pattern" in a standup this week?

Want more structured practice like this? Our English for Programmers course covers real workplace English in depth.

Your badges