Duration 1:00

Single Responsibility Principle Explained with Real World Example

47 watched
0
2
Published 28 Feb 2023

Single responsibility principle is part of SOLID principles. Single responsibility principle is the first principle of all Solid Principles. Single-responsibility Principle (SRP) states that a class should have one and only one reason to change, meaning that a class should have only one job. ** Where to use Single Responsibility Principle ** 1. Use single responsibility principle if you a class, or a method or any microservice doing multiple jobs. 2. Use single responsibility principle whenever you want to simplify your code. 3. Use single responsibility principle whenever you want to make your code simple, easy to understand, easy to read and easy to maintain. 4. Use single responsibility principle if your project is growing faster and bigger and you feel any modification in a class would break other functionality. ** Advantages of Single Responsibility Principle ** 1. Single Responsibility Principle makes your software easier to implement and prevents unexpected side-effects of future changes. 2. Using SRP Classes, software components and microservices that have only one responsibility are much easier to explain, understand and implement than the ones that provide a solution for everything. ** Full Video Link of Single Responsibility Principle ** Single Responsibility Principle /watch/sTGRJZdJ_pqJR ** Topics Covered ** 1. Introduction of Single Responsibility Principle 2. Real world example of Single Responsibility Principle 3. Java code implementation of Single Responsibility Principle 4. Usage of Single Responsibility Principle 5. Advantage of Single Responsibility Principle 6. Summary of Single Responsibility Principle 7. Next Video on Open-Closed Principle #solidprinciples #singleresponsibilityprinciple #srp ** CHECK OUT OUR OTHER VIDEOS ** Spring boot project setup: /watch/sxKJe02AgsbAJ Spring Boot Microservice with postgres database Project: /watch/05bEg9Ow4wiwE Prepare Docker file, Container and Build Image: /watch/osunjzTdp_gdn Deploy Docker Image AWS Elastic Container Service: /watch/wzZwuno5RlZ5w Solid Principle Tutorial /watch/EewXfBrZ4d7ZX ** CHECK OUR PLAYLISTS ** Java Design Pattern Complete Tutorial /playlist/PL2NZAYdLkYvglL0xl-4tgBAribrcjeuNH Spring Boot Complete Tutorial /playlist/PL2NZAYdLkYvg_VlNmszrb-Um0wRx5yGDF Docker Containers Complete Tutorial /playlist/PL2NZAYdLkYvhZQo2VTVCSug_zVjekNodi Solid Principles and Object-Oriented Programming Concept and Design /playlist/PL2NZAYdLkYvgB_35bYUnqP1p6v6P2Yb4- ** Acronyms ** OOP – Object Oriented Programming Languages SRP – Single Responsibility Principle OCP – Open Closed Principle LSP – Liskov Substitution Principle ISP – Interface Segregation Principle DIP – Dependency Inversion Principle COD – Code One Digest ** ABOUT OUR CHANNEL ** CodeOneDigest is a youtube channel that produces videos on programming languages, cloud and container technologies, Software design principles, Java frameworks in English and Hindi languages. Dosto, CodeOneDigest youtube channel pe aapko programming languages, container technology, cloud computing, software engineering se related videos milenge. Check out our channel here: /channel/UC9V0QYsWKz_OD2uooCtEtRg Don’t forget to subscribe! ** OUR WEBSITE ** https://codeonedigest.wordpress.com/ ** GET IN TOUCH ** Email us on codeonedigest@gmail.com FOLLOW US ON SOCIAL - LIKE, SHARE & SUBSCRIBE Get updates or reach out to Get updates on our Social Media Profiles! Subscribe: https://bit.ly/3NeWQ8U Youtube: /channel/UC9V0QYsWKz_OD2uooCtEtRg Twitter: https://twitter.com/codeonedigest Facebook: https://www.facebook.com/codeonedigest Instagram: https://www.instagram.com/codeonedigest/ Linkedin: https://www.linkedin.com/in/codeone-digest-10b418255/ Reddit: https://www.reddit.com/user/codeonedigest Github: https://github.com/codeonedigest Website: https://codeonedigest.wordpress.com/ Tumblr: https://www.tumblr.com/codeonedigest Pinterest: https://in.pinterest.com/codeonedigest/

Category

Show more

Comments - 1