The Artima Developer Community
Sponsored Link

Specific vs. Generic



This page contains an archived post to the Design Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Specific vs. Generic

Posted by Bill Venners on 21 Mar 1998, 8:38 AM


Thanks for your comment.

> The basics you have eloquently described are
> frequently ignored, even by "experienced"
> programmers. I hope that many of them read
> your article/book.

> I also hope that you wax equally eloquent on other
> common programming mistakes (mistyles?). One
> that I have seen recently is pushing application-
> specific stuff into generic, reusable classes --
> making them no longer generic or reusable.
Yes! I am planning to talk about this. I have gotten
several comments that basically said my example
code would be better if it were more generic, so
I want to talk about when to solve the specific
problem versus the general problem. My thought is
that you should always lean towards solving the
specific problem, unless your product is
a library or component that is supposed to solve
a generic problem for other programmers.



Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us