Overview
Learn how to control nondeterministic elements in code through dependency injection in this 22-minute PyCon Israel conference talk. Explore various sources of nondeterminism including randomness, IO operations, environment variables, and database interactions that can complicate testing and code reliability. Discover practical techniques for implementing dependency injection patterns to manage these unpredictable elements, making code more testable and maintainable. Follow along with demonstrations that showcase how even simple functions can be affected by nondeterminism and gain hands-on strategies for addressing these challenges effectively through proper dependency management.
Syllabus
Haki Benita- Taming Nondeterminism With Dependency Injection
Taught by
PyCon Israel