Skip to main content
Open Source

Return to Answer

replaced http://opensource.stackexchange.com/ with https://opensource.stackexchange.com/
Source Link

I've been struggling with the code that's shared over the site because it's licensed under the CC BY-SA...

So you've identified that there's a problem with licensing it under BY-SA. Good: CC BY-SA is discouraged for code. CC BY-SA is discouraged for code.

Is copy-pasting code from Stack Overflow an infringement of CC BY-SA 3.0?

Without attribution, absolutely yes. No copy-pasta without saying where it comes from.

I'd like to know which is the best license available for code snippets...

This is unanswerable because it's incredibly subjective. Best depends on your situation and what you're trying to achieve.

I'd like to be able to copy little pieces of code without attribution nor legal ambiguity into my own libre or commercial projects and share my contributions freely

This is the important bit. You want to be able to copy snippets:

  • without attribution
  • commercially
  • and have a right to share on

Without attribution is probably the hardest bit here. I don't actually recall any open-source license that allows you to do this, so you're looking at going full public domain (or using CC0, which is slightly different).

I've been struggling with the code that's shared over the site because it's licensed under the CC BY-SA...

So you've identified that there's a problem with licensing it under BY-SA. Good: CC BY-SA is discouraged for code.

Is copy-pasting code from Stack Overflow an infringement of CC BY-SA 3.0?

Without attribution, absolutely yes. No copy-pasta without saying where it comes from.

I'd like to know which is the best license available for code snippets...

This is unanswerable because it's incredibly subjective. Best depends on your situation and what you're trying to achieve.

I'd like to be able to copy little pieces of code without attribution nor legal ambiguity into my own libre or commercial projects and share my contributions freely

This is the important bit. You want to be able to copy snippets:

  • without attribution
  • commercially
  • and have a right to share on

Without attribution is probably the hardest bit here. I don't actually recall any open-source license that allows you to do this, so you're looking at going full public domain (or using CC0, which is slightly different).

I've been struggling with the code that's shared over the site because it's licensed under the CC BY-SA...

So you've identified that there's a problem with licensing it under BY-SA. Good: CC BY-SA is discouraged for code.

Is copy-pasting code from Stack Overflow an infringement of CC BY-SA 3.0?

Without attribution, absolutely yes. No copy-pasta without saying where it comes from.

I'd like to know which is the best license available for code snippets...

This is unanswerable because it's incredibly subjective. Best depends on your situation and what you're trying to achieve.

I'd like to be able to copy little pieces of code without attribution nor legal ambiguity into my own libre or commercial projects and share my contributions freely

This is the important bit. You want to be able to copy snippets:

  • without attribution
  • commercially
  • and have a right to share on

Without attribution is probably the hardest bit here. I don't actually recall any open-source license that allows you to do this, so you're looking at going full public domain (or using CC0, which is slightly different).

Source Link
ArtOfCode
  • 9.7k
  • 2
  • 31
  • 72

I've been struggling with the code that's shared over the site because it's licensed under the CC BY-SA...

So you've identified that there's a problem with licensing it under BY-SA. Good: CC BY-SA is discouraged for code.

Is copy-pasting code from Stack Overflow an infringement of CC BY-SA 3.0?

Without attribution, absolutely yes. No copy-pasta without saying where it comes from.

I'd like to know which is the best license available for code snippets...

This is unanswerable because it's incredibly subjective. Best depends on your situation and what you're trying to achieve.

I'd like to be able to copy little pieces of code without attribution nor legal ambiguity into my own libre or commercial projects and share my contributions freely

This is the important bit. You want to be able to copy snippets:

  • without attribution
  • commercially
  • and have a right to share on

Without attribution is probably the hardest bit here. I don't actually recall any open-source license that allows you to do this, so you're looking at going full public domain (or using CC0, which is slightly different).

AltStyle によって変換されたページ (->オリジナル) /