Tagged articles
19 articles
Page 1 of 1
Ray's Galactic Tech
Ray's Galactic Tech
Oct 19, 2025 · Backend Development

How @Configuration Embodies the Open/Closed Principle in Spring Boot

Spring Boot’s @Configuration annotation serves as a practical implementation of the Open/Closed Principle by providing declarative, type‑safe bean definitions, enabling closed‑for‑modification business logic while remaining open for extension through modular configuration, conditional beans, and auto‑configuration mechanisms.

ConfigurationOpen/Closed PrincipleSpring Boot
0 likes · 7 min read
How @Configuration Embodies the Open/Closed Principle in Spring Boot
JavaScript
JavaScript
Aug 25, 2025 · Frontend Development

Switch Statements Break the Open/Closed Principle – Use Objects or Maps Instead

The article explains why traditional switch statements violate the Open/Closed principle in JavaScript, outlines the maintenance problems they cause in large front‑end codebases, and demonstrates how object literals or Map structures provide cleaner, more extensible alternatives.

MAPOpen/Closed Principlecode maintainability
0 likes · 5 min read
Switch Statements Break the Open/Closed Principle – Use Objects or Maps Instead
MoonWebTeam
MoonWebTeam
Jul 24, 2025 · Fundamentals

Mastering the Open-Closed Principle: Benefits, Pitfalls, and Real-World Examples

This article explores the Open‑Closed Principle (OCP) in depth, covering its definition, evolution, practical applications, common misconceptions, code comparisons, and best‑practice guidelines to help developers balance extensibility with simplicity in modern software design.

Open/Closed PrincipleSOLIDTypeScript
0 likes · 19 min read
Mastering the Open-Closed Principle: Benefits, Pitfalls, and Real-World Examples
KooFE Frontend Team
KooFE Frontend Team
Feb 5, 2025 · Frontend Development

Making React Components Open‑Closed: Extensible Patterns and Refactoring

This article explains how the Open‑Closed Principle applies to React development, demonstrating anti‑patterns and refactoring techniques—including base components, composition, higher‑order components, and custom hooks—to create extensible, maintainable UI elements while keeping tests simple.

Custom HooksHigher-Order ComponentsOpen/Closed Principle
0 likes · 7 min read
Making React Components Open‑Closed: Extensible Patterns and Refactoring
php Courses
php Courses
Aug 9, 2024 · Backend Development

Applying the Strategy Design Pattern with the Open/Closed Principle in Laravel

This article explains how to apply the Strategy design pattern together with the Open‑Closed Principle in Laravel, showing step‑by‑step code examples for defining a strategy interface, implementing concrete payment strategies, and creating a context class that dynamically selects the appropriate payment gateway while keeping the system extensible and maintainable.

Design PatternsLaravelOpen/Closed Principle
0 likes · 12 min read
Applying the Strategy Design Pattern with the Open/Closed Principle in Laravel
JD Tech
JD Tech
Jul 14, 2023 · Fundamentals

Exploring the Open‑Closed Principle in Software Architecture to Reduce Cognitive Load and Improve Efficiency

The article examines how applying the open‑closed principle and domain‑driven design in software architecture can lower programmers' cognitive load, streamline development, and enable cost‑effective, scalable evolution of complex systems, especially in fast‑iteration internet services.

DDDOpen/Closed PrincipleSoftware Architecture
0 likes · 16 min read
Exploring the Open‑Closed Principle in Software Architecture to Reduce Cognitive Load and Improve Efficiency
Code Ape Tech Column
Code Ape Tech Column
Apr 6, 2023 · Backend Development

Applying the Open‑Closed Principle and Bitmask Design for Extensible System Architecture

The article explains the six SOLID design principles, emphasizes the importance of the Open‑Closed principle, and demonstrates how to achieve extensible database schemas and APIs using type fields, extendable JSON columns, bitmap role encoding, and strategy/template patterns with concrete Java code examples.

