Tagged articles
41 articles
Page 1 of 1
Tech Freedom Circle
Tech Freedom Circle
Jan 16, 2026 · Interview Experience

Crack JD Interview: Master Singleton, Factory, Strategy, Template & Observer Patterns in 20 Minutes

This article offers a systematic, high‑concurrency‑focused walkthrough of core Java design patterns—including Singleton, Factory, Strategy, Template Method, and Observer—complete with code examples, pros and cons, selection guidelines, and interview‑ready explanations to help candidates impress interviewers and secure offers.

Design PatternsFactoryObserver
0 likes · 36 min read
Crack JD Interview: Master Singleton, Factory, Strategy, Template & Observer Patterns in 20 Minutes
php Courses
php Courses
Jun 26, 2025 · Fundamentals

Master Go Design Patterns: Practical Implementations & Best Practices

This article explores common design patterns in Go, explaining how the language’s emphasis on simplicity, composition, and interfaces influences implementations of Singleton, Factory, Strategy, Observer, and more, while providing idiomatic code examples and best‑practice recommendations such as using sync.Once, dependency injection, and context for robust, maintainable Go applications.

Design PatternsFactoryObserver
0 likes · 8 min read
Master Go Design Patterns: Practical Implementations & Best Practices
php Courses
php Courses
Jun 20, 2025 · Backend Development

Master PHP Design Patterns: Singleton, Factory, Observer, and Adapter

This article explains four essential PHP design patterns—Singleton, Factory, Observer, and Adapter—detailing their purpose, implementation with code examples, and how they help developers write more maintainable, extensible, and flexible backend applications.

AdapterDesign PatternsFactory
0 likes · 7 min read
Master PHP Design Patterns: Singleton, Factory, Observer, and Adapter
Test Development Learning Exchange
Test Development Learning Exchange
Mar 6, 2025 · Fundamentals

Understanding Class Attributes in Object‑Oriented Programming with Examples

This article explains the concept of class attributes in object‑oriented programming, contrasts them with instance attributes, and demonstrates ten practical scenarios—including shared data, default values, instance counting, singleton and factory patterns—through clear Python code examples and usage guidelines.

Class AttributesFactoryPython
0 likes · 10 min read
Understanding Class Attributes in Object‑Oriented Programming with Examples
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jan 27, 2025 · Fundamentals

Master 7 Essential Java Design Patterns with Real-World Spring Boot Examples

This article introduces seven core design patterns—Singleton, Factory, Builder, Strategy, Observer, Proxy, and Template—explaining their purpose, typical use cases, and providing complete Java code examples that integrate with Spring Boot 3 and Java 21, helping developers write cleaner, more maintainable software.

BuilderDesign PatternsFactory
0 likes · 20 min read
Master 7 Essential Java Design Patterns with Real-World Spring Boot Examples
Su San Talks Tech
Su San Talks Tech
Dec 11, 2024 · Fundamentals

8 Essential Design Patterns Every Java Developer Should Master

This article introduces eight core design patterns—Singleton, Factory, Strategy, Proxy, Observer, Decorator, Template Method, and Builder—explaining their concepts, providing Java code examples, and showing typical JDK and Spring framework usages to help developers write cleaner, more maintainable code.

BuilderDecoratorDesign Patterns
0 likes · 12 min read
8 Essential Design Patterns Every Java Developer Should Master
21CTO
21CTO
Sep 4, 2024 · Backend Development

How to Refactor Complex if‑else Chains in Java: Enums, Factories & Strategies

This article explains why excessive if‑else statements increase cost and complexity in Java applications and demonstrates several refactoring techniques—including enums, the factory pattern, the strategy pattern, and Stream API maps—to produce cleaner, more maintainable code.

Design PatternsFactoryenum
0 likes · 10 min read
How to Refactor Complex if‑else Chains in Java: Enums, Factories & Strategies
Tencent Cloud Developer
Tencent Cloud Developer
Aug 30, 2024 · Fundamentals

Overview of 10 Classic Software Design Patterns with Go Examples

The article presents ten classic software design patterns—Singleton, Factory, Observer, Decorator, Strategy, Adapter, Proxy, Command, Composite, and Iterator—explaining each pattern’s features, advantages, disadvantages, typical applications, and providing concrete Go code examples to illustrate their implementation.

DecoratorFactoryGo
0 likes · 36 min read
Overview of 10 Classic Software Design Patterns with Go Examples
Architect's Guide
Architect's Guide
Aug 19, 2024 · Fundamentals

Applying the Strategy Pattern with Simple Factory in a Java Backend Service

This article explains how to use the Strategy pattern combined with a simple factory in a Spring‑based Java backend, showing interface definition, multiple arithmetic strategy implementations, a factory that registers them in a map, a service that selects a strategy at runtime, and a REST controller for testing.

BackendFactoryStrategy Pattern
0 likes · 6 min read
Applying the Strategy Pattern with Simple Factory in a Java Backend Service
IT Architects Alliance
IT Architects Alliance
Aug 2, 2024 · Fundamentals

Mastering Design Patterns: Strategy, Factory, Singleton, Proxy, Observer, Template & Adapter in Java

This article provides a comprehensive, code‑first guide to the most common design patterns—including Strategy, Simple Factory, Singleton, Proxy, Factory Method, Observer, Template Method and Adapter—explaining their concepts, real‑world use cases, and complete Java implementations with Spring Boot integration.

AdapterDesign PatternsFactory
0 likes · 21 min read
Mastering Design Patterns: Strategy, Factory, Singleton, Proxy, Observer, Template & Adapter in Java
Architect
Architect
Feb 5, 2024 · Backend Development

Applying the Strategy Pattern with Simple Factory in a Spring Boot Application

This article demonstrates how to apply the Strategy pattern combined with a simple factory in a Spring Boot application, showing interface definition, multiple arithmetic strategy implementations, a factory that registers beans, a service invoking strategies via a map, and a REST controller for testing, highlighting extensibility.

BackendFactorySpring Boot
0 likes · 8 min read
Applying the Strategy Pattern with Simple Factory in a Spring Boot Application
php Courses
php Courses
Jan 22, 2024 · Backend Development

Common Design Patterns in PHP: Singleton, Factory, Observer, and Adapter

This article introduces four essential design patterns—Singleton, Factory, Observer, and Adapter—explaining their concepts and providing complete PHP code examples to demonstrate how each pattern can be implemented to create maintainable, extensible, and flexible applications.

AdapterDesign PatternsFactory
0 likes · 7 min read
Common Design Patterns in PHP: Singleton, Factory, Observer, and Adapter
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 6, 2023 · Fundamentals

Fundamental OOP Concepts and Design Patterns in Java

This article explains core object‑oriented concepts such as encapsulation, abstraction, inheritance and polymorphism, then details common design principles and a wide range of design patterns—including factory, builder, bridge, singleton, strategy, adapter, and proxy—illustrated with complete Java code examples and usage guidelines.

AdapterDesign PatternsFactory
0 likes · 23 min read
Fundamental OOP Concepts and Design Patterns in Java
Test Development Learning Exchange
Test Development Learning Exchange
Oct 29, 2023 · Fundamentals

Common Design Patterns in Python

This article lists and briefly explains fifteen common Python design patterns, including Singleton, Factory, Abstract Factory, Builder, Prototype, Adapter, Decorator, Proxy, Observer, Strategy, Template Method, Iterator, Chain of Responsibility, Command, and State, helping developers understand their purposes and usage.

Design PatternsFactoryPython
0 likes · 4 min read
Common Design Patterns in Python
Java Interview Crash Guide
Java Interview Crash Guide
Aug 30, 2023 · Backend Development

How Spring Implements Classic Design Patterns: Factory, Singleton, and More

This article explains how Spring applies classic design patterns such as Simple Factory, Factory Method, Singleton, Adapter, Decorator, Proxy, Observer, Strategy, and Template Method, illustrating each pattern with implementation details, core code snippets, and their significance for loose coupling and extensibility in backend development.

