On Sat, Jun 26, 2010 at 18:09, Kevin Wright <[email protected]> wrote: > When I remove my > programmer hat and don my architect hat, I particularly dislike it when core > libraries dictate to me when I should worry about exceptions - it's rarely > at a point in the code where I want to worry about them.
And the architects usually do not live in the houses they built. ;-) I would not say "dictate", I would say responsibility should be taken, where the problem was caused. > More usually, i'll > get nagged in something like a small, focussed protocol handler that's > important for maintainers to understand. Checked exceptions are the bane of > short, clear code in such scenarios. I can tell, hat in the last about 12 years I never ever worked on a really big project. But I worked on a lot of smaller projects contributing to big systems at large companies. It is the sum of projects that make it big. What I want to say: Maybe those really big projects should have been split into smaller, loosly coupled components. - But I guess most of the very big projects have a long history behind them. > I do think you're right about Spring. As an alternative to EJB it really > was a beautiful product when young, but it's now become heavyweight and > overbearing. Spring still contains a couple of gems (such as the database > and email templates), but for a DI framework I'm now favouring Guice. Thanks for mentioning Guice - I never heard that one before. They have even a good introduction video on the main google code site. They also explain the dependency injection practice and from that I think I understood it's main purpose wrong. From their explanation I cannot see the big advantage over using FactoryClass-style constructs. The dependencies remain even if there might be less boilerplate code. In my current project I am using a simple factory class that looks up in plugin folder(s) and just dynamically load what is there - this means, that dependencies are really removed. There is no big framework needed for such a task. -- Martin Wildam -- You received this message because you are subscribed to the Google Groups "The Java Posse" 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/javaposse?hl=en.
