in reply to Re^3: Builder design pattern with lots of parameters - trying to declutter design
in thread Builder design pattern with lots of parameters - trying to declutter design
This may be part of why I decided that sales was not for me: I was going to be constantly attending product-training classes, for a company that sold a tremendous variety of things. Even in the present analogy, “cars” and “motorbikes” are not the same thing, except to the extent that both have wheels, they might be colored red, and they can go very fast. Even though the dealer, in our example, can “introspect” (i.e. “plainly see”) both objects and determine, for example, the number of wheels that each one possesses, that Dealer is still constantly going to be attending new product-training courses. And in so doing, constantly growing in complexity and declining in maintainability. It may well be argued that this is where spaghetti comes from. It truly is a very complex problem, and I do not mean to trivialize it (let alone to suggest that my wild-haired idea has any actual relevance upon it). But I have encountered the consequences of designs (as we all have...) many times. “The fact that both of them are, say, ‘vehicles,’ is useful only to a point.” Our purpose is to build easily-extendable code that will last a dozen years, not to count wheels, and, that’s hard. While these metaphors do have merit, and are generally worthy based on these merits that they have, they are not the full solution.
(And so, realizing that I have made no specific conclusion here, I shall now climb down off of this box and put it away.)
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Builder design pattern with lots of parameters - trying to declutter design
by jethro (Monsignor) on Mar 29, 2011 at 17:24 UTC | |
by tospo (Hermit) on Mar 30, 2011 at 09:35 UTC | |
by locked_user sundialsvc4 (Abbot) on Mar 30, 2011 at 17:57 UTC |