1
User
Recs.
Recs.
8
Updates
Last
Updated
Updated
Activity
5 Options
Specs
Specs are quantitative aspects of the option such as the price
Pros
Pro More decoupled code
Since the class doesn't have to know anything about the outside world, everything is more decoupled. If your class would have to fetch its own dependencies then it would have to know where to find them, and as a result, it would have to know about the larger application.
Know any positive aspects of this option?
Cons
Con Steep Learning Curve
Significant effort is needed to grasp DI and use it correctly.
Know any negative aspects of this option?
Recommendations
Dependency Injection
Recommended 8 years ago
Bryan hasn’t added their experience, pros or cons to their recommendation.