All code posted on Stack Overflow is currently licensed under CC-BY-SA. If the code crosses the "threshold of originality", you have to distribute your whole project under a copyleft license. This may be disliked by people who don't like copyleft, and certainly impractical for proprietary software created by large corporations.
But...suppose I do the following:
- Create a new open-source library (CodeSnip), licensed under the LGPL.
- Copy and paste all code snippets that I want to use from Stack Overflow into CodeSnip.
- Have my proprietary/permissive open-source project link to CodeSnip, thereby using all the code in CodeSnip through an API.
- Legally distribute CodeSnip to the general public under the LGPL, while keeping your project under your current license.
Would this policy be in compliance with CC-BY-SA and still allow people to use Stack Overflow code without legal complications?