Tagged articles
31 articles
Page 1 of 1
php Courses
php Courses
Dec 14, 2023 · Fundamentals

Understanding Different Types of Value Objects and Their Implementation in PHP

This article explores simple, complex, and composite value objects in PHP, providing guidelines for their design, validation, immutability, string representation, equality checks, while also discussing alternative error handling approaches such as Either types and union types.

Domain-Driven DesignError HandlingFactory Method
0 likes · 16 min read
Understanding Different Types of Value Objects and Their Implementation in PHP
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Nov 17, 2023 · Fundamentals

Factory Method Pattern: Definition, Structure, Implementation, Advantages, and Use Cases

This article explains the Factory Method design pattern, covering its definition, UML diagram, key participants, the problems it solves compared to the Simple Factory, step‑by‑step Java implementation with code examples, advantages, disadvantages, application scenarios, and differences from the Simple Factory pattern.

Design PatternsFactory MethodObject-Oriented
0 likes · 8 min read
Factory Method Pattern: Definition, Structure, Implementation, Advantages, and Use Cases
Test Development Learning Exchange
Test Development Learning Exchange
Oct 28, 2023 · Fundamentals

Understanding the Object Factory Design Pattern with Python Examples

Object Factory is a design pattern that centralizes object creation, enhancing decoupling, extensibility, and management of instances, and this article explains its principles, benefits, and provides five Python code examples illustrating various scenarios such as type-based creation, configuration-driven instantiation, logging factories, singleton factories, and object caching.

Factory MethodObject FactoryPython
0 likes · 7 min read
Understanding the Object Factory Design Pattern with Python Examples
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 31, 2023 · Fundamentals

JavaScript Design Patterns: Factory Method, Abstract Factory, Singleton, Builder, Prototype and More

This article introduces JavaScript design patterns—covering creational, structural, and behavioral categories—and provides clear explanations and complete code examples for patterns such as Factory Method, Abstract Factory, Singleton, Builder, Prototype, Adapter, Decorator, Proxy, Facade, Bridge, Composite, Flyweight, Strategy, Template Method, Observer, Iterator, Chain of Responsibility, Command, Memento, State, Visitor, Mediator and Interpreter, helping developers write cleaner, more maintainable code.

AdapterBuilderDecorator
0 likes · 35 min read
JavaScript Design Patterns: Factory Method, Abstract Factory, Singleton, Builder, Prototype and More
Test Development Learning Exchange
Test Development Learning Exchange
Jul 7, 2023 · Fundamentals

Understanding the Object Factory Design Pattern with Python Examples

This article explains the Object Factory design pattern, its benefits such as decoupling, extensibility, and centralized instance management, and demonstrates five practical Python examples covering basic product creation, configuration‑driven factories, logger factories, singleton factories, and object caching factories.

Factory MethodObject FactoryPython
0 likes · 7 min read
Understanding the Object Factory Design Pattern with Python Examples
Selected Java Interview Questions
Selected Java Interview Questions
Apr 13, 2023 · Backend Development

Analysis of Spring Bean Instantiation Strategies in AbstractAutowireCapableBeanFactory

This article dissects the core bean creation logic of Spring's AbstractAutowireCapableBeanFactory, detailing how createBeanInstance delegates to obtainFromSupplier, instantiateUsingFactoryMethod, autowireConstructor, and fallback default constructors, while explaining the role of Supplier, ConstructorResolver, argument resolution, and caching mechanisms.

BeanFactoryConstructor InjectionFactory Method
0 likes · 34 min read
Analysis of Spring Bean Instantiation Strategies in AbstractAutowireCapableBeanFactory
FunTester
FunTester
Mar 23, 2023 · Fundamentals

Factory Method Pattern in Go: Theory, Use Cases, and Implementation

This article explains why design patterns are needed, introduces the Factory Method pattern with its UML roles, provides a step‑by‑step Go implementation—including interfaces, concrete factories, and client code—covers a clothing‑brand example, and discusses the pattern's advantages and drawbacks while also noting its source from a Go design‑patterns book.

Creational PatternDesign PatternsFactory Method
0 likes · 11 min read
Factory Method Pattern in Go: Theory, Use Cases, and Implementation
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 Method
0 likes · 11 min read
Understanding Factory Patterns: Simple Factory, Factory Method, and Abstract Factory with Code Samples
NetEase LeiHuo UX Big Data Technology
NetEase LeiHuo UX Big Data Technology
Jul 3, 2022 · Fundamentals

Why Some Design Patterns Should Be Forgotten When Using Python

This article explains why traditional object‑oriented design patterns such as Strategy, Factory Method, Singleton, and Iterator often become unnecessary or overly complex in Python, illustrating with concise code examples how Python’s first‑class functions, dynamic typing, and built‑in constructs can replace them for clearer, more maintainable solutions.

Design PatternsFactory MethodIterator
0 likes · 12 min read
Why Some Design Patterns Should Be Forgotten When Using Python
IT Architects Alliance
IT Architects Alliance
Mar 28, 2022 · Fundamentals

A Humorous Introduction to 23 Classic Design Patterns

This article humorously explains 23 classic software design patterns—such as Factory Method, Builder, Abstract Factory, Prototype, Singleton, Adapter, Bridge, Composite, Decorator, Facade, Flyweight, Proxy, Chain of Responsibility, Command, Interpreter, Iterator, Mediator, Memento, Observer, State, Strategy, Template Method, and Visitor—using everyday dating analogies to illustrate their intent and structure.

AdapterBuilderFactory Method
0 likes · 19 min read
A Humorous Introduction to 23 Classic Design Patterns
Selected Java Interview Questions
Selected Java Interview Questions
Nov 20, 2021 · Backend Development

Design Pattern Summary in the Spring Framework

This article provides a comprehensive overview of the design patterns used in Spring, including Simple Factory, Factory Method, Singleton, Adapter, Decorator, Proxy, Observer, Strategy, and Template Method, with explanations of their implementation, principles, and practical code examples.

BeanFactoryDesign PatternsFactory Method
0 likes · 13 min read
Design Pattern Summary in the Spring Framework
Java Interview Crash Guide
Java Interview Crash Guide
Oct 20, 2021 · Backend Development

How Spring Implements Classic Design Patterns: From Simple Factory to Template Method

This article explains how Spring’s core container uses classic design patterns—Simple Factory via BeanFactory, Factory Method with FactoryBean, Singleton, Adapter, Decorator, Proxy, Observer, Strategy, and Template Method—illustrated with code snippets and diagrams to show their implementation and purpose within the framework.

BeanFactoryFactory MethodSingleton
0 likes · 15 min read
How Spring Implements Classic Design Patterns: From Simple Factory to Template Method
Architecture Digest
Architecture Digest
Oct 5, 2021 · Backend Development

Understanding Simple Factory, Factory Method, Singleton, Adapter, Decorator, Observer, Strategy, and Template Method Patterns in Spring

This article explains how Spring implements classic design patterns—including Simple Factory via BeanFactory, Factory Method with FactoryBean, Singleton with double‑checked locking, Adapter through HandlerAdapter, Decorator via Wrapper classes, Observer in its event model, Strategy via the Resource interface, and Template Method in JdbcTemplate—providing clear examples and code snippets for each.

Factory MethodSingletonbackend-development
0 likes · 13 min read
Understanding Simple Factory, Factory Method, Singleton, Adapter, Decorator, Observer, Strategy, and Template Method Patterns in Spring
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 PatternsFactory Method
0 likes · 9 min read
How Nacos Client Implements the Simple Factory Pattern
Alibaba Cloud Developer
Alibaba Cloud Developer
Jul 5, 2021 · Fundamentals

Mastering Factory Patterns: Simple, Factory Method & Abstract Factory Explained

This article revisits the core creational patterns—Simple Factory, Factory Method, and Abstract Factory—explaining their motivations, role divisions, basic concepts, detailed implementations with Java code, and comparative insights to help developers choose the right pattern for scalable object creation.

Abstract FactoryFactory MethodFactory Pattern
0 likes · 20 min read
Mastering Factory Patterns: Simple, Factory Method & Abstract Factory Explained
Java High-Performance Architecture
Java High-Performance Architecture
Jun 7, 2021 · Fundamentals

23 Essential Design Patterns Explained with Fun Real‑World Analogies

This article humorously illustrates 23 classic software design patterns—such as Factory Method, Builder, Abstract Factory, Prototype, Singleton, Adapter, Bridge, Composite, Decorator, Facade, Flyweight, Proxy, Chain of Responsibility, Command, Interpreter, Iterator, Mediator, Memento, Observer, State, Strategy, Template Method, and Visitor—by mapping each to everyday relationship scenarios.

AdapterBuilderDesign Patterns
0 likes · 18 min read
23 Essential Design Patterns Explained with Fun Real‑World Analogies
Intelligent Backend & Architecture
Intelligent Backend & Architecture
May 5, 2021 · Fundamentals

Master Creational Design Patterns: Singleton, Prototype, Factory, Abstract Factory & Builder Explained

This comprehensive guide explains creational design patterns—including Singleton, Prototype, Factory Method, Abstract Factory, and Builder—detailing their definitions, characteristics, structures, Java implementations, code examples, and typical application scenarios for reducing coupling and improving flexibility in software development.

Abstract FactoryBuilderFactory Method
0 likes · 32 min read
Master Creational Design Patterns: Singleton, Prototype, Factory, Abstract Factory & Builder Explained
Architecture Digest
Architecture Digest
Mar 20, 2021 · Fundamentals

A Humorous Overview of 23 Classic Software Design Patterns

This article presents a playful yet informative walkthrough of twenty‑three classic software design patterns—Factory Method, Builder, Abstract Factory, Prototype, Singleton, Adapter, Bridge, Composite, Decorator, Facade, Flyweight, Proxy, Chain of Responsibility, Command, Interpreter, Iterator, Mediator, Memento, Observer, State, Strategy, Template Method and Visitor—using everyday analogies to illustrate their intent and structure.

