r/programming • • Oct 01 '19

Stack Exchange and Stack Overflow have moved to CC BY-SA 4.0. They probably are not allowed too and there is much salt.

https://meta.stackexchange.com/questions/333089/stack-exchange-and-stack-overflow-have-moved-to-cc-by-sa-4-0
1.3k Upvotes

445 comments sorted by

View all comments

255

u/[deleted] Oct 01 '19

I’m not a lawyer and don’t play one on TV so I’m not going to wade into the discussion about rather SO can do this, but is there any particular reason (beyond the possible inability to relicense user content) that the average SO user should be bothered by the move to 4.0? Are there any new clauses I should be aware of?

292

u/danhakimi Oct 01 '19

Not really. I'm an attorney who reviews these specific issues every day, and the differences between older and newer versions of the CC-BY-SA are pretty trivial and not substantive.

The most annoying thing is that they're still using the CC-BY-SA for code. People have been begging them to use a software license for software, and they refuse.

DO NOT COPY CODE FROM STACK OVERFLOW. Whatever file you copy it into will be tainted by the CC-BY-SA. Either take the ideas and rewrite the function yourself, or search github for code with an explicit permissive license.

0

u/[deleted] Oct 01 '19

[deleted]

88

u/danhakimi Oct 01 '19

Yes, and that's a whole other story, but at least if they list their authors and you can't find any SO-related search hits in the package, you've done your due diligence.

7

u/hardlyanoctopus Oct 02 '19

The MIT licence includes the following:

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.

Wouldn't that prevent copying software from there to be considered due diligence?

29

u/ShadowPouncer Oct 02 '19

Not a lawyer, but that is aimed at something else entirely.

Let's say that you write a really cool function for detecting people in an image, throw it up on github, and give it an MIT license.

And someone else downloads it, and uses your code in a self-driving car project.

And because your code was actually buggy as hell, it proceeds to run over a bunch of people instead of avoiding them.

Now, are you legally responsible in any way, shape, or form for the deaths of the people in question?

Well, if you had said something like 'guaranteed to detect all people in all images!', there might be a case.

If you had said nothing, probably not, but someone could probably waste a lot of your time and money in legal fees getting to that answer.

But with that statement, well, it's pretty cut and dry. Your code is provided 'AS IS', you make no promises to fix it if it's broken, you provide no warranty of any kind, and you make no claims that it's fit for any given purpose. You also make no claims that someone else hasn't patented something that your code is implementing.

Which means that your ass is pretty darn likely to be in the clear when the car runs over a bunch of people.

→ More replies (2)
→ More replies (1)

26

u/Average_Manners Oct 01 '19 edited Oct 02 '19

Fair, but not your liability.

→ More replies (1)

22

u/lughaidhdev Oct 02 '19 edited Oct 02 '19

DO NOT COPY CODE FROM STACK OVERFLOW. Whatever file you copy it into will be tainted by the CC-BY-SA

Can you ELI5 this please?

edit: found this on the CC-BY-SA website: Can I apply a Creative Commons license to software

45

u/danhakimi Oct 02 '19

The "sharealike" clause means that whatever file you include the code in has to be licensed under that license, and then a lot of the software that interacts with that file will also have to be licensed under that's license. That's the whole idea behind "share alike." There are some other issues, like the fact that it doesn't distinguish between source and object code, but those ambiguities are less important, if you ask me.

9

u/HowIsntBabbyFormed Oct 02 '19

Is the "sharealike" clause any more restrictive than the GPL? Because you can copy GPL code into whatever internal code your company has and there are no issues since you're not redistributing it.

I suppose it would be an issue if you were copy-pasting stackoverflow code into a closed-source program that you were distributing to customers... but you shouldn't be copy-pasting any code you find online into a distributed, closed-source, program unless you're 100% sure it's open source and non-copyleft (like public domain, MIT, Apache, BSD type licenses). And even then, you might not "infect" your codebase, but there might be other requirements, like documentation and copyright notices.

