News for hackers. Stuff that matters.
Re:Introducing Rubinius X by fauigerzigerk on Tuesday October 15, 2013 @12:40PM (#6554388)
Can you show me an example of something a compiler could check if it wasn't for dependency injection?

I think the question of whether or not to hard code some setting or make it configurable is unrelated to dependency injection. Dependency injection is one way to design dynamic configuration once you have decided not to hard code.

Other options would be to load stuff from a database, a directory server or from a config file. No matter how you do it the compiler won't be able to help.

There are no comments on this comment yet.