On Jan 26, 2010, at 10:52 AM, Bob Lee wrote: > On Tue, Jan 26, 2010 at 7:18 AM, Bob Lee <[email protected]> wrote: > He says, "you think the injector is not a global? You think > BillingService.class is not a global? There will always be globals to deal > with." Guice users know that there don't always have to "be globals to deal > with" outside of your code's entry point. Uncle Bob doesn't know what he's > missing out on. > > Uncle Bob's "global" comment also indicates that he doesn't know about > private modules. Private modules reduce the amount of code you have to write > by an order of complexity. TMK, no other DI framework solves this problem at > all, let alone as elegantly as Guice does.
A few things about this post. Uncle Bob is obviously not an engineer any longer. Any example with only 3 classes isn't a valid real world case Anyone who wants Factories needs psychiatric treatment He set out to remove Modules and @Inject and ended up with Factories that are Modules and using @Inject. What does his solution do really except add code overhead? He started with using constructors and claims they are great, but also claims to want DI. Is he bipolar or something? Treatment is definitely in his future Then he decided that a hacked up Factory-Module with Factory calls is somehow the best solution over straight DI or constructors. Seems like he forgot what his original point was and just ended up spewing nonsense. Pretty sure he's mentally unstable at this point. I think he actually invoked the GOF. Man he's rolling old-skool isn't he? That's where we all learn Singletons and then realized how completely screwed we were Finally, he claims his constructor solution is DI and the best solution. That's awesome! DI is just constructors and manual wiring up of my dependencies. Excellent, I'm gonna rewrite all my applications! I better rewrite all my tests to create mocks by hand instead of using EasyMock since that's how he does his it! This is awesome! See you all in 5 years! ;) -bp -- You received this message because you are subscribed to the Google Groups "google-guice" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-guice?hl=en.
