What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 134 Stack Exchange communities.

Which, if any, DI container does Stack Exchange use? Some highlights of the architecture can be seen here and here.

share|improve this question
    
You don't really have to explain to us what a DI container is, and I don't think they use a specific DI container, or if they do, it's homegrown. –  jcolebrand Feb 13 '12 at 22:15
    
@jcolebrand - If you do not know, then why comment? I did not "explain what a DI container is", those links to the architecture are for stack exchange, not DI containers. Please read and examine before posting speculations. –  Travis J Feb 13 '12 at 22:21
    
@jcolebrand: speculation is best left for gold^H^H^H^Hrep mining. –  user7116 Feb 13 '12 at 22:26
1  
You're right, my apologies, and I'll leave the comment for my own shaming. However, let me just mention to you, that they've been rather explicit in all their code, and the DataExplorer has a public repo on google code, and there is not, that I'm aware, a DI layer there. –  jcolebrand Feb 13 '12 at 22:27

1 Answer 1

up vote 14 down vote accepted

We do not currently make specific use of a DI container. We try to keep things minimal, and only introduce complexity/abstractions if it solves a problem we actually have. We are also, however, very happy to refactor - so if/when we felt that this would be a beneficial thing, we'd very happily hack it in.

We do keep our code pretty DRY, particularly around the key object constructions, so this wouldn't necessarily be too tricky.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .