3 ms·
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 interesti
by kenjackson 16y ago
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?
- palish 16y agoYeah, check 'em out: http://www.amillionpixels.us/sourcecode.htm 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.
- kenjackson 16y agoIn 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. :-)
- masklinn 16y agoAnd 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.