Some employers claim to own all code written by their employees at any time, even when at home and using personal equipment. Some employers have vague contracts which do not spell this out one way or the other. And finally, there are some employers who explicitly assign these copyrights to the employee. Without getting too much into the morality or legality of these varying stances, how should affected employees best contribute to Stack Overflow?
I can see several possible answers:
- Do not contribute (nontrivial) code in questions or in answers at all. Avoiding code in questions is clearly unworkable unless we want to eliminate the MCVE rule. Avoiding code in answers may be doable, and could even improve the quality of one's answers, but it is a tax on one's time, and will basically remove one from contention in FGITW questions (which is a lot of them in my experience). Finally, this is not extensible to Code Review.SE, whose questions and answers pretty much always involve code.
- Add an exception to both the upcoming MIT license (assuming it gets off the ground) and the existing CC-BY-SA license to allow for this problem. I... really don't like this solution, but it's there. Obviously, this makes reuse of Stack Overflow code much harder, but it might be better to explicitly acknowledge this problem rather than ignore it as we've been doing. Sadly, this is probably the most workable solution, in terms of not requiring large numbers of contributors to stop contributing.
- Get a copyright waiver from one's employer for every single question or answer with nontrivial code. Unworkable for those who participate at high volume, and even worse for the FGITW problem. Some employers will not grant these, or will not grant them quickly enough to matter.
- Something else?
- Just ignore the problem. This is potentially problematic for anyone trying to reuse SO code. It utterly guts the MIT dual licensing scheme because that license simply will not be reliable. You cannot MIT license code which you do not own. Without a valid license, downstream reusers become liable for copyright infringement (though the lack of intent may reduce damages, it does not eliminate the tort). This option can be most expeditiously supported by downvoting or ignoring this question.