by rectang · 11y ago · 0 comments
Perhaps consider CC0? https://creativecommons.org/choose/zero I think CC0 would allow them to be reused in any project no matter the license, without requiring attribution. Do others agree with that?
Regardless, best practice for a project which uses any of these samples would be to record the origin in version control, even if credit is not given in the project source code.
It's really important that sample code have clean provenance, since others will be inserting it into their own projects then possibly mutating it and making it difficult to extract. Are these samples all completely original? And will there be any IP controls as far as what you accept for Github pull requests?
(edit: don't try to use markdown for links.)
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?
https://www.gnu.org/licenses/license-recommendations.html#do...
https://creativecommons.org/weblog/entry/27081
http://labs.creativecommons.org/2011/05/28/fsf-recommends-cc...
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.