I’m a student at a US college, and I’ve been assigned a programming project to complete on my own. I wrote a program to solve a somewhat complex problem, and I’d like to release it under an open-source license so that others can use it and learn from it. However, I’m not entirely sure to whom the code’s copyright belongs. The class’ syllabus says nothing about the ownership of code produced for the class, but I don’t want to take any chances.
Do I own the code?
If nothing is stated by the school that you signed and agreed to…copyright defaults to you, the author.
When you’re paid it’s a different set of rules – Look in the comments of this answer for some excellent resources from Stephen C and outis. With anything legal it’s safest to get an opinion from the experts, in this case a lawyer. (Always a good idea actually, water pipes broken? call a plumber)