Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 121677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T04:00:31+00:00 2026-05-11T04:00:31+00:00

After reading the nice answers in this question , I watched the screencasts by

  • 0

After reading the nice answers in this question, I watched the screencasts by Justin Etheredge. It all seems very nice, with a minimum of setup you get DI right from your code.

Now the question that creeps up to me is: why would you want to use a DI framework that doesn’t use configuration files? Isn’t that the whole point of using a DI infrastructure so that you can alter the behaviour (the ‘strategy’, so to speak) after building/releasing/whatever the code?

Can anyone give me a good use case that validates using a non-configured DI like Ninject?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T04:00:32+00:00Added an answer on May 11, 2026 at 4:00 am

    I don’t think you want a DI-framework without configuration. I think you want a DI-framework with the configuration you need.

    I’ll take spring as an example. Back in the ‘old days’ we used to put everything in XML files to make everything configurable.

    When switching to fully annotated regime you basically define which component roles yor application contains. So a given service may for instance have one implementation which is for ‘regular runtime’ where there is another implementation that belongs in the ‘Stubbed’ version of the application. Furthermore, when wiring for integration tests you may be using a third implementation.

    When looking at the problem this way you quickly realize that most applications only contain a very limited set of component roles in the runtime – these are the things that actually cause different versions of a component to be used. And usually a given implementation of a component is always bound to this role; it is really the reason-of-existence of that implementation.

    So if you let the ‘configuration’ simply specify which component roles you require, you can get away without much more configuration at all. Of course, there’s always going to be exceptions, but then you just handle the exceptions instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 75k
  • Answers 75k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer You can set access rules for ASP.NET or WCF web… May 11, 2026 at 2:53 pm
  • added an answer Put it at the root level of one of your… May 11, 2026 at 2:53 pm
  • added an answer They're proposing use of telnet simply because it's one of… May 11, 2026 at 2:53 pm

Related Questions

I need to parse a xml file which is practically an image of a
I often find linq being problematic when working with custom collection object. They are
I'd like to get uniform distribution in range [0.0, 1.0) If possible, please let
After reading this question , I was reminded of when I was taught Java

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.