Wednesday 10 February 2021

Single Responsibility principle

In this article you're going to master SOLID principles of object-oriented design and architecture. These principles embody more than 40 years of academic research and industry experience, passed to us from previous generations of software engineers. Therefore, by learning SOLID, you gain universal, time-proven tools to build high-quality software.

SOLID is an acronym that stands for five different principles:

  • Single Responsibility Principle

  • Open Closed Principle

  • Liskov Substitution Principle

  • Interface Segregation Principle

  • Dependency Inversion Principle

In this course, you will learn about all five SOLID principles in detail and understand their importance. You will see how these principles manifest themselves in real-world software architecture and discover how they translate into actionable guidelines for writing clean and maintainable code. Speaking about code... SOLID code is flexible, extensible and readable. It is a joy to work with!

In addition to in-depth discussion of SOLID, in this course you will also find many interesting historical facts about the people behind these principles. These short historical references will allow you to see the bigger picture, and they will also make the course much more interesting and engaging for you.

So, if you're a professional software developer and you're serious about design, architecture and clean code, this course is for you!

What you’ll learn

  • Discover the theory behind SOLID principles
  • See common SOLID use cases
  • Learn SOLID architecture practices
  • Understand the scope of applicability of SOLID principles
  • Discover the role of abstractions in software design
  • Acquire pragmatic mindset and treat SOLID principles as tools

Are there any course requirements or prerequisites?

  • Knowledge of any object-oriented language
  • Developers who want to learn SOLID software architecture and write clean and maintainable applications

SRP:- Single Responsibility principle

Means the class should be only one reason to change, There can be more reason but at the pint of implementing we should keep this in mind as well.

If there is and , or in definition that may violate single responsibility principle.