The feature I'd most like to see in Delphi is....

a dependency injection framework.

Dependency Injection is getting to be so commonplace -- and so powerful and useful -- that it should become part of the Delphi RTL.

163 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Nick HodgesAdminNick Hodges (Admin, Delphi programming language and IDE) shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    6 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • Stefan GlienkeStefan Glienke commented  ·   ·  Flag as inappropriate

        I disagree that it should be part of the RTL. In most languages that are commonly using a DI container it is part of their runtime but third party libraries.

        I suggest looking at Spring4D which contains a very advanced DI container that can easily compete with other DI container such as Unity, Castle or Spring to just name a few.

      • gaddlordgaddlord commented  ·   ·  Flag as inappropriate

        +3. We do have some nice already available free ones. Maybe we just need to "GetIt!" wrap them?

      • BruceBruce commented  ·   ·  Flag as inappropriate

        I (unfortunately) have to do a lot of C# programming (I say unfortunately because I'd love to find a job in Phoenix where I can just do Delphi - sadly my Delphi has been relegated to a hobby but...hope springs eternal) and I can't live without Ninject as part of my database development. Matter of fact, I went so far as to write a T4 template that creates all my entities, repositories and data context using DI - I don't even think about it anymore - I just use it and presume it'll be there.
        So, YES, I want a DI framework in Delphi!!!!!

      Feedback and Knowledge Base