Josué Tchirktemajosue.hashnode.dev·Oct 3, 2023SOLID : guide pour débutant en Java (Partie 2)Dans la deuxième partie de cette note, nous allons aborder le principe Open/Closed dans le cadre du principe SOLID. Avant d'entamer cette discussion, je vous encourage à revoir la première partie: https://josue.hashnode.dev/solid-guide-pour-debutant-...Discuss·32 readsclean-architectureJava
Dikshya Subedidikshyasubedi.hashnode.dev·Sep 20, 2023Open/Closed Principle Explain With An Exampleusing System; public class Fighter { private IWeapon _weapon; public Fighter(IWeapon weapon) { _weapon = weapon; } public void Fight() { _weapon.Attack(); } } public interface IWeapon { void Attack(...DiscussOpen Closed Principle
Amburi Royamburi.hashnode.dev·Sep 10, 2023SOLID Principles: Open-Closed Principle (OCP)The Open-Closed Principle (OCP) is one of the SOLID principles of object-oriented programming. Definition: Software entities like classes, modules, functions, etc., should be open for extension but closed for modification. The “open” part says: We s...DiscussOCP
Chetan Dattachetan77.hashnode.dev·Aug 14, 2023Open-Closed Principle (OCP)Open for extension but closed for modification. OCP is part of SOLID design principles. OCP dictates that software entities should be open for extension but closed for modification. This principle ensures that existing, tested, and live classes rema...DiscussLow Level DesignSOLID principles
Adeesh Sharmaadeesh.hashnode.dev·Jun 24, 2023Using the Open Closed Principle (OCP) in ReactReact, a widely used JavaScript library for building user interfaces, is accustomed to using software design principles that make code easier to maintain and more readable. The "Open-Closed Principle" (OCP), a key idea in the realm of object-oriented...Discuss·29 readsReact
Yunus Shaikhyunus.in·Mar 24, 2023Simplifying the Open-Close Principle in PHPThe Open-Closed Principle (OCP) is one of the five SOLID principles of object-oriented design. which states that software entities (classes, modules, functions, etc.) should be open for extension but closed for modification. This means that you shoul...Discuss·104 readsSOLID principles
Matías Navarro-Carterblog.mnavarro.dev·Feb 3, 2023Adding is Better Than ChangingThe Coder's Proverbs is a series where I summarize some lessons and principles I've learned over my career by using a memorable and simple saying of wisdom. In the previous article of this series, I touched on the subject of change. I mentioned chan...Discuss·57 readsThe Coder's Proverbssoftware development
Dulitha Rajapakshadulitharajapaksha.hashnode.dev·Aug 10, 2022SOLID Design Principles: Open/ Closed PrincipleWe have learned what the S means in SOLID principles. If you haven't read it yet, you can read it from here. Now, for the second letter in SOLID. It stands for Open/ Closed Principle. What is open closed principle? The principle says "Software entiti...Discuss·113 readsDesign Principles 101design principles
Shahmir Faisalblog.shahmirfaisal.com·Jul 20, 2022Open-Closed Principle - SOLID Principles in JavascriptThis is the second article in our series of articles covering the SOLID Design Principles. If you are unaware of SOLID, you can read the first article where I gave a brief introduction to SOLID. In this article, we will be covering the Open-Closed ...Discuss·240 readsSOLID Design PrinciplesSOLID principles