Загрузка...

What is a FACTORY and how to create one in Python?

This video shows why and when to use a factory and how to create one in Python. It is the first step in a 3-part video series about Factories. C H A P T E R S 0:27 Common problems with creating objects at runtime 1:00 Single responsibility violation 1:10 Open-closed principle violation caused by switch 1:44 Extract if/else code to factory 2:40 A factory is an object that takes responsibility for creating other objects 2:48 Common mistake when making factories 3:36 Problems caused by static factories M Y O N L I N E T R A I N I N G ?Do you like my style of teaching? Enroll in one of my courses online: https://pythonforeveryone.com/python-online-training.html #pythonforeveryone #programming #python

Видео What is a FACTORY and how to create one in Python? автора Молодые питонисты-эксперты
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки