Posts

Showing posts from February, 2022

SOLID Principles with real-world examples

Image
  What are SOLID principles?   SOLID is a collection of five object-oriented design (OOD) principles introduced by Robert C. Martin. It should be followed when designing software. These principles layout guidelines for designing software while taking into consideration the project's long-term maintenance and expansion. These principles can assist in avoiding code smells, refactoring code, and adaptive software development and when you are programming,   y ou can follow good practices in order to avoid issues to make your software easier to understand and also more robust and maintainable.   Some of these good practices sometimes come in the form of principles and in object orientation, one of the most important principles is the solid principles, so let's look a little bit at what they are.     SOLID stands for, 1.  Single Responsibility principle 2.  Open/closed principle 3.  Liskov’s substitution principle 4.  Interface...