Skip to main content
โ† Back to Intellectual Property samples
โ„ข๏ธIntellectual Propertyยท15 minยทSample Lesson

What Makes Code Free? Understanding Open Source Licenses

When you play Minecraft, you cannot look at its code and change how it works โ€” Mojang keeps that locked away. But the game Minetest, which works similarly, lets anyone read all of its code, change it, share it, even build their own version. Why? Because Minetest uses an open source license. An open source license is a legal agreement that says: you can read this code, change it, and share it โ€” as long as you follow these rules. Different licenses have different rules. Understanding them matters because millions of apps, websites, and operating systems run on open source code โ€” including the Android phones in your pocket and the Linux servers that power Google.

What You'll Learn

By the end of this lesson, you will be able to: 1. Explain what intellectual property is and why code can be protected by law. 2. Describe the difference between open source and proprietary software. 3. Name and compare three major open source licenses. 4. Explain why choosing the right license matters when you share your own code.

Code as Property

When you write a story, it is your intellectual property โ€” you own it the moment you create it. The same is true for computer code. When a programmer writes code, copyright law automatically protects it: no one else can copy or sell it without permission. Proprietary software is code the owner keeps secret and controlled. Examples include Microsoft Windows, Adobe Photoshop, and Fortnite. You can USE these programs, but you cannot see how they work inside, and you cannot change them or share the code. Open source software is different. The owner gives everyone permission to see the code, but they set rules for what you can do with it. Those rules are the license.

Three Licenses You Should Know

MIT License โ€” The most permissive (generous) popular license. With MIT, you can use the code for almost anything โ€” including in a commercial product you sell โ€” as long as you include the original copyright notice. The original creators get credit, and that is basically all they ask. Most npm packages (JavaScript tools for building websites) use MIT. GNU General Public License (GPL) โ€” Called a copyleft license. With GPL, you can use, change, and share the code โ€” BUT if you release a product that includes GPL code, your product's code must ALSO be released under the GPL. This viral property ensures that improvements stay public. The Linux operating system uses GPL. If a company builds a phone OS on Linux, they must release the changes they made to Linux itself. Creative Commons (CC) โ€” Technically for art and writing rather than code, but important to know. CC licenses let creators share work with specific conditions: CC BY means give me credit; CC BY-SA means give me credit and share alike; CC BY-NC means give credit and do not use it for profit. Wikipedia uses CC BY-SA, which is why you cannot copy Wikipedia into a for-profit textbook without releasing your textbook under the same license.

Free Does Not Always Mean Free to Sell

In open source, 'free software' does not mean free as in free pizza โ€” it means free as in freedom: the ability to read, change, and share. Some open source licenses do allow you to sell the software. Others do not. Always read the license before you build a business on open source code. More than one startup has been surprised to discover the GPL requires them to publicly release their product's entire source code.

Match each license to its key rule.

Terms

MIT License
GNU GPL
Creative Commons BY-NC
Proprietary license

Definitions

No viewing, changing, or sharing the code
Use freely โ€” just keep the copyright notice
Give credit and do not use for profit
Share your changes under the same open license

Drag terms onto their definitions, or click a term then click a definition to match.

โ“

A company uses GPL-licensed code inside their new smartphone app and plans to sell it in the App Store. What does the GPL require them to do?

โ“

What does 'intellectual property' mean in the context of software?

๐ŸŽฏ

Choose a License for Your Mini-Project

Imagine you just wrote a simple quiz app and want to share it on GitHub. 1. Decide on your goal: Do you want people to be able to use it in commercial apps? If yes, MIT works well. If you want all improvements to stay open and public, choose GPL. 2. Write a one-paragraph README for your imaginary project that includes: a. What your app does in one sentence b. Which license you chose and its full name c. One sentence explaining WHY you chose that license d. One specific rule from your license that users must follow 3. Share your paragraph with the class. Did classmates who built similar apps choose different licenses? Discuss: what values or goals led each of you to different choices?

Want to keep learning?

Sign up for free to access the full curriculum โ€” all subjects, all ages.

Start Learning Free
What Makes Code Free? Understanding Open Source Licenses | Free Sample | HYVE CARES | HYVE CARES