Andrew, you have just said what needs to be said about DI that for some reason it seems like nobody else on earth ever says -- no, they have to write some giant screed that includes references to Hollywood. No wonder technology sucks, when the people writing the tutorials can't even explain things well. Many thanks for your post.
(I did already grok DI, but seriously, the tutorials I've ever seen have always been insane.) > Dependecy injection is nothing more than the difference between this: > > public class Bosh { > private final Dependecy dep = new DependencyImpl(); > } > > and this: > > public class Bosh { > private final Dependecy dep; > public Bosh(Dependency dep) { this.dep = dep; } > } > > In both cases Bosh needs a Dependency. It depends on having one. In > the first case the actual implementation is hard coded. In the second > the implementation is provided, or to put it another way, the > dependency is injected. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---