Git Product home page Git Product logo

amirtghizde / solid Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 468 KB

This repository aims to provide a comprehensive resource for understanding and applying the SOLID principles in software development.

Java 100.00%
clean-code code-examples dependency-inversion design-patterns interface-segregation liskov-substitution object-oriented-programming open-closed-principle refactoring single-responsibility software-design-principles solid-principles

solid's Introduction


Github Created At

Solid principles

The SOLID principles are a set of object-oriented design principles that have revolutionized the world of software development. Coined by Robert C. Martin, also known as Uncle Bob, these principles provide a framework for writing modular, maintainable, and robust software. By adhering to these principles, developers can create systems that are easier to understand, debug, and extend.

The term SOLID is an acronym that represents the following principles:

  • โ˜Single Responsibility Principle (SRP): Each class or module should have only one reason to change, focusing on a single responsibility. This promotes high cohesion and reduces the risk of unintended side effects when modifying code.

  • ๐Ÿ”’๐Ÿ”“Open-Closed Principle (OCP): Software entities (classes, modules, functions) should be open for extension but closed for modification. This principle encourages the use of abstraction and interfaces, enabling new features to be added without modifying existing code.

  • ๐Ÿ‘ฅLiskov Substitution Principle (LSP): Subtypes must be substitutable for their base types without affecting the correctness of the program. This principle ensures that inheritance hierarchies are well-designed and that derived classes can be used interchangeably with their base classes.

  • ๐Ÿ‘จ๐Ÿ‘ฉInterface Segregation Principle (ISP): Clients should not be forced to depend on interfaces they do not use. This principle promotes the creation of small, cohesive interfaces tailored to specific client requirements, preventing unnecessary dependencies.

  • ๐ŸคDependency Inversion Principle (DIP): High-level modules should not depend on low-level modules; both should depend on abstractions. This principle encourages the use of dependency inversion, where the dependencies between modules are inverted, making the system more flexible and decoupled.

Note

Don't forget to drop a star it took me a lot to write this stuff ๐Ÿ˜ต

solid's People

Contributors

amirtghizde avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.