AdapterBuilderDesign Patterns
0 likes · 18 min read
A Humorous Overview of 23 Classic Software Design Patterns
Java Captain
Java Captain
Mar 19, 2021 · Fundamentals

A Humorous Guide to 23 Software Design Patterns Using Dating Analogies

This article humorously explains 23 classic software design patterns—such as Factory Method, Builder, Abstract Factory, Prototype, Singleton, Adapter, Bridge, Composite, Decorator, Facade, Flyweight, Proxy, Chain of Responsibility, Command, Interpreter, Iterator, Mediator, Memento, Observer, State, Strategy, Template Method, and Visitor—by comparing each pattern to everyday dating scenarios.

AdapterBuilderDesign Patterns
0 likes · 18 min read
A Humorous Guide to 23 Software Design Patterns Using Dating Analogies
Java Captain
Java Captain
Feb 20, 2021 · Backend Development

Spring Framework Design Patterns: Summary and Implementation Details

This article provides a comprehensive overview of the design patterns used in the Spring framework—including Simple Factory, Factory Method, Singleton, Adapter, Decorator, Proxy, Observer, Strategy, and Template Method—explaining their implementation, underlying principles, and practical significance with code examples.

AdapterBeanFactoryDecorator
0 likes · 15 min read
Spring Framework Design Patterns: Summary and Implementation Details
Programmer DD
Programmer DD
Feb 6, 2021 · Fundamentals

Master 22 Design Patterns Through Hilarious Real‑World Analogies

This article humorously explains 22 classic software design patterns—such as Factory Method, Builder, Abstract Factory, Prototype, Singleton, Adapter, Bridge, Composite, Decorator, Facade, Flyweight, Proxy, Chain of Responsibility, Command, Interpreter, Iterator, Mediator, Memento, Observer, State, Strategy, Template Method, and Visitor—by likening each to everyday dating and food scenarios, making the concepts easy to grasp.

AdapterBuilderFactory Method
0 likes · 18 min read
Master 22 Design Patterns Through Hilarious Real‑World Analogies
Selected Java Interview Questions
Selected Java Interview Questions
May 17, 2020 · Backend Development

Applying Strategy, Factory Method, and Builder Patterns in Spring for Reward Distribution

This article explains how to implement the Strategy, Factory Method, and Builder design patterns within a Spring application to decouple reward‑distribution logic, showing interface definitions, concrete implementations, a factory for dynamic bean selection, and a prototype‑scoped builder for request construction.

BuilderDesign PatternsFactory Method
0 likes · 12 min read
Applying Strategy, Factory Method, and Builder Patterns in Spring for Reward Distribution
Meituan Technology Team
Meituan Technology Team
Mar 19, 2020 · Backend Development

Applying Design Patterns and Domain‑Driven Design in Meituan Takeaway Marketing System

The Meituan Takeaway Marketing team shows how combining domain‑driven design with classic patterns such as Factory Method, Strategy, State and Responsibility Chain creates an extensible, maintainable reward system that adapts to rapidly changing business rules while keeping the domain model clean and SOLID‑compliant.

Design PatternsDomain-Driven DesignFactory Method
0 likes · 25 min read
Applying Design Patterns and Domain‑Driven Design in Meituan Takeaway Marketing System
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Mar 19, 2020 · Backend Development

How Spring Implements 9 Core Design Patterns – From Simple Factory to Template Method

This article explains how Spring applies nine classic design patterns—including Simple Factory, Factory Method, Singleton, Adapter, Decorator, Proxy, Observer, Strategy, and Template Method—detailing their implementation approaches, underlying principles, and the benefits they bring to Spring's IoC container and AOP mechanisms.

Factory MethodSingletonbackend-development
0 likes · 18 min read
How Spring Implements 9 Core Design Patterns – From Simple Factory to Template Method
Java Captain
Java Captain
Feb 10, 2019 · Backend Development

Common Spring Design Patterns: Simple Factory, Factory Method, Singleton, Adapter, Decorator, Proxy, Observer, Strategy, and Template Method

This article explains how Spring implements nine classic design patterns—including Simple Factory, Factory Method, Singleton, Adapter, Decorator, Proxy, Observer, Strategy, and Template Method—through configuration examples and Java code, illustrating their roles in building flexible, maintainable backend applications.

AdapterDesign PatternsFactory Method
0 likes · 9 min read
Common Spring Design Patterns: Simple Factory, Factory Method, Singleton, Adapter, Decorator, Proxy, Observer, Strategy, and Template Method
Programmer DD
Programmer DD
Aug 26, 2017 · Backend Development

How Spring Framework Uses Interpreter, Builder, Factory Method, and Abstract Factory Patterns

This article explains how Spring Framework applies four classic design patterns—Interpreter, Builder, Factory Method, and Abstract Factory—to simplify object creation and configuration, providing clear Java code examples, Spring bean definitions, and a discussion of their roles within the framework.

Abstract FactoryBuilderDesign Patterns
0 likes · 13 min read
How Spring Framework Uses Interpreter, Builder, Factory Method, and Abstract Factory Patterns