News for hackers. Stuff that matters.
Re:Why inheritance sucks by kenjackson on Friday August 20, 2010 @06:13PM (#1621773)
I get the distinction, and its a fair one. Although, I don't get how snippets could be useful. Especially in C++. It seems like for almost anything interesting I'm going to want a dependency on the standard library or Boost or the CRT.

I could imagine some snippets that don't take any dependencies, but they are pretty few and far between. Do you have pointers to some of the more interesting snippets he's posted?

Re:Why inheritance sucks by palish on Saturday August 21, 2010 @01:12AM (#1622309)
Yeah, check 'em out: http://www.amillionpixels.us/sourcecode.htm

There are surprisingly many useful snippets. For example, a single header and source file for an entire, complete A* pathfinding implementation! That's a massive timesaver.

Re:Why inheritance sucks by kenjackson on Saturday August 21, 2010 @01:39AM (#1622337)
In a lot of the ones titled snippets, I do see dependencies. Some to Windows DLLs and some to the CRT. But they're relatively self-contained.

Cool stuff. Thanks for the link. Although I'd still call them functions. :-)

Re:Why inheritance sucks by masklinn on Saturday August 21, 2010 @02:23PM (#1623329)
And they're all functions (or function groups), apart from the one or two that are command-line utilities.

At the end of the day, they're libraries. Small libraries? Sure, but still libraries.