Introduction
Almost every website you visit, every app on your phone, and a good part of the software running inside banks and hospitals is built on code that nobody owns in the usual sense. It was written by strangers, shared for free, and improved by anyone who felt like pitching in. That is open source software, and it quietly runs the modern world.
Take the phone in your pocket. Android, the system that powers most of the world's smartphones, is built on the Linux kernel — open source. The website you are reading this on probably runs on a Linux server, served by the Apache web server or Nginx, both open source. The browser you opened it in is very likely built on Chromium, which is open source too.
That is a strange way to build things. In most industries, giving your work away for free would be called a bad business plan. In software, it turned out to be one of the best ideas anyone ever had. This article explains what open source actually is, how it started, who writes it and why, how companies make money from code they give away, and what can go wrong — because it does go wrong sometimes, and the failures are worth knowing about.
What "Open Source" Actually Means
The phrase sounds vague, so here is the plain version: open source software is software whose source code — the human-readable instructions a programmer writes — is available for anyone to look at, use, change, and share. That is the whole idea. Everything else is detail.
Compare it with the software most people grew up buying. When you bought Microsoft Office in a box, you got a disc that installed the program. You never saw the code that made it work, and you certainly were not allowed to change it or pass a copy to your neighbour. That is closed source, or proprietary software: you buy a licence to use it, and the company keeps the recipe locked away.
Open source flips that deal. The code is public. You can download it, read it, fix a bug in it, add a feature, and give your improved version to someone else. A licence — a short legal document that comes with the code — spells out exactly what you are allowed to do, and the common ones are generous. You can usually use the software for anything, including commercial work, without paying a penny.
A common mix-up is worth clearing up early: open source does not mean free of cost in every sense, and it does not mean there is nobody in charge. Most serious projects have maintainers — people, often a small team — who decide what gets accepted and what does not. Anyone can suggest a change, but the maintainers decide whether it goes in. That gatekeeping is what keeps a project used by millions from turning into a mess.
How It Started: A Printer, a Hacker, and a Kernel
Open source did not arrive as a business plan. It started with annoyance.
In the late 1970s and early 1980s, software was often shared freely among researchers and hobbyists. Programmers at universities passed code around the way cooks pass recipes. Then the industry grew up, companies started locking their code away, and sharing dried up. Richard Stallman, a programmer at MIT, ran into the problem in a very ordinary way: the printer on his floor kept jamming, and he wanted to fix the printer software. The manufacturer would not give him the source code. He could not fix his own printer.
Stallman took that personally. In 1983 he announced the GNU Project, an effort to build a complete operating system that anyone could use and share freely. In 1985 he founded the Free Software Foundation. He wrote a licence for it, the GNU General Public License, or GPL, with a clever twist: anyone could use and change the code, but if they shared their changed version, they had to share it under the same terms. It was sharing with a rule attached, designed so that the code could never be locked away again.
Meanwhile, on the other side of the world, a 21-year-old student in Helsinki was doing a hobby project. Linus Torvalds started writing his own operating system kernel in 1991 — the kernel is the core of an operating system, the part that talks to the hardware — because he wanted a Unix-like system he could run on his own PC. He posted it on the internet and invited anyone interested to help. People did. Programmers from everywhere sent in fixes and features, and the thing grew far faster than any one person could have managed.
The GNU Project had most of an operating system but no working kernel. Torvalds had a kernel but needed the rest. Put together, they became Linux — or GNU/Linux, if you want to be precise about it — and it spread. First through hobbyists and universities, then into server rooms, then everywhere.
The Licences, in Plain English
Every open source project ships with a licence, and the licence is the part people skip reading and later regret skipping. You do not need a law degree to understand the main ones. They fall into two broad families.
The permissive family is the easygoing one. Licences like MIT and Apache 2.0 say, roughly: do what you like with this code, including building it into a product you sell, as long as you keep the copyright notice attached. That is why companies love them. Google's Go language and Mozilla's Rust both use permissive licences, which is part of why they spread so fast — nobody had to ask a lawyer before trying them.
There are others — the BSD licence, the Mozilla Public License, and dozens of niche ones — but for most people the practical question is simple. Before you build something important on top of an open source project, check its licence, and check whether your own plans clash with it. A permissive licence almost never clashes with anything. A copyleft licence can, if you plan to keep your own code closed.
- Permissive (MIT, Apache 2.0, BSD): use it however you like, keep the notice, no obligation to share your changes.
- Copyleft (GPL, AGPL): share your changes under the same terms if you distribute the software.
- Weak copyleft (Mozilla Public License, LGPL): share changes to the open source files themselves, but your own separate code can stay closed.
- Public domain (Unlicense, CC0): no restrictions at all, though these are less common for serious projects.
Who Writes It, and Why
If the code is free, who does the work? The answer has changed a lot over the years, and the old picture of a lone hobbyist in a bedroom is only part of it now.
Some people contribute because they need the tool themselves. A developer hits a bug in a library she uses every day, fixes it, and sends the fix back. That is the most common reason by far, and it is the engine of the whole system: people scratching their own itch, in public.
Some do it to learn. A student fixing a small bug in a big project learns more in a week than a semester of lectures teaches, and a public record of contributions is a CV that any employer can check. Some do it for reputation. Being a maintainer of a widely used project is a calling card in the software world.
But the biggest change in the last fifteen years is that companies now pay people to write open source full time. Google employs engineers to work on Go and Kubernetes. Microsoft, once famously hostile to open source, now employs people to work on the Linux kernel and owns GitHub, the site where most open source code lives. Red Hat built a whole business on it, which we will get to.
That mix — volunteers, hobbyists, and salaried engineers from competing companies — is what makes the model work at scale. No single company could afford to write all the software the modern internet needs. Sharing the bill works better.
There is a catch, though, and it is the one that bites. A project can be used by millions of people and maintained by one tired person in their spare time.
How the Web Runs on Shared Code
It is hard to overstate how much of the internet is open source. Walk through a typical day and count it.
Your phone's operating system, Android, is built on Linux. The website you read the news on is probably served from a Linux machine by Apache or Nginx. The site itself was likely built with WordPress, or with a framework like Django or Laravel, all open source. The database holding the articles might be MySQL or PostgreSQL. The browser you used — Chrome, Edge, Firefox — is either open source itself or built on Chromium, which is.
Even the closed products are full of it. Apple's macOS and iOS are built on an open source core. Microsoft's Windows now ships with a Linux subsystem, and its cloud, Azure, runs huge amounts of Linux. Your smart TV, your router, the software in your car — open source is inside all of them, usually without anyone telling you.
That is efficient, and it is also why the health of open source matters to everyone, not just programmers. When a library used by thousands of apps has a security hole, thousands of apps have a security hole. The sharing is the strength and the risk at the same time.
Programmers talk about this in terms of design patterns and reusable components, but the underlying idea is older than software: do not rebuild what someone has already built well, and do not keep your improvements to yourself.
The Business of Giving Code Away
If the code is free, how does anyone make money from it? That was the question every sceptic asked in the 1990s, and the answer turned out to be: sell everything around the code.
Red Hat is the classic example. It took Linux — free, open, available to anyone — packaged it into a tested, supported product called Red Hat Enterprise Linux, and sold subscriptions to businesses that wanted someone to call when things broke. The code stayed open; the support, the certification, and the promise that someone would fix a bug by Tuesday were what customers paid for. The model worked so well that IBM bought Red Hat in 2019 for about 34 billion dollars, one of the biggest software deals ever made.
Other companies found different ways to charge. Some use the "open core" model: the basic version is open source, and extra features — the management dashboard, the single sign-on, the audit tools — are sold separately. GitLab and Elastic work roughly like this. Others run the software as a service: the code is open, but most customers would rather pay someone else to host it and keep it running.
Then there is the quietest way of all: companies pay their engineers to work on open source projects their business depends on, because fixing a bug upstream once is cheaper than working around it in private forever. That is not charity. It is maintenance with the cost shared across every company using the same tool.
When Shared Code Breaks
Open source has a famous line of defence: given enough eyes, all bugs are shallow. The idea is that because anyone can read the code, someone will spot the problems. In practice, enough eyes are not always looking, and the two biggest wake-up calls of the last decade proved it.
Heartbleed, in 2014, was a bug in OpenSSL, the library that encrypts connections for a huge part of the web — the padlock in your browser. The bug let an attacker read small chunks of a server's memory, which could include passwords and secret keys. It had been sitting in the code for about two years. The library was maintained by a handful of people on a tiny budget, while companies worth billions depended on it daily.
Log4Shell, in December 2021, was worse in some ways. Log4j is a Java library that does something almost comically boring: it writes log messages, the little lines of text programs record about what they are doing. It is also used by a staggering number of systems, from Minecraft servers to enterprise software to cloud services. A flaw in it let attackers run their own code on a server just by getting the library to log a specially crafted piece of text.
Both episodes taught the same lesson. Open source is only as safe as the attention paid to it, and attention is uneven. The famous, well-funded projects get reviewed constantly. The small, boring, deeply embedded ones — the logging library, the encryption helper — can go years with almost nobody looking.
That is not an argument against open source. Closed software has its own disasters, and at least with open code, anyone can check what went wrong and fix it. But it is an argument against taking it for granted. The code is free; keeping it safe is not.
Using Open Source at Work: The Practical Stuff
For a business deciding whether to use open source, the decision is usually easy on the merits and tricky on the details. Here is how sensible teams handle it.
First, check the licence before you build on something, not after. Permissive licences rarely cause trouble. Copyleft ones can, if you plan to distribute your product without sharing your changes. If you are unsure, ask someone who knows — a short conversation now beats a legal problem later.
Second, look at the health of the project before you depend on it. When was the last release? How many people are committing code? Are issues answered, or does the tracker look abandoned? A project with one maintainer and no release in two years is a risk, even if the code is excellent. A project with a company or a foundation behind it is usually safer.
Third, keep track of what you use. Most companies now keep a list — a software bill of materials — of every open source component in their products. It sounds like paperwork, and it is, but when the next Log4Shell happens, the companies with a list know within an hour whether they are affected, and the ones without spend a week finding out.
Fourth, give something back. That does not have to mean money, though money helps. Report bugs properly, with steps to reproduce them. Fix a typo in the documentation. Answer a question from a new user. Companies that only take from open source eventually find the projects they depend on drying up. The ones that contribute — even a little — keep the well full.
And fifth, do not be afraid of the price tag of zero. A free tool is not a cheap tool. The best open source projects are often better than the paid alternative, because they have been tested by thousands of users in thousands of situations.
Frequently Asked Questions
Is open source software really free?
Usually, yes, in the sense that you can download and use it without paying a licence fee. But "free" does not mean "without cost." Someone has to install it, update it, fix it when it breaks, and check it for security problems. Companies often pay for support, hosting, or extra features instead of paying for the code itself. The honest way to think about it is that the code is free, and the running of it costs whatever it costs.
Can I use open source code in a commercial product?
Almost always, yes. Permissive licences like MIT and Apache 2.0 allow commercial use with very few conditions. Copyleft licences like the GPL allow it too, but with a condition: if you distribute your product, you may have to share your own changes under the same licence. That catches people out, so check the licence of anything you build into a product you sell, and ask a lawyer if the answer is not clear.
Who owns open source software?
Nobody owns it the way a company owns a product, but it is not ownerless either. The copyright usually sits with the people who wrote it, or with a foundation set up to hold it. The licence is what gives you the right to use it. That is the whole arrangement: the authors keep the copyright, and the licence hands everyone else permission to use, change, and share the code.
Is open source less secure than proprietary software?
There is no simple yes or no. Open code can be inspected by anyone, which means bugs and backdoors are easier to spot — but only if someone is actually looking, and as Heartbleed showed, sometimes nobody is. Closed code hides its flaws from attackers and defenders alike. The fairest summary is that security depends on maintenance, not on whether the code is open or closed. A well-maintained open project with many reviewers is safer than a closed product nobody audits; a neglected open project is a risk.
The Bottom Line
Open source is one of those ideas that sounds too good to work and then quietly takes over the world. A student in Helsinki wrote a kernel for fun. A frustrated programmer at MIT wrote a licence because he could not fix his printer. Thirty years later, their work runs the servers, the phones, the routers, and the browsers that hold modern life together.
It works because sharing beats rebuilding. Nobody has to write their own web server or their own database or their own encryption library. They take what strangers built, improve it, and pass it on. The result is software that is better tested, more widely used, and more durable than anything a single company could produce on its own.
But it is not magic, and it is not free in the way people assume. Somebody has to maintain it, somebody has to fund the boring work, and somebody has to check the code nobody else is looking at. Heartbleed and Log4Shell were reminders that the system runs on attention, and attention is not automatic.
Comments
Post a Comment