Write clean and quality code with SOLID Principles

  1. Single Responsibility Principle
  2. Open Closed Principle
  3. Liskov Substitution Principle
  4. Interface Segregation Principle
  5. Dependency Inversion Principle
  • Implementing many functionalities in the same class even though they are not related
  • Implementing a tight coupling relationship among the classes.
  • An appropriate design pattern as per the project need
  • Correct architecture and
  • Design principles (SOLID, DRY, etc.)
  1. Open for extension:
    The new functionality/behavior can be added to satisfy the new requirements.
  2. Closed for modification:
    To extend the new functionality/behavior, it is not required to modify the existing code.
  • “High-level modules or classes should not depend on low-level modules or classes. Both should depend on abstractions”.
  • “Abstraction should not depend upon details. Details should depend upon abstractions”.
  1. https://medium.com/android-news/android-development-the-solid-principles-3b5779b105d2
  2. https://pro-hussein-reda.medium.com/solid-principles-open-closed-principle-ocp-fc36653e11c0

--

--

--

Your Digital Transformation partner. We are here to share knowledge on varied technologies, updates; and to stay in touch with the tech-space.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Experience the First Ever SQLSaturday in BH

Bashed HTB write-up

Are you worried about your NFT today?

Flawless Hacks Hackathon 2018

Commonly used Decorators in Python Class

Using Linux along with Windows

Docker tutorial — Build Docker image for your Angular 6 application

Facial animation capture using UE4 and iPhone X

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Payoda Technology Inc

Payoda Technology Inc

Your Digital Transformation partner. We are here to share knowledge on varied technologies, updates; and to stay in touch with the tech-space.

More from Medium

Note of Clean Code

What is the clean code? ( Part 1 Defining meaninful names)

How does HashMap work in Java?

Designing Great Software — MVC