I am planning on posting some code, but want a comment in the code that the code is under Creative Commons, would this comment be ok in the code posted at SO for an answer?
The code is by me; the algorithm is by someone else and is noted in the comments.
// Portions Copyright (C) <Year> by <Author of original answer> // Copyright (C) <Year> by <Self> // License: Creative Commons BY-SA Version 3.0 // // This code is derived from a StackOverflow answer by <Author of original answer> // See: http://stackoverflow.com/a/<answer identifier> // // This code is from a StackOverflow answer by <self> // See: http://stackoverflow.com/a/<answer identifier>
My concern is that once the code leaves SO, the code needs to keep the copyright and the Creative Commons statements. Adding the copyright I understand.
I have never put a Creative Commons statement in a piece of code and was wondering if there is a standard.
Thanks Bart, your question helped me clarify my goal.
"Licensing a work is as simple as selecting which of the six licenses best meets your goals, and then marking your work in some way so that others know that you have chosen to release the work under the terms of that license."
So it appears my comment does the job.