Harish Gautamharishgautam.hashnode.dev·May 3, 2024Dependency Inversion Principle (DIP) - JavascriptThe Dependency Inversion Principle (DIP) is one of the SOLID principles of object-oriented design. It suggests that high-level modules should not depend on low-level modules but should depend on abstractions, and both high-level and low-level modules...DiscussJavaScript
Harish Gautamharishgautam.hashnode.dev·May 3, 2024Interface Segregation Principle (ISP) - JavascriptThe Interface Segregation Principle (ISP) is one of the SOLID principles of object-oriented design. It suggests that no client should be forced to depend on methods it does not use. In other words, you should design your interfaces in a way that clie...DiscussJavaScript
Harish Gautamharishgautam.hashnode.dev·May 3, 2024Liskov Substitution Principle (LSP) - JavascriptThe Liskov Substitution Principle (LSP) is one of the SOLID principles of object-oriented design, which states that objects of a derived class should be able to replace objects of the base class without affecting the correctness of the program. In ot...DiscussJavaScript
Harish Gautamharishgautam.hashnode.dev·May 3, 2024Open-Closed Principle (OCP) - JavascriptThe Open-Closed Principle (OCP) is one of the SOLID principles of object-oriented design, and it encourages software components to be open for extension but closed for modification. This means that you should be able to extend the behavior of a modul...Discusslow level design
Harish Gautamharishgautam.hashnode.dev·May 3, 2024Single Responsibility Principle - JavascriptThe Single Responsibility Principle (SRP) is one of the SOLID principles of object-oriented programming, and it states that a class should have only one reason to change. In JavaScript, you can apply this principle by ensuring that a class or a modul...Discusslow level design
SOURAV BERAsouravtechzone.hashnode.dev·Feb 27, 202420 Essential Low-Level Design (LLD) MCQs for Software Developers: Test Your Knowledge!Which of the following principles promotes code reusability by allowing a new class to be created from an existing class? a) Encapsulation b) Abstraction c) Inheritance d) Polymorphism The correct answer is: c) Inheritance Explanation: Inheritance i...Discuss·11 likesLLD MCQs
Chetan Dattachetan77.hashnode.dev·Feb 21, 2024Prototype Design PatternIntroduction It is used when we have to copy/clone an existing object. Consider a scenario where we have an object obtained from a source, and its creation is costly. If we need to make minor modifications to this object for experimentation purposes,...DiscussLow Level Designprototype design pattern
Chetan Dattachetan77.hashnode.dev·Feb 20, 2024Singleton Design PatternIntroduction This pattern is used when we have to create only 1 instance of the class There are 4 ways to achieve this Eager Lazy Synchronized Method Double locking 4 Ways of Singleton Pattern I Eager Initialization In this approach, we confine...DiscussLow Level Designlow level design
Chetan Dattachetan77.hashnode.dev·Feb 19, 2024Bridge Design PatternIntroduction Bridge pattern decouples an abstarction from its implementation so that the two can vary independently. UML Diagram In this UML implementor is removed from the abstraction so that implementor can have various concrete implementors. Numb...DiscussLow Level DesignSystem Design
Rohith Maddinenieverythingtypescript.in·Feb 4, 2024Factory Pattern (Bite Me Burgers v2)Mr Johnson is happy with v1 of Bite Me Burgers but he wants to add more burgers to his menu. He calls Jack and asks him to add Chicken and Veg Burger to the menu. He also gives the required details to add them to the menu. The Problem While adding tw...DiscussDesign PatternsFactory Design Pattern