Tag

open-closed principle

0 views collected around this technical thread.

Code Ape Tech Column
Code Ape Tech Column
Dec 25, 2024 · Fundamentals

Applying the Service Locator Pattern for Extensible File Parsers in Spring

This article demonstrates how to replace tightly‑coupled if‑else or switch‑case logic with the Service Locator Pattern in a Spring application, allowing new file‑type parsers such as XML to be added without modifying client code, thereby adhering to the Open/Closed principle.

Factory BeanJavaService Locator
0 likes · 7 min read
Applying the Service Locator Pattern for Extensible File Parsers in Spring
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.

LaravelPHPStrategy Pattern
0 likes · 12 min read
Applying the Strategy Design Pattern with the Open/Closed Principle in Laravel
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 DesignStrategy Patternbackend development
0 likes · 15 min read
Applying the Open‑Closed Principle and Bitmask Design for Extensible System Architecture
Selected Java Interview Questions
Selected Java Interview Questions
Dec 21, 2020 · Backend Development

Using Enums to Eliminate If‑Else Chains in Java Channel Processing

The article demonstrates how to replace cumbersome if‑else statements with a clean enum‑based design in Java, showing abstract rule classes, concrete channel implementations, and a matching method that adheres to the Open‑Closed Principle for scalable data processing across multiple channels.

Javabackenddesign pattern
0 likes · 5 min read
Using Enums to Eliminate If‑Else Chains in Java Channel Processing
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.

JavaOOPStrategy Pattern
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.

Javadependency inversioninterface programming
0 likes · 11 min read
Why Interface‑Oriented Programming Makes Your Code Flexible and Extensible
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jun 5, 2019 · Fundamentals

Open‑Closed Principle Explained with a Hospital Billing Example

This article explains the Open‑Closed Principle of design patterns, illustrates it with Java code that models a hospital’s medicine‑selling process, compares naive and extensible implementations, and shows how to keep software open for extension while closed for modification.

JavaOOPdesign patterns
0 likes · 9 min read
Open‑Closed Principle Explained with a Hospital Billing Example
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.

JavaScriptObserverdesign patterns
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.

AgileConway's lawopen-closed principle
0 likes · 6 min read
Applying Conway’s Law to Improve Architecture and Team Productivity: Lessons from Credera at SpringOne