Русские видео

Сейчас в тренде

Иностранные видео


Скачать с ютуб Composition Is Better Than Inheritance in Python в хорошем качестве

Composition Is Better Than Inheritance in Python 3 года назад


Если кнопки скачивания не загрузились НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу страницы.
Спасибо за использование сервиса savevideohd.ru



Composition Is Better Than Inheritance in Python

In this video, I explain the difference between composition vs inheritance, what the design principle "favor composition over inheritance" means in practical terms, and how you can use it to make better software design decisions. The code I worked on in this video is available here: https://github.com/ArjanCodes/2021-co... 💡 Here's my FREE 7-step guide to help you consistently design great software: https://arjancodes.com/designguide. 🎓 Courses: The Software Designer Mindset: https://www.arjancodes.com/mindset The Software Designer Mindset Team Packages: https://www.arjancodes.com/sas The Software Architect Mindset: Pre-register now! https://www.arjancodes.com/architect Next Level Python: Become a Python Expert: https://www.arjancodes.com/next-level... The 30-Day Design Challenge: https://www.arjancodes.com/30ddc 🛒 GEAR & RECOMMENDED BOOKS: https://kit.co/arjancodes. A few interesting links to articles and books: - Design Patterns: Elements of Reusable Object-Oriented Software by Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides: https://amzn.to/3jllgyH - Principles of Package Design: Creating Reusable Software Components by Matthias Noback: https://amzn.to/2NETK3l - Clean Code: A Handbook of Agile Software Craftsmanship by Robert Martin: https://amzn.to/3qVZgNs - The original Design Principles and Design Patterns article by Robert Martin: https://fi.ort.edu.uy/innovaportal/fi... 👍 If you enjoyed this content, give this video a like. If you want to watch more of my upcoming videos, consider subscribing to my channel! 💬 Join my Discord server here: https://discord.arjan.codes 🐦 Twitter:   / arjancodes   🌍 LinkedIn:   / arjancodes   🕵 Facebook:   / arjancodes   👀 Code reviewers: - 0xUnicorn - Ryan Laursen - Sybren A. Stüvel 🔖 Chapters: 0:00 Intro 1:11 Explanation of the example 3:57 Technique #1: inheritance 8:30 Problems with the inheritance technique 10:02 Technique #2: composition 18:48 Improvement: turn Commission into an abstract class 20:03 Limitations of this example 21:29 Final thoughts #arjancodes #softwaredesign #python Thumbnail photos used: - Marius Masalar (https://unsplash.com/@marius) - Alexander Schimmeck (https://unsplash.com/@alschim) DISCLAIMER - The links in this description might be affiliate links. If you purchase a product or service through one of those links, I may receive a small commission. There is no additional charge to you. Thanks for supporting my channel so I can continue to provide you with free content each week!

Comments