Should You Minimize Imports in the Main File?

preview_player
Показать описание
Well-designed code has a single “dirty place” where you patch everything up. But even a dirty place can be kept (kind of) clean. Watch this short to learn more.

#arjancodes #softwaredesign #python
Рекомендации по теме
Комментарии
Автор

Yes! Great video, I prefer main files to be less functional and more operational, ex. an API main file is running the API/assigning routes, not doing any handling. A CLI main file is calling the CLI with args, not defining commands…

preritdas
Автор

The music in this makes it hard to hear you properly.

krakenant
Автор

main is a great place to initialize all your singletons and construct all your mixins, and declare your God class and lay the foundation for your hammer factory factory.

kayakMike