Handmade Hero » Forums » Code » Code Copyright and Licensing
boagz57
Jason
55 posts
#16101 Code Copyright and Licensing
3 months, 2 weeks ago Edited by Jason on Aug. 26, 2018, 5:42 p.m. Reason: Initial post

I had a quick question for anyone who might know any of the legal issues surrounding software. It is my understanding that all software, once created, is automatically covered under the US copyright act meaning your code cannot be copied or used in a commercial product without your explicit consent. Then there are software licenses which explain the terms in which users can use and distribute your code. My question is:

1.) How does one go about creating a software license? Is there a certain official legal process to setup a license or can you just put up a statement online of how to use your license and then anyone can use your license and be protected according to it's stated rules? I know Casey has a txt file in his project folder that you download and on the text file it describes his license terms. Is this enough to be considered legally binding?
NelsonMandella
41 posts
#16102 Code Copyright and Licensing
3 months, 2 weeks ago Edited by NelsonMandella on Aug. 26, 2018, 7:09 p.m.

boagz57
It is my understanding that all software, once created, is automatically covered under the US copyright act meaning your code cannot be copied or used in a commercial product without your explicit consent.


Here's a program, do you think it's protectable in theory under any copyright law?

1
2
3
4
void main()
{
     printf("adhjkl3892hjkajdas829\n");
}


...now I'm no software copyright expert but I'm pretty sure it's not.

Practically speaking as an individual, think of a license as a means of discouragement rather than as some kind of legal contract.
mmozeiko
Mārtiņš Možeiko
1831 posts / 1 project
#16103 Code Copyright and Licensing
3 months, 2 weeks ago Edited by Mārtiņš Možeiko on Aug. 26, 2018, 10:12 p.m.

boagz57
can you just put up a statement online of how to use your license and then anyone can use your license and be protected according to it's stated rules?


Yes, that is exactly what you need to do.

Be aware that you cannot put arbitrary text and hope it will hold up in the court. If its in violation with other laws (which may be very different in different countries) or is just pure nonsense ("author can use this software only if she/he does not drink milk") - nobody will care about your license. That is why you typically want a lawyer to create and/or check your license.

That said, if all you want is to have open-source software, usually you just pick one of existing licenses that fit your use case. Here are page that helps you to do that: https://choosealicense.com/
boagz57
Jason
55 posts
#16105 Code Copyright and Licensing
3 months, 2 weeks ago

Okay, thanks for the input.