DEV Community

VikthurrDev
VikthurrDev

Posted on

So You Want to Pick an Open-Source License? Let’s Talk

I still remember the first time I uploaded code to GitHub. Felt like dropping my diary in the middle of a busy café and walking away. Anyone could read it, scribble notes in the margin, or—worst case—claim it as their own. That’s when I learned (the hard way) about open-source licenses. I’d picked “no license,” thinking it meant “free for all.” Nope. In practice, it meant nobody could legally use it. Rookie mistake.

If you’re just getting started in open source—especially here in Africa, where the community is bubbling with fresh talent and energy—understanding licenses isn’t optional. It’s the seatbelt on your road trip. Doesn’t make the journey less fun, but it stops you flying out the window.


Wait, What’s an Open-Source License Anyway?

At its simplest, an open-source license is like a house rule for your code. It says: yes, you can enter, yes, you can rearrange the furniture, but here’s what you owe me in return. Sometimes it’s just credit. Sometimes it’s keeping your changes open too. Think of it as setting boundaries so collaboration doesn’t turn into chaos.

Without one, the law assumes “all rights reserved.” Meaning no one can use your project—not even to fix a typo—without risking trouble.


Two Big Buckets: Copyleft vs. Permissive

Here’s where things get spicy. Most licenses fall into two camps:

  • Copyleft (the “share alike” crew): You can use my code, but if you change it, you must share your changes under the same license. Example? The GNU General Public License (GPL). It’s strict. Some people love that because it keeps the ecosystem fair. Others find it… stifling.

  • Permissive (the “do what you like” gang): MIT, BSD, Apache. These are chill. They say, “Sure, take my code, build a business around it, sell a product, just keep my name somewhere in the credits.” That’s it.

Quick analogy: Copyleft is like lending someone a recipe and insisting their version stays free for everyone. Permissive is like tossing your recipe into the wind—you don’t mind if it shows up in a restaurant menu tomorrow.


A Story from the Trenches

A friend of mine in Nairobi built a small Python tool for scraping public data. At first, no license. A fintech startup spotted it, improved it, then—surprise—closed it up inside their product. He couldn’t complain because, legally, he hadn’t licensed it. Had he slapped on the GPL, they’d have been forced to release their changes back. Instead? Lesson learned.

On the flip side, I once MIT-licensed a little JavaScript library for charts. A company in Cape Town used it inside a paid app. They sent me a thank-you email months later. Didn’t owe me money. Didn’t need to share improvements. But that project spread farther than I could’ve imagined. So—depends on your goal.


Picking Your First License (Without Losing Your Mind)

Alright, you don’t need a law degree. Here’s the shortcut:

  • Want your code to stay open forever? Pick GPL or AGPL (if it’s server stuff).
  • Want the world to use your code however they like? Pick MIT or Apache 2.0 (bonus: Apache covers patents).
  • Not sure? Honestly, MIT is the safe starter pack. Short, sweet, easy to read.

Pro tip: GitHub makes this super easy. When you create a new repo, it literally asks, “Add a license?” Click the dropdown, pick one. Done.


A Few “But What Ifs…”

  • What if someone steals my code?
    If it’s licensed, they can’t just claim it as theirs. Worst case, you’ve got the law (and community shame) on your side.

  • What if I don’t want businesses profiting off my work?
    Go with copyleft. But keep in mind—some companies may avoid your project entirely because it’s “too open.”

  • What if I change my mind later?
    Tricky. You can re-license future versions, but old releases stay under the old license. That’s why picking upfront is smart.


Why This Matters (Especially Here)

Africa’s dev scene is exploding—check the number of Lagos, Nairobi, Cape Town contributors on GitHub lately. But too many promising projects stall because licensing gets ignored. Imagine you build a tool that could help farmers predict rainfall. A university wants to integrate it, but their lawyers see “no license” and back off. Opportunity lost.

Licenses aren’t just legal fluff. They’re your handshake with the world.


Wrapping It Up Over Coffee

Here’s the thing: open-source licenses aren’t about lawyers in suits. They’re about trust, clarity, and making sure your late-night coding experiments can actually live beyond your laptop. Don’t overthink it. Start simple. Pick MIT if you’re unsure. Pick GPL if you’re a stickler for openness.

And don’t wait until “later.” I’ve seen too many good projects rot in the corner because no one could figure out what they were allowed to do with them.

So—next time you push code, add that license file. It’s five minutes that could save you five years of headaches.

Now, tell me: what’s the first project of yours that’s getting a license today?

Open-Source License

Top comments (0)