3

I have active accounts on various Stack Exchange sites falling under Technology domain. Due to the nature of the domain, often the posted answers in part or whole, requires me to to write some form of source-code in a programming or scripting language. The code is almost always originally composed, and is not copied from elsewhere.

I am aware of how the content posted on Stack Exchange sites is licensed, (Creative Commons Attribution-Share Alike). From this post on Stack Overflow blog, I understand that any republishing of content requires attribution.

However, I am curious to learn how this affects just the source-code written by me as part (or whole) of the answer? It's fairly obvious that it is also covered under the same CC license terms.

Is attribution expected, if I wish to share the source-code elsewhere publicly using my personal account(s)? Most common scenarios are including it in a public repository (such as on GitHub), personal blog post, forum post etc.

To reiterate, I am talking only about the source code written by myself in my own answers.

1
  • I think this has been asked before, but the license applies to OTHERS using your content. You as the copyright owner can do whatever you want to do with it. – MEE Jun 18 '19 at 5:15
2

On a semi-ironic note, I’m going to republish/remix something I originally wrote for MSO:

When you post on Stack Overflow/Stack Exchange your content is licensed under CC by-SA 3.0, no matter if it’s code or text. This means that anyone can remix your content for any reason as long as they give proper attribution to you. However, the license is "non-exclusive", which means that you, as the owner of the content, can also license your content on other sites without needing to properly attribute yourself. All sites I’ve checked license the content as non-exclusive, which means it’s ok you’re reposting something.

See for example Medium’s ToS.

On a non-legal note, I always attribute myself when I repost text, but for something that was entirely code it would be annoying and I wouldn’t be likely to do it. Attributing yourself has the perk of quelling any potential accusations of plagiarism though (even though you’d be in the right).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .