Nicolas Frugoniarchitecturewithnico.hashnode.dev·Mar 29, 2024The beauty of not breaking existing codeAs software developers, we're constantly facing new challenges and requirements that require us to make changes to our code. But as our codebase grows and becomes more complex, making changes can become increasingly difficult and risky. One small mis...DiscussSOLID principles
Younes Espiritukapitan-heneral.hashnode.dev·Mar 22, 2024Open/Closed Principle↝ It is said that our code should be open for extension but closed for modification. What does this mean? Well, at some point, you may want to extend the functionality of a class, but modification is restricted to ensure bug-free code—thus, it must r...DiscussTypeScript
Kumar Rohitkrohit-de.hashnode.dev·Jan 13, 20242. Open-Closed PrinciplePremise Picture your favorite storybook – vivid characters, captivating plots, and a world that unfolds with every turn of the page. Now, imagine you have a superpower! A superpower through which you can add new chapters to this beloved story without...DiscussSOLID Design PrinciplesOpen Closed Principle
Serhat Levent Yavaşserhatleventyavas.dev·Nov 12, 2023Open-Closed Prensibi Nedir?Yazılım geliştirmenin bir yaşam döngüsü vardır. İlk önce talebi ya da sorunu analiz eder ve gereksinimleri ortaya çıkarırız. Ardından analize göre sistemi tasarlarız. Tasarlama süreci bitirdikten sonra kodlama aşamasına geçeriz. Kodlama sürecinin ard...DiscussOCP
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·80 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·160 readsSOLID principles