Composition Vs Inheritance - Why You Should Stop Using Inheritance

Описание к видео Composition Vs Inheritance - Why You Should Stop Using Inheritance

🚨 IMPORTANT:

1 Year Free Hosting: https://www.atlantic.net/webdevsimpli...
Use code KYLE for an additional $50


Object oriented programming has been around for a very long time and is one of the most popular programming paradigms, especially in academic curriculum. Unfortunately, pure object oriented programming is not the best solution to many problems. This is why in certain industries, like game development, the idea of composition has risen in popularity to overtake inheritance from object oriented programming. In this video I will explain the differences between inheritance and composition through one example program. I will also go in depth about the problems with using inheritance that composition solves. This was an eye opening concept for me when I first learned about it, and I know use composition all the time in my code.


📚 Materials/References:

Destructoring/Spread Operator Tutorial:    • Why Is Array/Object Destructuring So ...  


🧠 Concepts Covered:

What inheritance is
What composition is
The differences between inheritance and composition
Why composition is better than inheritance
How to write composition based code


🌎 Find Me Here:

My Blog: https://blog.webdevsimplified.com
My Courses: https://courses.webdevsimplified.com
Patreon:   / webdevsimplified  
Twitter:   / devsimplified  
Discord:   / discord  
GitHub: https://github.com/WebDevSimplified
CodePen: https://codepen.io/WebDevSimplified


#CompositionVsInheritance #WDS #CleanCode

Комментарии

Информация по комментариям в разработке