4 ms·
Given a list of pairs, where one is an object and the other the arguments of the constructor, find a way to construct all of the objects. Topological sort and
by cleancoder0 5y ago
Given a list of pairs, where one is an object and the other the arguments of the constructor, find a way to construct all of the objects.
Topological sort and run. That’s all there is to dependency injection and I cannot imagine a graph so large that I would care for toposort
- taeric 5y agoThis leaves out lifecycle management. Which, yes, some lifecycles are confusing. But using them well can be very beneficial