AdapterBackendFactory
0 likes · 15 min read
How Spring Implements Classic Design Patterns: Factory, Singleton, and More
Test Development Learning Exchange
Test Development Learning Exchange
Jul 7, 2023 · Fundamentals

Common Design Patterns in Python

This article lists and briefly describes fifteen widely used design patterns in Python, including Singleton, Factory, Abstract Factory, Builder, Prototype, Adapter, Decorator, Proxy, Observer, Strategy, Template Method, Iterator, Chain of Responsibility, Command, and State patterns.

BuilderDesign PatternsFactory
0 likes · 4 min read
Common Design Patterns in Python
The Dominant Programmer
The Dominant Programmer
Feb 9, 2023 · Fundamentals

Java Design Pattern Examples: A Comprehensive Collection

This article compiles practical Java code examples for common design patterns—including Simple Factory, Factory Method, Abstract Factory, Singleton (eager, lazy, static inner class, enum, container), Proxy, Decorator, Prototype, Strategy, Observer, and Adapter—each linked to detailed tutorials.

Design PatternsFactoryProxy
0 likes · 3 min read
Java Design Pattern Examples: A Comprehensive Collection
macrozheng
macrozheng
Dec 17, 2022 · Fundamentals

Master 9 Essential Design Patterns for Cleaner Java Code

This article explains nine widely used design patterns—Singleton, Builder, Factory, Strategy, Template Method, Chain of Responsibility, Proxy, Adapter, and Observer—detailing their concepts, typical use‑cases, and concrete Java code examples drawn from popular open‑source projects such as Spring, Dubbo, MyBatis and Guava.

BuilderFactoryObserver
0 likes · 27 min read
Master 9 Essential Design Patterns for Cleaner Java Code
Su San Talks Tech
Su San Talks Tech
Oct 15, 2022 · Fundamentals

Unlock Cleaner Code: How Design Patterns Transform Everyday Java Development

This article explores common design patterns—including Strategy, Chain of Responsibility, Template Method, Observer, Factory, and Singleton—explaining their real‑world business scenarios, core principles, and providing concrete Java code examples to help developers write more maintainable and extensible software.

Chain of ResponsibilityFactoryObserver
0 likes · 23 min read
Unlock Cleaner Code: How Design Patterns Transform Everyday Java Development
Java High-Performance Architecture
Java High-Performance Architecture
Sep 12, 2022 · Backend Development

Master Spring Design Patterns: Simple Factory to Observer Explained

This article explores key Spring framework design patterns—including simple factory, factory method, singleton, adapter, decorator, proxy, observer, and template method—detailing their implementation, underlying principles, and code examples, while also highlighting a comprehensive Java tutorial resource.

Design PatternsFactorydependency-injection
0 likes · 17 min read
Master Spring Design Patterns: Simple Factory to Observer Explained
Selected Java Interview Questions
Selected Java Interview Questions
Aug 16, 2022 · Backend Development

Spring Framework Design Patterns Overview

This article explains how Spring implements various design patterns—including Simple Factory, Factory Method, Singleton, Adapter, Decorator, Proxy, Observer, Strategy, and Template Method—detailing their implementation approaches, underlying principles, and practical code examples within the Spring container.

Design PatternsFactoryaop
0 likes · 13 min read
Spring Framework Design Patterns Overview
Code Ape Tech Column
Code Ape Tech Column
Nov 12, 2021 · Fundamentals

Common Design Patterns in Java: Strategy, Chain of Responsibility, Template Method, Observer, Factory, and Singleton

This article introduces several classic Java design patterns—including Strategy, Chain of Responsibility, Template Method, Observer, Factory, and Singleton—explaining their business scenarios, core definitions, and providing complete code examples to demonstrate how each pattern improves code maintainability, extensibility, and adherence to SOLID principles.

