Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Putting license in each code file? [closed]

Tags:

licensing

I find it unnecessarily duplicated to have it in each code file, but I see it on most open source projects. Should I do that same, or just include a single license outside the code?

like image 716
Joan Venge Avatar asked May 10 '09 19:05

Joan Venge


People also ask

What is a closed source license?

Closed source means computer programs whose source code is not published except to licensees. It is available to be edited only by the organization that developed it and those licensed to use the software.

Does every software need a license?

In general, software works are protected by copyright, meaning that using the software in any way requires the permission of the creator or copyright holder, i.e., a license. However, copyright does not apply to works in the public domain—anyone can modify and use such software without any restrictions.

Should I add a license to my GitHub repository?

When you publish your source code repository, make sure to include a license. Your code is your creative work, and like most creative works, it needs copyright protection.


2 Answers

A single one outside the code, please! I don't know about the others, but I hate seeing the same thing on top of every file.

I think I've read it a few times, just by page_down-ing through it.

like image 196
Rook Avatar answered Sep 17 '22 10:09

Rook


EULA is the wrong term here, as the people looking at source code usually are not end users.

Legally, it makes no difference either; copyright does not need to be declared explicitly.

Basically, all you achieve is a lower risk of people accidentally violating your license terms. You'll have to decide how important that is to you.

I'd say the best compromise is to put a very short header containing a link (absolute URL as well as relative within the project) to the full license text into each source code file. That way, anyone who cares about the license knows where to find it (ideally, people who're willing to pay massive license fees; you certainly want those people to be able to contact you!)

like image 42
Michael Borgwardt Avatar answered Sep 19 '22 10:09

Michael Borgwardt