Possible Duplicate:
Do I have to worry about copyright issues for code posted on StackOverflow?

A very basic doubt: the answers that are quoted on SO, do they come under any license?

Is it OK(/Legal) to copy whole/parts of code provided in answers by users?

I personally make sure to just take cue from the idea and try to re-write the solution but it might not be a case for every problem, hence the question.

My main concern is if I ask a particular question for which someone gets answer off the net and pastes it and that particular code was under some license. This can also be for ideas/solutions provided by users.

I did not find anything on FAQ or previous posts regarding this.

  • Ivar (marked post as community wiki just in case)
share|improve this question
    
My code samples always have integrated copy protection. It will destroy your computer if you run it ;) –  Felix Jun 23 '10 at 23:18
    
@Felix, next time, i will think twice before i look at the code in your answers :D –  topgun_ivard Jun 23 '10 at 23:38
add comment

migrated from stackoverflow.com Jun 23 '10 at 23:13

This question came from our site for professional and enthusiast programmers.

marked as duplicate by Jeff Atwood Jun 24 '10 at 0:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

up vote 4 down vote accepted

They're licensed under CC-BY-SA, so your code must be under CC-BY-SA as well if you want to copy snippets, and your code probably isn't. See the CC-wiki logo at the footer of trilogy sites.

share|improve this answer
    
ahh..i missed that...thanks! - ivar –  topgun_ivard Jun 23 '10 at 23:25
    
How is the CC-BY-SA "viral" as it's described here? Even ignoring fair use (which possibly allows snippet use already), the full license clearly has an "exception" "to incorporate the Work into one or more Collections, and to Reproduce the Work as incorporated in the Collections;", where "Collections" is pretty broadly defined. At worst, if you kept your SO code in one place and/or, eg, MPL'd files w/ SO code with attribution, your "Collection" would be fine/unaffected, right? –  ruffin Aug 25 '13 at 17:52
add comment

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