DON'T Misuse Inheritance - Do THIS Instead!

preview_player
Показать описание
Inheritance and polymorphism clearly have their place in software design. But if these concepts get misused for "simple code reuse" the end result usually is quite some unnecessary complexity. Luckily we can refactor inheritance into composition with just a few simple steps.

0:00 Intro
0:19 Common anti-pattern
0:54 Problems
1:42 Worst-case
2:02 Better alternatives
3:25 Refactoring blueprint
5:37 Conclusion
Рекомендации по теме