
The main idea of the Liskov substitution principle is that any function/module that interacts with a class should also be able to interact with all subclasses of that class without breaking. This essentially means that a class is interchangeable with its subclasses.
Most likely you have written tons of code in violation of this principle, I know I have, but hopefully this video will help introduce you to why this principle is so good at making your code clean and maintainable.
π§ Concepts Covered:
- What the Liskov substitution principle is
- Why the Liskov substitution principle is important
- How to use the oLiskov substitution principle
- How to spot violations of the Liskov substitution principle
π Find Me Here:
My Blog:
My Courses:
Patreon:
Twitter:
Discord:
GitHub:
CodePen:
#SOLID #WDS #LiskovSubstituionPriniciple
0 Yorumlar