Dependency Inversion: Write BETTER PYTHON CODE Part 2

Опубликовано: 28 Январь 2021
на канале: ArjanCodes
90,466
6.3k

💡 Learn how to design great software in 7 steps: https://arjan.codes/designguide.

In this video, you'll learn how to write better Python code using dependency inversion by going step by step through a simple code example. Dependency inversion is one of the five SOLID principles. The basic idea of dependency inversion is to write your code in such a way that high level modules shouldn't depend on low level modules, both should depend on abstractions (i.e. abstract classes and interfaces).

🎓 ArjanCodes Courses: https://www.arjancodes.com/courses.

For more information about the Mypy static type checker I mentioned in the video, see: http://mypy-lang.org.

GitHub repository: https://github.com/arjancodes/betterp....

💬 Join my Discord server: https://discord.arjan.codes.

⌨️ Keyboard I’m using: https://amzn.to/49YM97v.

Chapters:
0:00 Intro
2:02 Code example
3:23 Creating an abstract class
4:55 Making a subclass
5:48 Modifying the power switch class
6:55 Adding another switchable subclass
7:50 Outro


На этой странице сайта вы можете посмотреть видео онлайн Dependency Inversion: Write BETTER PYTHON CODE Part 2 длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь ArjanCodes 28 Январь 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 90,466 раз и оно понравилось 6.3 тысяч зрителям. Приятного просмотра!