Tagged articles

Simple Factory

6 articles · Page 1 of 1
Baidu Geek Talk
Baidu Geek Talk
Sep 2, 2022 · Fundamentals

Understanding Factory Patterns: Simple Factory, Factory Method, and Abstract Factory with Code Samples

The article explains the Factory design pattern’s three main variants—Simple Factory for limited product types, Factory Method for extensible hierarchies, and Abstract Factory for creating families of related objects—illustrated with Java code examples for document parsing, automated testing, and cross‑platform membership systems.

Abstract FactoryDesign PatternsFactory Pattern
0 likes · 11 min read
Understanding Factory Patterns: Simple Factory, Factory Method, and Abstract Factory with Code Samples
Senior Brother's Insights
Senior Brother's Insights
Jul 18, 2021 · Backend Development

How Nacos Client Implements the Simple Factory Pattern

This article explains the simple factory pattern, compares its standard definition with Nacos's implementation, and walks through concrete Java examples showing how NacosFactory, NamingFactory, and related services create instances in the Nacos client.

BackendDesign PatternsJava
0 likes · 9 min read
How Nacos Client Implements the Simple Factory Pattern
Nullbody Notes
Nullbody Notes
Nov 15, 2020 · Fundamentals

Factory Method Pattern in Go: A Foodie's Take on Object Creation

This article walks through implementing Simple Factory and Factory Method patterns in Go, showing how to encapsulate object creation with a Food interface, concrete types, and factory structs, and explains the pointer vs value implementation rules and design‑principle benefits.

Design PatternsGoSimple Factory
0 likes · 7 min read
Factory Method Pattern in Go: A Foodie's Take on Object Creation