Design PatternsFactoryObserver
0 likes · 22 min read
Common Design Patterns in Java: Strategy, Chain of Responsibility, Template Method, Observer, Factory, and Singleton
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 27, 2021 · Fundamentals

Common Design Patterns in Daily Development: Strategy, Chain of Responsibility, Template Method, Observer, Factory, and Singleton

This article introduces several classic design patterns—Strategy, Chain of Responsibility, Template Method, Observer, Factory, and Singleton—explaining their business scenarios, core definitions, Java implementations, and how to apply them in real-world projects to improve code maintainability and extensibility.

Chain of ResponsibilityDesign PatternsFactory
0 likes · 27 min read
Common Design Patterns in Daily Development: Strategy, Chain of Responsibility, Template Method, Observer, Factory, and Singleton
Programmer DD
Programmer DD
Aug 21, 2021 · Backend Development

Mastering Java Constructors and Design Patterns: From Implicit to Singleton

This article provides a comprehensive guide to advanced Java concepts, covering implicit, no‑arg, and argument constructors, initialization blocks, static initialization, default value guarantees, visibility rules, garbage collection, finalizers, and common construction patterns such as singleton, helper, factory, and dependency injection, helping developers deepen their object‑oriented mastery.

ConstructorsFactoryadvanced-java
0 likes · 16 min read
Mastering Java Constructors and Design Patterns: From Implicit to Singleton
Sohu Tech Products
Sohu Tech Products
May 5, 2021 · Fundamentals

Common Design Patterns in Kotlin: Singleton, Factory, Builder, Prototype, Decorator, Strategy, Template Method, and Observer

This article introduces several classic design patterns—Singleton, Factory, Builder, Prototype, Decorator, Strategy, Template Method, and Observer—showing how they can be implemented concisely in Kotlin with code examples, while also explaining the underlying language features such as object declarations, companion objects, delegation, lazy initialization, and higher‑order functions.

BuilderDesign PatternsFactory
0 likes · 23 min read
Common Design Patterns in Kotlin: Singleton, Factory, Builder, Prototype, Decorator, Strategy, Template Method, and Observer
Java Interview Crash Guide
Java Interview Crash Guide
Apr 2, 2021 · Backend Development

How MyBatis Leverages 9 Classic Design Patterns in Its Core

This article explores how MyBatis implements nine fundamental design patterns—including Builder, Factory, Singleton, Proxy, Composite, Template Method, Adapter, Decorator, and Iterator—by examining its source code, illustrating each pattern with concrete classes, code snippets, and diagrams to deepen developers' understanding of design patterns in practice.

BuilderDecoratorFactory
0 likes · 19 min read
How MyBatis Leverages 9 Classic Design Patterns in Its Core
Architect's Tech Stack
Architect's Tech Stack
Feb 18, 2021 · Backend Development

Summary of Design Patterns Used in the Spring Framework

This article provides a comprehensive overview of how Spring implements classic design patterns such as Simple Factory, Factory Method, Singleton, Adapter, Decorator, Proxy, Observer, and Template Method, explaining their implementation details, underlying principles, and practical code examples within the Spring container.

Design PatternsFactoryObserver
0 likes · 15 min read
Summary of Design Patterns Used in the Spring Framework
Laravel Tech Community
Laravel Tech Community
Sep 1, 2020 · Fundamentals

PHP Design Patterns: Singleton, Factory, Registry, Adapter, and Observer

This article introduces common PHP design patterns—including Singleton, Factory, Registry, Adapter, and Observer—explaining their purpose, structure, typical use cases, and providing complete code examples for each pattern to illustrate how they can be implemented in object‑oriented applications.

AdapterDesign PatternsFactory
0 likes · 7 min read
PHP Design Patterns: Singleton, Factory, Registry, Adapter, and Observer
Java Backend Technology
Java Backend Technology
Mar 3, 2020 · Backend Development

Unlock Spring’s Power: 9 Essential Design Patterns for Backend Engineers

