The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Originally posted by Bear Bibeault:
While I completely agree with "don't use a pattern just because it's cool", I think Gregg's question was "is there a best Round Hole pattern, for the Round Hole problem?". Did you read otherwise, or are you just making a general (and very valid) statement about falling into The Pattern Trap?
bear
Originally posted by Frank Carver:
The trouble is with this thread, that there's lots of arguing about "pegs" but there has been no more detail about what this "round hole" is!
All the approaches mentioned have their advantages and disadvantages, and each is more appropriate in one situation than another. To make any sort of decision we need to know what you need to achieve, and what the limitations or expecvtations of the solution might be.
For example, if your web application is just a throwaway single-page form-and-handler kind of thing, then the much-derided JSP model 1 is fine. There's simply no point in implementing servlets, actions controllers or any of that stuff. To justify more time invested in (building, finding, configuring, choosing, ...) anything more complicated, there needs to be a reason why it will benefit the solution.
So let's turn this back on you, Gregg: What situations can you concieve of where one of these approaches might be "best" ?
I was making more of a general 'watch out' type of statement.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |