Lan Barnes wrote: > On Wed, June 13, 2007 11:39 am, Christopher Smith wrote: > >>> One of my hot buttons about C++ is programmers who reinvent the wheel >>> when there are well-tested libraries that already exist. >> C++ is a common tool for component builders, and by their nature >> component builders are always trying to build a better component. >> Nothing wrong with that really, unless your job isn't to build a better >> component. ;-) > > That's one way to look at it. My take always was that reusable code isn't. > Not in C++, anyway. It's a class thing, I don't understand.
Oh, that is so not true. Heck, VB, the king of "reusable code" primarily reuses components written in C++. The notion of objects, and in particular inheritance, unlocking fantastic levels of reuse in C++ has proven to be a fallacy (and to a lesser extent a fallacy in Java as well), but I think the STL, the Boost library, MFC, Qt, etc., etc. stand as a testament to the extent to which reuse is possible with C++. --Chris -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
