I was just thinking about how everyone ignores the license for the code on SO. The code and way it's used is flawed.
I was just thinking about how everyone ignores the license for the code on SO. The code and way it's used is flawed.
I'm not a professional developer, but I've copied snippets from SO before. I've always included the answer URL in a comment next to it though. But mostly because if I ever had issues with it, I wanted to know where I got it and on the off chance anyone else looks at my code, I wouldn't want them thinking I wrote code I didn't write.
In legal reality if no license is attached to code you have almost zero rights to copy, use, or distribute it.
So if a casual browser of SO doesn’t see any license terms, they should assume that doing almost anything with the code is illegal.
It’s a testament to SO that those URLs have still worked when I clicked on them years later and often provide valuable context to some esoteric bit of code.
The way I understand it, if you fix a bug in an SO code snippet, then in theory you own that bug fix back to the crowd.
EDIT: The more I read about this the more cringeworthy it becomes. CC BY-SA is not designed for source code. The language in the actual license is extremely imprecise for trying to reason about using modular bits of CC licensed code in a complex system.
“Adapted Material” is defined simply as;
Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material
... and ...
in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor.
Is my 100,000 LOC application “derived from” or “based upon” a function which converts a hex string to a byte[]? That’s a question that can only be decided in a courtroom, and to my knowledge CC BY-SA has never been litigated in the context of source code.
My inclination is that the terms “derived from” and “based upon” must necessarily carry a stronger meaning than, for example, “incorporates” or other similar terms which would not imply a central shared function or feature.
[The Error of Our Ways • Kevlin Henney] https://youtu.be/IiGXq3yY70o?t=1368
[slides, page 32] https://gotocon.com/dl/goto-berlin-2016/slides/KevlinHenney_...