Lightning Talk: Dependency Injection for Modern C++
summary
Argues that taking functions as parameters replaces heavy interface-and-mocking setups and shows concrete code: pass a std::function into an Optimizer/cost function instead of an abstract class, use a lambda injection in production and trivial lambdas in tests, and even swap to a function pointer for extra simplicity. Tests shrink to one-line fakes, complex object state never needs construction, and existing code needs only a few small signature changes to work.
AI-written summary · about
related talks
01h 00mHow to Use Dependency Injection to Write Maintainable Software
01h 07mDependency Injection Patterns: Efficiency and Usability
56mLaw of Demeter: A Practical Guide to Loose Coupling
01h 05mThe Imperatives Must Go!
01h 00mDesign Idioms from an Alternate Universe
01h 03mRetiring the Singleton Pattern
01h 02m“Modern C++ Design (part 1 of 2)”
58mGetting a grip on your code dependencies
