---
title: "#open-closed-principle articles | Hashnode"
description: "Explore 35 articles tagged #open-closed-principle on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/open-closed-principle"
---

Tag

# #open-closed-principle

35 posts · 1 followers

[Onkesh Gupta](https://hashnode.com/@onkeshgupta) · [Aug 19](https://hashnode.com/posts/solid-principles-simplified-2-open-closed-principle-ocp/6a85a5320994219f8b677801)

### [SOLID Principles Simplified #2: Open/Closed Principle (OCP)](https://onkeshgupta.hashnode.dev/solid-principles-simplified-2-open-closed-principle-ocp?utm_source=hashnode&utm_medium=feed)

Software entities should be open for extension but closed for modification.

5 min read · [onkeshgupta.hashnode.dev](https://onkeshgupta.hashnode.dev/solid-principles-simplified-2-open-closed-principle-ocp?utm_source=hashnode&utm_medium=feed)

[Kartik Mehta](https://hashnode.com/@mehtaaaaaah) · [Dec 19, 2025](https://hashnode.com/posts/the-coffee-shop-crisis/69459ebd2a0711c0297f28f2)

### [The Coffee Shop Crisis](https://writer.mrmehta.in/the-coffee-shop-crisis?utm_source=hashnode&utm_medium=feed)

Stop writing messy if-else chains! Learn the Strategy Pattern in Rust with a practical coffee shop API. Includes traits, Send/Sync, & complete working code.

32 min read · [writer.mrmehta.in](https://writer.mrmehta.in/the-coffee-shop-crisis?utm_source=hashnode&utm_medium=feed)

[Atharv Singh](https://hashnode.com/@AtharvBlogs) · [Oct 3, 2025](https://hashnode.com/posts/solid-principles/68df9aae3afd2cd907e177cc)

### [SOLID Principles](https://lldbyatharv.hashnode.dev/solid-principles?utm_source=hashnode&utm_medium=feed)

Learn the SOLID principles of object-oriented design with clear C++ and TypeScript examples. Improve code readability, maintainability, and scalability by m

11 min read · [lldbyatharv.hashnode.dev](https://lldbyatharv.hashnode.dev/solid-principles?utm_source=hashnode&utm_medium=feed)

[Gautam Patel](https://hashnode.com/@iamgautam03) · [Sep 28, 2025](https://hashnode.com/posts/open-closed-principle/68d8e898722e5bb12988b125)

### [Have you ever heard SOLID? 🤔 Let's look at 'O : Open-Closed Principle' of it.](https://iamgautam.hashnode.dev/open-closed-principle?utm_source=hashnode&utm_medium=feed)

Learn the Open-Closed Principle (OCP) of SOLID design with simple code examples and a clear analogy.

3 min read · [iamgautam.hashnode.dev](https://iamgautam.hashnode.dev/open-closed-principle?utm_source=hashnode&utm_medium=feed)

[Kristiadhy](https://hashnode.com/@kristiadhy) · [Sep 23, 2025](https://hashnode.com/posts/implementing-the-open-closed-principle-with-strategy-and-factory-patterns/68d2a96cdd7a479236dedb63)

### [Implementing the Open-Closed Principle with Strategy and Factory Patterns](https://krisoncode.com/implementing-the-open-closed-principle-with-strategy-and-factory-patterns?utm_source=hashnode&utm_medium=feed)

Learn how to implement the Open-Closed Principle using Strategy and Factory Patterns for flexible, easily extendable software design

5 min read · [krisoncode.com](https://krisoncode.com/implementing-the-open-closed-principle-with-strategy-and-factory-patterns?utm_source=hashnode&utm_medium=feed)

[Thái Lê Trí](https://hashnode.com/@trithai) · [May 23, 2025](https://hashnode.com/posts/open-closed-principle-trai-nghiem/683026d28f62b7343745806f)

### [Open Closed Principle - Trãi Nghiệm](https://java-note.hashnode.dev/open-closed-principle-trai-nghiem?utm_source=hashnode&utm_medium=feed)

Open Closed Principle là gì? Open Closed Principle là một trong năm nguyên tắc SOLID, phát biểu rằng: "Phần mềm nên được thiết kế để có thể mở rộng chức năng mà không cần phải sửa đổi code hiện có". Nghĩa là: Open for extension: Có thể thêm tính năn...

2 min read · [java-note.hashnode.dev](https://java-note.hashnode.dev/open-closed-principle-trai-nghiem?utm_source=hashnode&utm_medium=feed)

[Manoj Kumar](https://hashnode.com/@Manoj8222) · [May 22, 2025](https://hashnode.com/posts/system-design-day-36/682f4c2c5c3648108a79ea20)

### [System Design ( Day - 36 )](https://systemdesignbymanoj.hashnode.dev/system-design-day-36?utm_source=hashnode&utm_medium=feed)

SOLID Principles | SRP, OCP Problems without SOLID Principles 1. Maintainability2. Readability3. Bugs SOLIDS → Single Responsibility Principle ( SRP )O → Open Close Principle ( OCP )L → Liskov Substitution Principle ( LSP )I → Interface Segregation P...

3 min read · [systemdesignbymanoj.hashnode.dev](https://systemdesignbymanoj.hashnode.dev/system-design-day-36?utm_source=hashnode&utm_medium=feed)

[NonStop io Technologies](https://hashnode.com/@nonstopio) · [Mar 31, 2025](https://hashnode.com/posts/are-dart-extension-methods-an-example-of-open-closed-principle-ocp/67ea3a81158a8c36dd85b054)

### [Are dart extension methods an example of open closed principle (OCP)?](https://hallucinations-in-llms-101-part-i.hashnode.dev/are-dart-extension-methods-an-example-of-open-closed-principle-ocp?utm_source=hashnode&utm_medium=feed)

In this article, we’ll discuss whether dart extension methods are an example of open-closed principle, with examples.

6 min read · [hallucinations-in-llms-101-part-i.hashnode.dev](https://hallucinations-in-llms-101-part-i.hashnode.dev/are-dart-extension-methods-an-example-of-open-closed-principle-ocp?utm_source=hashnode&utm_medium=feed)

[Ganesh Rama Hegde](https://hashnode.com/@hegde10122) · [Mar 23, 2025](https://hashnode.com/posts/composite-design-pattern/67dfc04f7b3afe0cfeb8b30f)

### [Composite Design Pattern](https://designpatterns.hashnode.dev/composite-design-pattern?utm_source=hashnode&utm_medium=feed)

The Composite Design Pattern is a structural pattern that allows us to build complex tree structures where individual objects and groups of objects are treated uniformly. Concept It provides a way to compose objects into tree structures to represent ...

5 min read · [designpatterns.hashnode.dev](https://designpatterns.hashnode.dev/composite-design-pattern?utm_source=hashnode&utm_medium=feed)

[Pranav Bawgikar](https://hashnode.com/@pranavbawg) · [Mar 14, 2025](https://hashnode.com/posts/solid-principles-in-java-explained/67d495205f20d112d090b8cf)

### [SOLID Principles in Java, explained.](https://pranavbawg.hashnode.dev/solid-principles-in-java-explained?utm_source=hashnode&utm_medium=feed)

Some of the oldest rules in software are SOLID principles. We can write more maintainable, readable and reusable code with them.

5 min read · [pranavbawg.hashnode.dev](https://pranavbawg.hashnode.dev/solid-principles-in-java-explained?utm_source=hashnode&utm_medium=feed)
