Talk:Dependency injection
Appearance
Computing: Software Start‑class Mid‑importance | |||||||||||||
|
Dependency injection received a peer review by Wikipedia editors, which is now archived. It may contain ideas you can use to improve this article. |
This page has archives. Sections older than 90 days may be automatically archived by Lowercase sigmabot III when more than 4 sections are present. |
Links
- Dependency Injection: Vitally Important or Totally Irrelevant? a presentation by Jim Weirich at OSCON 2005
- Dependency Injection in Ruby by Jim Weirich
- Design Patterns: Dependency Injection by Griffin Caprio
Framework based DI Code Example
I highly discourage anybody from using hard coded strings in-line. The example in the last section of the page would be better if we added an static class to it that contains the strings:
//static class provided by the framework or written by the user to indicate which dependencies are available public static class MyAvailableServices{ public static final string CarBuilderService = "CarBuilderService"; public static final string VanBuilderService = "VanBuilderService"; } public class MyApplication { public static void main(String[] args) { Service service = (Service)DependencyManager.get(MyAvailableServices.CarBuilderService); Car car = (Car)service.getService(Car.class); car.setPedalPressure(5); float speed = car.getSpeedInMPH(); } }
Registry Pattern
Should not this article reference the Registry Pattern which was very prevalent until IoC/DI was popularised?
Inline external links
Is it correct to put inline links to external sites in the article? See links to CDI, Weld, Salta & Dagger in
CiaPan (talk) 13:48, 2 June 2020 (UTC)
It is just "configuration" not more :-)
For me the term "Dependency injection" and the corresponding Wikipedia article are way too complicated.
For me it just "Configuration". But some people don't like it simple, they prefer bloated theory.