This article explains how Spring implements nine core design patterns—including Simple Factory, Factory Method, Singleton, Adapter, Decorator, Proxy, Observer, Strategy, and Template Method—detailing their implementation, underlying principles, and practical significance for Java backend development.

BackendFactorydependency-injection
0 likes · 16 min read
Unlock Spring’s Power: 9 Essential Design Patterns for Backend Engineers
Architecture Digest
Architecture Digest
Jan 11, 2020 · Backend Development

Design Patterns Used in MyBatis Source Code

This article examines how MyBatis implements numerous classic design patterns—including Builder, Factory, Singleton, Proxy, Composite, Template Method, Adapter, Decorator, and Iterator—through its source code, explaining each pattern's role, related classes, and code examples to deepen developers' understanding of backend architecture.

AdapterBuilderDecorator
0 likes · 17 min read
Design Patterns Used in MyBatis Source Code
Qunar Tech Salon
Qunar Tech Salon
Aug 8, 2019 · Frontend Development

Understanding Design Patterns in JavaScript

This article explains why and how to use various JavaScript design patterns—such as module, revealing module, ES6 modules, singleton, factory, and decorator—by describing their purpose, benefits, and providing clear code examples while warning against over‑use.

DecoratorDesign PatternsFactory
0 likes · 14 min read
Understanding Design Patterns in JavaScript
Java Captain
Java Captain
May 29, 2019 · Backend Development

Common Design Patterns Used in the Spring Framework

This article reviews the most frequently applied design patterns in Spring—including IoC/DI, Factory, Singleton, Proxy (AOP), Template Method, Observer, Adapter, and Decorator—explaining their purpose, how Spring implements them, and providing concise code examples for each.

Design PatternsFactoryIoC
0 likes · 17 min read
Common Design Patterns Used in the Spring Framework
Senior Brother's Insights
Senior Brother's Insights
Apr 15, 2019 · Backend Development

How MyBatis Implements 9 Classic Design Patterns – A Deep Dive

This article explores how MyBatis applies nine fundamental design patterns—including Builder, Factory, Singleton, Proxy, Composite, Template Method, Adapter, Decorator, and Iterator—by examining its source code, illustrating each pattern with explanations and concrete code snippets to deepen developers' understanding of real‑world pattern usage.

BuilderDesign PatternsFactory
0 likes · 19 min read
How MyBatis Implements 9 Classic Design Patterns – A Deep Dive
Senior Brother's Insights
Senior Brother's Insights
Jan 2, 2019 · Backend Development

9 Essential Spring Design Patterns Explained with Code Samples

This article walks through nine commonly used design patterns in Spring, such as Simple Factory, Factory Method, Singleton, Adapter, Wrapper, Proxy, Observer, Strategy, and Template Method, providing clear explanations, XML configurations, and Java code examples to illustrate each pattern in practice.

AdapterDesign PatternsFactory
0 likes · 9 min read
9 Essential Spring Design Patterns Explained with Code Samples
Java Captain
Java Captain
Apr 14, 2018 · Fundamentals

Java Design Patterns: Singleton, Observer, Decorator, Adapter, Factory, Abstract Factory, and Proxy

This article introduces several core Java design patterns—including Singleton (lazy, eager, static inner class, enum, double‑checked locking), Observer, Decorator, Adapter, Factory, Abstract Factory, and Proxy—explaining their intent, providing concise code examples, and showing how they solve common software design problems.

DecoratorDesign PatternsFactory
0 likes · 13 min read
Java Design Patterns: Singleton, Observer, Decorator, Adapter, Factory, Abstract Factory, and Proxy
Java Captain
Java Captain
Jan 5, 2018 · Fundamentals

Overview of Design Patterns, SOLID Principles, and Java Implementations

This article introduces the three major categories of design patterns, explains the six SOLID principles, and provides detailed Java code examples for creational patterns such as Factory Method, Abstract Factory, Singleton, Builder, and Prototype, illustrating their structure and usage.

BuilderCreationalDesign Patterns
0 likes · 14 min read
Overview of Design Patterns, SOLID Principles, and Java Implementations