Don’t Push Your Java into My Python!
summary
The talk examines why attempts to apply Java-style practices to Python (e.g., strict architecture or DDD patterns) often feel wrong and how to adopt domain-driven design in Python without overengineering. It covers which practices from other languages are useful in Python, why separating business logic from infrastructure matters, and pragmatic approaches to splitting code into domains when requirements are still unclear.
AI-written summary · about
chapters (20)
- 0:00Introduction
- 2:01DDD struggles in Python
- 6:16Strategy vs tactics in DDD
- 6:59Ubiquitous language
- 9:08Terminology consistency
- 10:52Value objects in Python
- 13:39Type safety for IDs
- 16:26Money handling with wrappers
- 18:54Result monad for errors
- 22:08Result monad demo
- 27:27Result monad benefits
- 29:53Forced case handling
- 30:34Repository pattern controversies
- 31:38Stop overusing repositories
- 33:00Transactions in repositories
- 34:05SQLAlchemy query builders
- 35:49Avoid premature abstraction
- 37:15DDD for simple projects
- 37:55Learning from other stacks
- 39:31Q&A
