Different types of software licenses require you to meet certain obligations if you want to reuse the code
Public Domain
This is the most permissive type of software license. When software is in the public domain, anyone can modify and use the software without any restrictions. But you should always make sure it’s secure before adding it to your own codebase.
You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
Under the following terms:
- attribution – there is no author or author waived their right, no attribution
- share alike – If you remix, transform, or build upon the material, you can distribute your work under any license.
Open Source
Open Source can be defined as, in brief, allowing software to be freely used, modified, and shared.
MIT License
You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
Under the following terms:
- liability – the author doesn’t provide any warranty and doesn’t accepts any liability
- copyright notice – a copy of the license or copyright notice must be included with software
- share alike – If you remix, transform, or build upon the material, you can distribute your work under any license
GNU General Public License
You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
Under the following terms:
- liability – the author doesn’t provide any warranty and doesn’t accepts any liability
- copyright notice – a copy of the license or copyright notice must be included with software
- documentation – If you remix, transform, or build upon the material, changes must be documented.
- share alike – If you remix, transform, or build upon the material, you can’t distribute your work with a closed source license