News for hackers. Stuff that matters.
Re:A repository of modern C++ code samples curated by the co... by sftrabbit on Tuesday April 07, 2015 @09:02AM (#9333645)
The samples are all very short and generic, so I'm not sure how legal significance a copyright license will have. However, I do plan to add a license to the repository if only to make it clearer.

Is CC0 appropriate for code? I was thinking of going with MIT, but that would require retaining the license in any derivative works. Anybody have thoughts on this matter?

Re:A repository of modern C++ code samples curated by the co... by detaro on Tuesday April 07, 2015 @09:15AM (#9333742)
FSF recommends CC0 for small code snippets in documentation:

https://www.gnu.org/licenses/license-recommendations.html#do...

Re:A repository of modern C++ code samples curated by the co... by rectang on Tuesday April 07, 2015 @09:20AM (#9333779)
Re:A repository of modern C++ code samples curated by the co... by vog on Tuesday April 07, 2015 @11:39AM (#9334791)
A single, trivial code snippet may not carry a copyright at all.

But a whole collection of such snippets will fall under copyright, even if each individual bit alone wouldn't qualify.

So it is important to make the licensing explicit here. CC0 / Public Domain is a natural choice, given that the code snippets are meant to be used individually and that no "real" license would make any sense on individual code snippets.