Hacker Newsnew | past | comments | ask | show | jobs | submitlogin



You don't come across well in this at all. 200 classes in a OO project is pretty small really. And you've never used DI ever? Really?


I've written large systems in Java, C++ and yes, I have never ever used DI. Nor even seen any kind of AbstractFactory in Java.


Are you sure you know what DI is? It just means you pass an object's dependencies to it, instead of it constructing them itself. You don't need a framework to do DI.


I don't believe you. Are you mistaking DI for meaning a full blown IoC framework? DI is merely the abstract computer science concept. In FP land we call it partial application or P/A. But it is essentially the same thing. I honestly cannot fathom how a large project would look without DI. It must be hideous with massive amounts of coupling all over the place i.e. not something to be proud of. Refactoring must be very hard.

I would have to take a few guesses to know what an AbstractFactory is. That is a "J2EE Javaism" and always has been. So you aren't alone there ;)


I'm pretty sure it's impossible to write a non-trivial program without ever using DI, even if just by accident.


Agreed. If you've not used DI after 15 years as a "professional" developer, and you are also happy to "boast" about this fact on the Internet, then it means you are very likely an utter shit developer.


I have never used DI in my 16 year professional career in C++ and Java land.


You should blog about your alternative approach to structuring code bases that minimise coupling. It may be superior.


That's awesome :-) but... how did you manage to get through that massive rant and extract the author's main points?


I just read it, skipping the non-essential parts, after quickly scanning them.

I might have missed one or two points, but it doesn't really matter.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: