Creative Commons is a great license for a wiki, but it's not a good software license at all. Is it the case that all code snippets are under the same license as the rest of the text? I commonly say "feel free to reuse without attribution" when I post a snippet, but what happens when someone else edits my post and fixes some indentation? Is it technically back to being under the CreativeCommons? It would be great to clarify such things a bit, and avoid indicating that the code itself apart from the rest of the text is under CC. How can we ensure that, or is it such a minor issue that it doesn't really matter? Obviously no one is going to release software under CC just because some code in the codebase was derived from a snippet from stackoverflow, and if that would be the requirement snippets would be pretty worthless.
What is meta?
- Any Stack Exchange user can ask a question
- The community provides support, votes on ideas, and reports bugs
- Your voice helps shape the way Stack Exchange operates
Not an answer, just some thoughs:
IANAL, but I'm not sure inhowfar you can legally "override" the CC license by saying something different in your post. Meaning that technically, your "feel free to reuse without attribution" may be void even though it's your own code - you are publishing stuff on Stack Overflow under the license you agree on with Stack Overflow, which is CC-Wiki. Not that this is ever likely to be fought over in court, of course.
I guess if one wanted to release their own code snippets to the public domain in a really, really watertight way, they would have to re-publish every snippet on their own blog, or a code hosting site that allows to specify the right license.
When you post code on SO you are doing it by default under the CC licence, with the knowledge that others have the right to come along and edit the code (whether the edit is right or wrong is moot and doesn't matter to the argument). Those who edit do it under the understanding that their edit doesn't make them the author or owner of the original code, that ownership still resides with the original poster*. If they want to retain ownership of the contents of their edit then they should make their own post, rather than editing yours.
*Keeping in mind that even the author of the post may not be the legal owner of the code! (i.e. if you post from your workplace or while executing your duties for your employer or client).