10

u/danhakimi Oct 02 '19

Yes, sorry, I'm talking about use in a file / product that is being distributed. People do it. People also try including that code in open source projects, which I then catch after they download the projects from GitHub and take their licenses at face value. Some of the time. Mostly only if there's a comment saying "we took this from StackOverflow."

To clarify, copyleft code can be used, it's just tricky. I'm not going to sit here and detail each license's requirements for you (although I might if you paid me), but... They're not all "don't use me!"

The sharealike is a little different from the gpl, but they both turn on the definition of derivative work, which is ambiguous. The fsf tells you where they draw the line for software derivative works, but CC doesn't, because they ain't about software.

→ More replies (2)
→ More replies (10)
→ More replies (2)

49

u/spockspeare Oct 02 '19

Nobody is going to successfully sue over five lines of code cribbed from a comment on the web.

36

u/FierceDeity_ Oct 02 '19

I am waiting for the case where it actually does. I will ready an amount of popcorn for when it happens.

9

u/mrwazsx Oct 02 '19

This will truly cause a Jonathan Blow collapse of civilisation https://www.youtube.com/watch?v=pW-SOdj4Kkk

9

u/playaspec Oct 02 '19

Nobody is going to successfully sue over five lines of code cribbed from a comment on the web.

Somewhere a patent troll's ears just pricked up. <gulp>

"Hold my beer"

→ More replies (7)

0

u/[deleted] Oct 01 '19

[deleted]

65

u/Eurynom0s Oct 02 '19

I think you had an above-average intern if they actually properly documented all of their stack overflow copy-pastes (and yes, I'm also pointing the finger at myself with this comment).

→ More replies (14)

20

u/zooberwask Oct 01 '19

Was he paid?

→ More replies (4)

6

u/collegefinance5 Oct 01 '19

Well shit... Thank god Im only a week into this project.

→ More replies (61)

85

u/AnAirMagic Oct 01 '19

I am out of the loop myself, but there's some accusation that "forced re-licensing" is just a part of Stack Exchange ignoring the larger community: https://meta.stackexchange.com/questions/333965/firing-mods-and-forced-relicensing-is-stack-exchange-still-interested-in-cooper

57

u/ChezMere Oct 01 '19

In other words, no, the specific license itself is not a problem.

→ More replies (83)

52

u/DeathProgramming Oct 01 '19

So, 3.0 has a clause that allows stuff to be relicensed to later versions of the license. Most people don't know this. They're concerned that if SO does this to a (still) free license, perhaps one day they'll do the same thing again, but to a different license (rather than just an upgraded version of the license). That would ACTUALLY be illegal without the consent of literally every SO user whose content would be relicensed.

53

u/taidg Oct 01 '19

The clause doesn't allow stuff to be relicensed, it allows adaptations to be licensed under a later version (e.g. 4.0), but that clause only extends to the elements of the adaptation. The elements of the original must still be used under the terms of the original license (e.g. 3.0).

Someone distributing the adaptation must comply with two licenses, 3.0 for the portions of the original, and 4.0 for the portions of the adaptation.

[Source] https://wiki.creativecommons.org/wiki/4.0/Treatment_of_adaptations#License_obligations_of_downstream_users

Disclaimer: I think this is probably just a good faith mistake that will be remedied. Understanding how to comply with licenses is often hard as can be attested by the confusion in this thread. Anyone who picked up a pitchfork should put it down and let the situation run its course amicably.

→ More replies (9)

10

u/[deleted] Oct 01 '19

Creative Commons has a guide on upgrading from 3.0 to 4.0, and they clearly outline when and who can re-license

https://old.reddit.com/r/programming/comments/dbzg1k/stack_exchange_and_stack_overflow_have_moved_to/f25ec0w/

→ More replies (14)

16

u/FlyingCheeseburger Oct 01 '19

No, there shouldn't be any. The issue is basically all about the relicensing thing.

→ More replies (9)