Dependency Injection and Policy Based Design

I believe that one indicator that an approach or technique is a good idea is that it appears in multiple contexts or gets invented simultaneously by different people. The dependency injection pattern is an example of this because of its similarity to policy-based design. This helps reinforce my feelings that both approaches are worthwhile techniques for reducing code coupling.



July 16, 2008
URL:http://www.drdobbs.com/cpp/dependency-injection-and-policy-based-de/228701135

Terms of Service | Privacy Statement | Copyright © 2024 UBM Tech, All rights reserved.