Database designDesign PatternsOpen/Closed Principle
0 likes · 15 min read
Applying the Open‑Closed Principle and Bitmask Design for Extensible System Architecture
21CTO
21CTO
Jan 3, 2022 · Frontend Development

Unlock Front-End Power with Open-Closed, Functional Programming, and Messaging

This article explores how core software engineering concepts—Open‑Closed Principle, functional programming, and message mechanisms—are applied in modern front‑end development, illustrating each with real‑world frameworks like React, Ant Design, and Redux, and providing code examples to deepen understanding.

Open/Closed Principlefunctional programmingmessage passing
0 likes · 18 min read
Unlock Front-End Power with Open-Closed, Functional Programming, and Messaging
21CTO
21CTO
Aug 19, 2020 · Backend Development

Eliminate If‑Else Chains with Enum‑Based Strategy in Java

This article demonstrates how to replace cumbersome if‑else statements with a clean enum‑driven design in Java, using an abstract rule class, concrete channel implementations, and an enhanced enumeration that binds each channel to its processing logic, adhering to the open‑closed principle.

JavaOpen/Closed Principledesign pattern
0 likes · 5 min read
Eliminate If‑Else Chains with Enum‑Based Strategy in Java
Programmer DD
Programmer DD
Aug 15, 2020 · Fundamentals

Mastering the Strategy Pattern in Java: Real‑World Pricing and Payment Examples

This article explains the Strategy pattern with Java, showing how to refactor a naïve pricing module into a flexible, open‑closed design, and then extends the concept to payment processing and thread‑pool rejection handling, complete with code samples and UML diagrams.

Design PatternsOpen/Closed PrincipleSoftware Architecture
0 likes · 28 min read
Mastering the Strategy Pattern in Java: Real‑World Pricing and Payment Examples
Java Captain
Java Captain
Aug 10, 2020 · Fundamentals

Understanding the Strategy Pattern with Java Examples

This article explains the Strategy design pattern, demonstrates its use through a quote‑management example and various Java implementations, discusses the open‑closed principle, shows how to apply the pattern to different scenarios such as payment processing and thread‑pool rejection handling, and outlines its advantages and drawbacks.

Design PatternsJavaOOP
0 likes · 26 min read
Understanding the Strategy Pattern with Java Examples
macrozheng
macrozheng
Jun 5, 2020 · Fundamentals

Why Interface‑Oriented Programming Makes Your Code Flexible and Extensible

This article explains the concept of interface‑oriented programming, using everyday analogies and Java code examples to show how defining contracts via interfaces decouples components, improves extensibility, and follows solid design principles such as the Open‑Closed Principle.

Dependency InversionOpen/Closed Principleinterface programming
0 likes · 11 min read
Why Interface‑Oriented Programming Makes Your Code Flexible and Extensible
Hujiang Technology
Hujiang Technology
Oct 26, 2017 · Frontend Development

Design Patterns in Front-End JavaScript Development

This article explains how to apply common design patterns such as Singleton and Observer in front‑end JavaScript, demonstrating practical extensions using Function.prototype, discussing the Open‑Closed Principle, and providing code examples for flexible, maintainable code without invasive modifications.

Design PatternsJavaScriptObserver
0 likes · 10 min read
Design Patterns in Front-End JavaScript Development
Architects Research Society
Architects Research Society
Nov 6, 2016 · Fundamentals

Applying Conway’s Law to Improve Architecture and Team Productivity: Lessons from Credera at SpringOne

At SpringOne, Credera engineers Jason Goth, Micah Blalock, and Patricia Anderson explained how they leveraged Conway’s Law to redesign a client’s technical architecture and processes, overcoming productivity decline by restructuring teams, applying the open/closed principle, and introducing new communication roles, ultimately accelerating high‑quality code delivery.

Conway's lawOpen/Closed PrincipleSoftware Architecture
0 likes · 6 min read
Applying Conway’s Law to Improve Architecture and Team Productivity: Lessons from Credera at SpringOne