Solid Principles Tutorial with Java Coding Example for Beginners | Solid...
Solid Principles Tutorial with Java Coding Example for Beginners | Solid Principles Explained
In this video, we will discuss the SOLID principles for object-oriented programming and design. what is the purpose of Solid Principle in software design and development? First, we'll understand the reasons why we need SOLID principle in our software design consideration. Then we'll discuss each principle in details with real world example and code.
** Solid Principles Introduction **
Eventually, as our applications grow in size so as the complexity hence, we need SOLID principle to reduce the complexity and to maintain an application. These principles establish practices that lend to developing software with considerations for maintaining and extending as the project grows. Adopting these practices can also contribute to avoiding code smells, refactoring code, and Agile or Adaptive software development. The SOLID Principles are five principles of Object-Oriented class design. They are a set of rules and best practices to follow while designing a class structure. These five principles help us understand the need for certain design patterns and software architecture in general. So, I believe that it is a topic that every developer should learn.
This principle is an acronym of the five principles which is given below…
1. The Single Responsibility Principle - a class should do one thing and therefore it should have only a single reason to change.
2. The Open-Closed Principle - The classes should be open for extension and closed to modification.
3. The Liskov Substitution Principle - The derived or child classes must be substitutable for their base or parent classes.
4. The Interface Segregation Principle - means keeping things separated and larger interfaces should be split into smaller ones.
5. The Dependency Inversion Principle - Interface or abstract class should not depend on child classes instead child classes should depend upon interfaces or abstract classes.
In software development, Object-Oriented Design plays a crucial role when it comes to writing flexible, scalable, maintainable, and reusable code. There are so many benefits of using OOD but every developer should also have the knowledge of the SOLID principle for good object-oriented design in programming.
** Advantages of Solid Principles **
1. The goal of SOLID principles is to reduce code dependencies, and adding a new feature or changing a part of the code doesn't break the whole build.
2. Using SOLID principles in object-oriented design makes the code easier to understand, manage, maintain, and change.
3. The SOLID principle helps in reducing tight coupling.
4. SOLID provides sound design principles applicable to modern programs and environments, not just object-oriented programming.
** Chapter Timestamps **
0:00 Welcome to Solid Principles
0:26 Background History of Solid Principles
2:06 Introduction of Solid Principles
3:57 Object oriented programming concepts with Solid Principles
4:18 Where to use Solid Principles
4:49 Advantages of Solid Principles
5:47 Summary of Solid Principles
6:18 Next video on Single Responsibility Principle
#solidprinciples #solidprinciplestutorial #objectorientedprogramming
** CHECK OUT OUR OTHER VIDEOS **
Spring boot project setup:
• Spring boot Proje...
Spring Boot Microservice with postgres database Project:
• Spring Boot Micro...
Prepare Docker file, Container and Build Image:
• Docker Tutorial f...
Deploy Docker Image AWS Elastic Container Service:
• Deploy Springboot...
Run MongoDB in Docker Container:
• Run MongoDB Image...
** CHECK OUR PLAYLISTS **
Java Design Pattern Complete Tutorial
• Java Design Patte...
Spring Boot Complete Tutorial
• Spring Boot Tutor...
Docker Containers Complete Tutorial
• Cloud & Container...
** Acronyms **
OOP – Object Oriented Programming Languages
GOF – Gang of Four Design Pattern
COD – Code One Digest
** References ** https://www.tutorialspoint.com/design...
** 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.
Check out our channel here:
/ @codeonedigest
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
Twitter: https://twitter.com/codeonedigest
Facebook: https://www.facebook.com/codeonedigest
Instagram: https://www.instagram.com/codeonedigest/
Linkedin: https://www.linkedin.com/in/codeone-d...
Website: https://codeonedigest.wordpress.com/
Comments
Post a Comment