दुर्गा बेरागी Durga Beragi, homeEnter the study →

Library › Software and engineering

The Cathedral and the Bazaar

Eric S. Raymond · 1999 · O'Reilly

More by Eric S. Raymond on this shelf · 2 books →

Why open development beats closed planning. Given enough eyeballs.

Read the full text free · 61,766 words · 9 parts

About the book

Eric S. Raymond, a programmer and open-source advocate, published this book in 1999. It collects his essays on hacker culture and open-source development. The title essay, first presented in 1997, contrasts two ways of building software: the cathedral, built carefully by a small closed group, and the bazaar, developed in public with frequent releases and many contributors. Raymond tests these ideas against his own project, an email program called fetchmail, and against the Linux kernel. Other essays include a brief history of hackerdom, Homesteading the Noosphere on ownership and reputation in open source, The Magic Cauldron on its economics, and Revenge of the Hackers on the movement's rise.

Key ideas

  • Open development with many contributors can produce better software than closed planning by a small group. Releasing early and often lets users find and report problems quickly.
  • Raymond names Linus's Law: with enough people examining code, almost every bug will be quickly found and its fix obvious to someone. Many testers turn hard debugging into shallow work.
  • Good software often starts by scratching a developer's personal itch. Projects driven by their authors' own needs keep focus and motivation, because the authors are also demanding users.
  • Treating users as co-developers is a powerful resource. Users who report bugs, suggest changes and send patches widen the effort far beyond what one team can supply.
  • Open-source communities run partly as gift cultures. Status comes from what people give away, and informal customs about project ownership govern who may lead and fork projects.
  • Open source can make economic sense. Most software value lies in use and service rather than sale, so companies can profit while giving source code away.

Why it is on this shelf

Open-source software runs most of the world's systems, and these essays explain the reasoning that persuaded companies to release code. For a builder deciding what to publish, how to grow contributors and where value lies, Raymond's arguments still apply. Read critically; some claims are advocacy.

How to start reading it

Read the title essay first, including the fetchmail story and the lessons Raymond numbers. Then read The Magic Cauldron for the economics. Homesteading the Noosphere is the best account of how open-source communities govern ownership.

About this book

The Cathedral and the Bazaar is a small book with a large footprint. Eric S. Raymond published it with O'Reilly in 1999, and a revised edition followed in 2001. It gathers essays he had written over the previous few years, most of them first circulated on the internet, about how a loose community of volunteer programmers was producing serious software and why that should not have worked as well as it did.

The title essay came first. Raymond presented it in 1997 at a Linux conference in Germany, and it spread quickly through mailing lists and web pages. It became one of those rare technical essays that people outside the field also read. Within a year, executives at Netscape cited it as part of the reasoning behind releasing the source code of their web browser, a decision that led to the Mozilla project. That event, and the coining of the phrase open source in early 1998, gave the essay a reputation as a document that changed an industry's mind.

The question at its centre is simple to state. Software engineering had long assumed that large, complex programs must be built by small, disciplined teams working to a careful plan, out of public view, with releases rare and polished. Yet Linux, an operating system kernel of real size and difficulty, had been built in the open by hundreds and then thousands of people, coordinated mainly through email, with new versions released sometimes more than once a day. The result was not chaos. It was a stable and fast system. Raymond asks why.

His answer is not a single law but a cluster of observations: about how bugs are found, about how users can become developers, about motivation, about the role of the person who leads a project, and about the social customs that hold a volunteer community together. He tests these observations against an experiment of his own, a mail-fetching program called fetchmail that he ran deliberately in the Linux style to see whether the style worked for someone other than Linus Torvalds.

The other essays widen the frame. One is a short history of hacker culture. One asks how a community without formal property rules decides who owns a project. One asks how anyone makes money when the source code is given away. The last is a first-hand account of the campaign, in which Raymond was a leading voice, to bring open-source software into the commercial mainstream.

The intended reader in 1999 was double. There were programmers, many of them already inside the culture Raymond described, who wanted a vocabulary for what they were doing. And there were managers and executives who had heard about Linux and wanted to know whether it was a fad, a threat or an opportunity. The book speaks to both, which explains its tone: part field report, part manifesto, part business memo.

Reading it today means reading it as two things at once. It is a historical document from the moment when open development went from a subculture to a default. And it is still a working set of ideas about how to organise the building of anything complex with many hands. This edition tries to keep both readings in view.

The author

Eric Steven Raymond was born in 1957 in Boston, Massachusetts, and spent parts of his childhood abroad before his family settled in Pennsylvania. He was born with cerebral palsy, which he has written about only briefly. He studied mathematics and philosophy at the University of Pennsylvania without finishing a degree, and came into programming through the hacker culture of the late 1970s and 1980s, the world of ARPANET, Unix, Lisp machines and the early free software projects.

Before he wrote about open-source development, Raymond was known as an editor and anthropologist of that culture. He maintained the Jargon File, a long-running glossary of hacker slang and lore that began at Stanford and MIT. In 1991 it was published as The New Hacker's Dictionary, and later editions followed. That work trained the habit of mind that shows in this book: he looks at programmers as a tribe with customs, status systems and unwritten rules, and he tries to describe those rules from inside.

He was also a working programmer. He contributed to GNU Emacs and wrote or maintained a number of small Unix tools. Fetchmail, the program at the heart of the title essay, grew from an earlier mail client called popclient, written by another programmer, which Raymond took over and then rebuilt. He later wrote The Art of Unix Programming, published in 2003, which sets out the design traditions of Unix in a similar spirit of cultural description.

In 1998, shortly after the Netscape announcement, Raymond and Bruce Perens founded the Open Source Initiative, an organisation meant to promote the new term and to certify licences that met an agreed definition. Raymond served as its first president and became, for a few years, the most quoted spokesman for the movement in the press. He gave talks to companies, advised on licensing and wrote the essays collected here in a deliberately persuasive register.

That background matters for reading the book. Raymond was not a neutral academic. He was an advocate with a cause, and he says so. He was also a person with strong political views, broadly libertarian, which colour his language about markets, property and coordination without central authority. Some later public statements of his have been controversial, and his relations with parts of the open-source community he helped name became strained over time. None of this cancels the value of the essays, but it reminds the reader that the voice is that of a participant arguing a case.

His relation to Richard Stallman and the free software movement is part of the story. Stallman had founded the GNU project in 1983 and argued that software freedom was an ethical matter: users ought to have the right to study, change and share the programs they run. Raymond admired the GNU tools but disagreed with the moral framing, which he thought frightened businesses away. The term open source was chosen partly to make the same practices attractive on practical grounds alone. Readers will notice that this book argues almost entirely from practical outcomes: better software, faster, at lower cost.

The shape of the argument

The book is a collection, not a treatise, and its argument is built in layers rather than steps. Each essay addresses a different question, and each widens the circle of the previous one. It helps to see the layers before looking at any single idea.

First layer: the culture

The historical essay sets the stage. It describes hacker culture as a line of descent running from early university computing through Unix and the internet to the free software projects of the 1980s and the Linux explosion of the 1990s. Its purpose is to show that what looked new in 1997 had deep roots. Sharing code, building on others' work and judging people by the quality of what they made were old habits. What changed was scale and speed, which the internet supplied.

Second layer: the method

The title essay is the core. It contrasts two models of development, which Raymond names with images rather than definitions. The cathedral is built by a small group of master builders working in isolation, releasing nothing until it is ready. The bazaar is a noisy marketplace where many people come and go, each pursuing their own aims, and order somehow emerges. Raymond admits that he believed in the cathedral until Linux surprised him. He then describes his own fetchmail project as a deliberate test of the bazaar, and draws from it a series of numbered lessons. These lessons are the part most people remember.

The method layer is about engineering: how bugs get found, how releases should be timed, how a project leader should treat users, how design improves over time. It is concrete and practical, and it rests on the specific experience of one maintainer of a mid-sized utility, together with his reading of the Linux project.

Third layer: the social order

The essay on homesteading turns from method to institutions. If anyone may copy and change open-source code, why do projects not fragment endlessly? Why do people respect a maintainer's authority, avoid hostile forks and give credit? Raymond argues that the community runs on unwritten property customs, much like the customs by which settlers on a frontier claimed land, and on a reputation economy in which status is earned by giving. This essay is the most anthropological in the book.

Fourth layer: the economics

The essay on the magic cauldron asks the question businesses were asking. If the code is free, where is the money? Raymond separates the value of software into the price someone would pay for a copy and the value of using it, and argues that most software is written for use, not for sale. From that he derives a set of business models in which giving away source code makes sense, and some conditions under which it does not.

Fifth layer: the campaign

The final essay is a first-person account of 1998 and its aftermath: the Netscape release, the choice of the open-source label, the media work, and the reaction of large incumbents. It reads as a memoir of a strategy. Its interest now is historical and tactical, a record of how a technical idea was carried into boardrooms.

Taken together, the layers form an argument of increasing ambition. The method works; the culture that makes the method work is stable; the culture can be explained in terms of ordinary human incentives; those incentives can be aligned with commercial ones; and therefore the whole approach can and should spread. Each layer depends on the one before it, and a reader can accept the earlier layers while doubting the later ones.

Two ways to build: cathedral and bazaar

The book's central image is easy to remember and easy to misuse. It helps to be precise about what Raymond meant by each side.

The cathedral is not simply closed, commercial software. Raymond's own examples of cathedral-style projects included free software: the GNU Emacs editor and the GNU C compiler, which in the mid-1990s were developed by small groups who released source code but kept the work in progress private and shipped versions only occasionally. The cathedral is a way of working, not a licence. Its marks are a small inner team, long periods between releases, a belief that bugs are deep and must be hunted carefully by experts before anything is shown, and a sense that the public sees only finished stages of the work.

The bazaar is also a way of working. Its marks are public work in progress, very frequent releases, a large and changing body of contributors, and a leader who coordinates rather than commands. In the bazaar the public is not an audience waiting for the final product. It is part of the workforce.

An analogy from outside software may help. Picture two ways of compiling a dictionary of a living language. In one, a small editorial board works for years in a closed office, deciding each entry carefully and publishing one great edition. In the other, the editors publish a draft at once, invite every reader to send in new words, corrections and citations, and publish revised drafts every few weeks. The second approach looks reckless. But it may find far more words, catch far more errors and stay far closer to how people actually speak. The Oxford English Dictionary, interestingly, was built partly through the second method, with volunteer readers mailing in slips of quotations, even though it was published in the first style.

Raymond's claim is that the bazaar is not merely tolerable but often superior for software of a certain kind. The key words are often and of a certain kind. He does not argue that every program should be built this way or that no planning is needed. He argues that the default assumption of the industry, that serious work requires the cathedral, was wrong.

A common confusion is to read the bazaar as leaderless. It is not. Linux had Linus Torvalds, and fetchmail had Raymond. What changes is the nature of leadership. The leader in the bazaar spends less time writing every line and more time choosing, merging, encouraging and explaining. The leader's authority comes from judgment and from having started the work, not from a position in an organisation chart.

Another confusion is to read the bazaar as the absence of design. Raymond is clear that a bazaar project needs a plausible starting point. Nobody can build a program from scratch in bazaar style; the bazaar can test, debug and improve, but somebody has to bring a working core to the market first. A project that opens with nothing but an idea will attract nobody, because there is nothing for contributors to run.

The image leads somewhere broader than software. It is a claim about how knowledge gets made when the cost of communication drops. Once many people can see the same work at once and respond within hours, the economics of secrecy and slow release change. Encyclopedias, maps, scientific datasets and hardware designs have since been built in versions of the bazaar style. Each case has shown both the power Raymond described and the limits he understated.

Many eyes and shallow bugs

The most quoted line in the book is its statement of what Raymond named Linus's Law, after Torvalds: “Given enough eyeballs, all bugs are shallow.” The fuller version in the essay adds a division of labour. With a large enough body of testers and co-developers, almost every problem will be noticed quickly, and the fix will be obvious to someone, though not necessarily the same person who found it.

To see why this matters, consider what makes debugging hard. A bug is a gap between what a program does and what its authors believe it does. Finding it requires two things: a situation that triggers the faulty behaviour, and a mind that can connect the symptom to its cause. In a cathedral project, both are scarce. The inner team tests in a limited set of situations and reasons from a shared set of assumptions, which may be exactly the assumptions that are wrong.

In a bazaar, both become plentiful. Thousands of users run the program on different machines, with different data, in different combinations. Some of them hit the failure. Among the many who read the report and look at the code, someone may hold the right piece of knowledge: a quirk of a particular network setup, a corner of the standard library, a memory of a similar bug elsewhere. The problem that seemed deep to the original team turns out to be shallow to that person.

A good analogy is a crossword clue that has stumped one solver for an hour. Pass it around a room of twenty people with different backgrounds and someone will see it in seconds, not because they are cleverer but because they happen to know the word. The difficulty was never in the clue alone. It was in the match between clue and solver.

Raymond also observes that the costs of debugging grow more slowly with team size than the costs of coordination. Fred Brooks had argued in The Mythical Man-Month that adding people to a late software project makes it later, because communication paths multiply. Raymond's reply is that debugging can be parallel in a way that design cannot. Testers and debuggers do not need to talk to each other much; each reports to the maintainer. So the costs Brooks described apply to the core design work, but not to the swarm that finds and fixes defects around it.

The idea is often confused with a stronger claim: that open-source software is automatically more secure or more correct because anyone can read it. That does not follow. Eyes that could look are not eyes that do look. The law depends on enough people actually running and reading the code, and on the bugs being ones that ordinary use can trigger. Rare, subtle problems in code that few people understand can sit unnoticed for years in public projects. Later events, discussed in the criticisms chapter, made this painfully clear.

Where the idea leads is toward a design principle: make it easy for people to look. Readable code, public bug trackers, reproducible builds and clear contribution paths are all ways of increasing not just the number of possible eyes but the number of actual ones. A project that is technically open but practically opaque gets few of the benefits.

Release early, release often

The second pillar of the bazaar method is a rhythm. Raymond observed that Linux shipped new development versions very frequently, sometimes daily, and that this seemed to help rather than harm. He adopted the same rhythm for fetchmail and found it worked.

The logic follows from the previous chapter. If bugs are found by users, then the sooner users see the code, the sooner bugs are found. Every week a change sits unreleased is a week in which nobody outside the team can test it. Frequent releases also keep contributors engaged. A person who sends in a patch and sees it in a release a few days later feels that the work mattered. A person who waits six months may lose interest.

There is a further effect on the quality of feedback. When releases are frequent, each one contains few changes. If something breaks, the cause is easy to locate, because only a handful of things changed. When releases are rare, each one bundles hundreds of changes, and a new failure could come from any of them. Small releases make the system easier to reason about, for the same reason that taking small steps on a dark path makes it easier to notice where you stumbled.

Raymond pairs this with a practice Linux had made visible: the separation of stable and development lines. Users who want reliability can stay on a stable branch that changes rarely. Users who want the newest features, and are willing to report problems, run the development branch. This lets a project release often without forcing every user to live on the edge.

The idea is often mistaken for permission to ship carelessly. That reading misses its purpose. The point of frequent release is faster learning, and it only works if the project actually listens to what comes back. A team that releases weekly and ignores the reports has gained nothing but noise.

Much of what is now called continuous delivery is a descendant of this idea, though it arrived through several routes, including the short iterations of Extreme Programming, which sits on this same shelf. Today the rhythm is so common in web software that it is easy to forget it was once argued for. In 1997 the normal release cycle for many commercial programs was measured in years.

Scratching an itch

The first of Raymond's numbered lessons concerns motivation. Good software, he says, usually begins when a developer needs something for personal use and nothing available fits. Fetchmail began this way: Raymond wanted a reliable way to pull his email from a remote server and found the existing tools wanting.

The point is not sentimental. It is about information and incentives. A developer who uses the program every day knows exactly what it must do, notices every irritation, and has a reason to keep fixing it long after the excitement of starting has faded. A developer writing to a specification for someone else's needs lacks this direct feedback. Requirements filtered through documents and meetings lose detail.

Think of a carpenter who builds a chair for his own kitchen table compared with one who builds a chair from a written order. The first will sit in it every morning and will shave the edge that digs into his leg. The second may never sit in it at all. Neither is a worse craftsman, but the first has a feedback loop the second lacks.

Raymond adds a related lesson about reuse. Good programmers, he says, know what to write; great ones know what to rewrite and reuse. Fetchmail did not start from nothing. Raymond took over an existing program, kept what worked and replaced what did not. He also notes the willingness to throw work away: the plan to discard a first version, which Brooks had also recommended, because you understand a problem only after you have tried to solve it once.

The itch idea has limits that Raymond partly acknowledges. It favours software that programmers themselves use: compilers, editors, servers, network tools. It explains why open-source projects have long been strongest in infrastructure and developer tooling and weaker in products for people who do not code, such as accounting systems for small shops or interfaces for the elderly. Nobody in the bazaar has that itch. Later sections of the book, on economics, try to address how such software gets funded.

Where the idea leads is to a general rule for anyone starting a project: begin with a problem you have and will keep having. The rule applies well beyond software. A person writing a field guide does better if they walk the trails themselves. A person designing a school timetable does better if they teach in it.

Users as co-developers

The most radical practical claim of the title essay is that users, treated properly, are the best resource a project has. Raymond describes how he cultivated the fetchmail user community: he kept a mailing list of everyone who had shown interest, announced every release to them, answered reports promptly, credited every contribution, and took suggestions seriously even when they came from strangers.

The result, he reports, was a body of users who behaved like a development team. They found bugs, proposed features, sent patches and, at least once, talked him out of a design he would otherwise have kept. Some of the most important improvements in fetchmail came from users, not from him.

There is a teaching in this about the source of good ideas. Raymond includes a lesson to the effect that the next best thing to having good ideas yourself is recognising good ideas from your users. A maintainer who can tell a good suggestion from a bad one, and who is willing to abandon a cherished plan when a better one arrives, will lead a better project than a brilliant designer who insists on his own way.

He also describes a design insight that came from this process: a user's suggestion led him to see that fetchmail should hand mail to the local mail transport system rather than writing it to a mailbox file itself. This simplified the program and made it fit better with the rest of the Unix environment. He uses the story to show how outside eyes can reframe a problem, not just patch it.

The idea is easily confused with mere customer service. It goes further. In ordinary customer service the user complains and the company decides. Here the user may write the fix and the maintainer's job is to judge, merge and credit it. The relationship is closer to that of an editor and contributors to a journal than that of a shop and its customers.

It also depends on the users being able to contribute. A program whose users are programmers can draw patches from them. A program whose users are not can still draw bug reports, feature requests and documentation, but the share of real development work they can take on is smaller. This is another reason the bazaar has thrived most in tools for technical people.

The lesson survives in modern practice through issue trackers, pull requests, public roadmaps and community forums. Its spirit is that a project should be built so that the boundary between user and developer is low and easy to cross.

The leader in the bazaar

Raymond spends some time on what a bazaar project asks of its leader. The answer is not genius as a designer. It is a mix of technical judgment and social skill.

The technical side is the ability to recognise good design when someone else proposes it, to say no to changes that would compromise the whole, and to keep the program coherent as many hands touch it. The social side is the ability to attract people, keep them interested, make them feel their work matters and resolve disputes without driving anyone away. Raymond says plainly that a person who cannot work well with others will not be able to lead a bazaar, however brilliant they are.

This is a striking reversal of a common picture of programmers as solitary and awkward. Raymond does not deny that such people exist in the culture. He argues that the projects that succeed in the open are led by people who have, or learn, the skills of a good host. He compares the leadership role to that of someone who builds an environment where others want to do good work.

An analogy is a good conductor of an amateur orchestra. The conductor does not play every instrument and cannot force anyone to attend rehearsal. Musicians come because the music is good, the rehearsals are well run and their playing is heard. A conductor who treats them with contempt soon conducts an empty hall.

Raymond also observes something about handing on a project. A good maintainer, he says, knows when to pass leadership to a capable successor once his own interest fades. Fetchmail itself was eventually handed on. The willingness to let go is part of the culture's health: projects outlive any one person because ownership is understood as a role that can be transferred.

The idea links to Gerald Weinberg's notion of egoless programming in The Psychology of Computer Programming, which Raymond acknowledges. Weinberg had argued that programmers who invite others to read and criticise their code produce better work than those who guard it. The bazaar takes this habit and scales it to thousands of people who have never met.

Design lessons from a small program

Not all of the lessons in the title essay are about community. Several are about design, and they are easy to overlook because the social claims get more attention. They come from Raymond's own experience of reworking fetchmail, and they are worth separating out.

Data first

One lesson echoes a point Brooks made decades earlier: that if you understand a program's data structures, the code usually follows. Raymond puts it as a preference for smart data and simple code over the reverse. When he rebuilt the program he inherited, much of the improvement came from changing how information was represented, after which the logic became shorter and clearer.

An everyday parallel is a well-designed kitchen. If ingredients, tools and pans are arranged sensibly, the cooking itself becomes a simple sequence of steps. If they are scattered, every recipe turns into a search. The work of design is often in the arrangement, not the procedure. Many programmers learn this late, after writing clever procedures around a poor representation.

Taking things away

Another lesson concerns removal. Raymond describes a point at which he realised that a feature of fetchmail could be cut entirely, because a better route existed through the surrounding system. He treats this as a sign of progress, not loss. A design improves, he suggests, when it becomes both more capable and simpler, and the clearest evidence of that is when parts can be deleted.

This is often confused with minimalism as a style. The point is not to have few features for their own sake. It is that every part of a program has to be understood, tested and maintained by someone, and in a bazaar that someone may be a stranger arriving years later. Parts that do not earn their place are a tax on every future contributor.

Fitting the environment

A third lesson is about fitting into an existing ecosystem rather than replacing it. The decision to hand mail to the system's mail transport, rather than handle delivery inside fetchmail, meant the program did one job and relied on other mature tools for the rest. This is the Unix habit of composition, and it suits bazaar development well, because small programs with clear boundaries can be improved independently.

Being surprised

Finally, Raymond notes that a tool is often used in ways its author never imagined, and that this is a mark of success. Users of fetchmail found purposes for it beyond what he had planned. A good design leaves room for such uses rather than forbidding them. The lesson links back to users as co-developers: the people who run a program teach its author what it is for.

Taken together, these design lessons show that the bazaar does not replace engineering judgment. It multiplies the information available to that judgment. The maintainer still has to decide what the data should look like, what to cut and where the program's edges lie.

Homesteading the noosphere

The second major essay takes up a puzzle. Open-source licences let anyone copy, change and redistribute the code. In principle, then, anyone could take a popular project, make their own version and compete with the original. Yet in practice this rarely happens, and when it does it is treated as a serious matter. Projects have recognised owners. Patches are sent to the maintainer rather than released as rival versions. Credits are carefully preserved. Why do people follow rules that the licences do not require?

Raymond's answer borrows from the philosopher John Locke and from the history of land settlement. On a frontier, he notes, land could be claimed in a few ways: by being the first to work it, by receiving it from a previous owner, or by taking over land that had clearly been abandoned. He finds the same three paths to ownership of software projects. You may own a project because you started it, because the previous maintainer handed it to you, or because it had been left untended and you announced your intention to take it over, waited and heard no objection.

The space being homesteaded is not land but ideas. Raymond calls it the noosphere, a word taken from earlier thinkers, here used to mean the territory of all possible ideas and projects. Each open-source project is a plot in that territory, and its owner has the right, by custom, to decide what goes into the official version.

Why respect these customs? Raymond argues that the community is a gift culture. In societies where basic needs are met and goods are abundant, status cannot come from controlling scarce resources, because there are none worth controlling. Instead status comes from what one gives away. Among programmers with spare time and cheap computers, the scarce thing is reputation among peers, and reputation is earned by contributing good work. Ownership customs protect the link between work and reputation. A hostile fork, or removing someone's name from the credits, threatens that link and so threatens the whole system of incentives.

He draws the analogy to academic science. A scientist publishes results freely and gains nothing directly from each paper being read, yet scientists work hard and guard credit fiercely, because their standing depends on it. Plagiarism is the cardinal sin, not because it costs anyone money but because it corrupts the reputation economy. Open source, Raymond argues, runs on the same engine.

The essay also discusses how disputes are handled. Conflicts over who controls a project, or over whether a fork is justified, are settled by appeals to these customs and by the judgment of respected community members. There is no court. The process works because most participants share the norms and because breaking them costs reputation.

The idea is often confused with the claim that open-source developers work purely for altruistic reasons. Raymond's argument is the opposite. He says contributors are often quite self-interested. What they want is status, the pleasure of good work and the respect of people whose respect they value. The culture works because it channels that self-interest into public goods.

Later research in economics and sociology tested parts of this picture. Studies found a mix of motives: reputation, learning, career signalling to employers, personal need, enjoyment and, increasingly over time, simply being paid by a company to work on a project. The pure gift-culture model describes the volunteer era better than the present, when a large share of open-source work is done by employees of firms that depend on the software. The ownership customs Raymond described, however, remain recognisable in how forks, maintainership and credit are handled today.

The economics of the magic cauldron

The third major essay answers the businessman's question. If source code is given away, how does anyone earn a living from software? Raymond takes his title from the image of a cauldron that produces food without being emptied, an image he uses with some irony, since he wants to show that the economics are not magic at all.

His central move is to divide the value of a program into two parts. Sale value is what people will pay for a copy. Use value is what the program is worth to the people who use it: the work it does, the costs it saves. He then points out that most software is not written for sale. It is written inside companies, governments and institutions for their own use: payroll systems, internal tools, embedded controllers, websites. For that software, sale value is beside the point. What matters is use value and the cost of building and maintaining it.

Once this is seen, open source looks less strange. A company that writes a tool for its own use gains little by keeping the code secret, unless the code embodies a real competitive advantage. By releasing it, the company may attract outside users who find bugs, add features and share the burden of maintenance. The company keeps all the use value and pays less of the cost.

An analogy is a group of neighbouring farmers who each need a road to market. Each could build a private track, but if they agree to build and maintain one shared road, every farmer gets a better road for less. Nobody sells the road. Its value lies in what it carries. Shared infrastructure software is like that road.

Raymond goes on to list ways of making money in an open-source world. They include giving away software to sell services such as support, training and customisation; giving away software to sell the hardware it runs on; giving away a basic version to build a market for related products; and selling the convenience of a tested, packaged distribution. Several of these became real business models in the years that followed, and some of the companies that pursued them grew large.

He is careful to say when closed source still makes sense. If a program embodies a genuinely secret technique that gives its owner an edge competitors cannot easily replicate, keeping it closed may be wise. If the market is tiny and support revenue cannot sustain the work, the sale model may be the only one available. The argument is not that closed source is always wrong but that it is chosen far more often than the economics justify.

The idea is often confused with the claim that software should be free of charge. Raymond's case is narrower. He is arguing about the commercial logic of source availability, not about price or rights. Free of charge and open source overlap, but a company can charge for packaged open-source software, and a program can be given away at no charge with its source kept secret.

The essay leads toward later work on the economics of public goods, platforms and complements. A company that sells a product benefits when the complements to that product become cheap and abundant. Several of the large firms that later invested heavily in open source did so for this reason: open-source operating systems, databases and tools made their own services more valuable. Raymond saw the outline of this argument early, though he could not have foreseen its scale.

The campaign and the label

The last essay in the collection is a narrative, and it shows the book's author as a strategist as much as a thinker. Raymond recounts how Netscape's decision to release its browser source in 1998 created an opening, and how a group of advocates met to decide how to seize it. The phrase free software, they felt, carried two problems for business listeners: it suggested something given away for nothing, and it was tied in many minds to a moral campaign about users' rights that executives found off-putting.

The group adopted the term open source, coined by Christine Peterson at that meeting, and set about promoting it with a deliberately pragmatic message. Software developed in the open was better, cheaper and more reliable. Companies did not need to share any particular philosophy to benefit. Raymond describes his own role as something like a press officer and evangelist, giving interviews, writing position papers and helping to frame the story.

He also recounts how internal Microsoft memos analysing the threat of open-source software reached him in 1998, and how he published them with annotations. These became known as the Halloween documents. He presents them as evidence that the most powerful incumbent in the industry took the bazaar seriously, which helped the movement's case.

The lasting idea here is about framing. The same practices can be described in moral language or in practical language, and the description chosen shapes who will listen. Raymond bet on practical language and believed it worked. Stallman and his allies argued that by dropping the ethical message the open-source campaign risked winning adoption while losing the reason the practices mattered. That disagreement has never been fully resolved, and both terms remain in use, often joined in phrases that try to cover both camps.

Readers today can treat this essay as a case study in how ideas move from a subculture into institutions. The tactics were specific: a new name, a definition, an organisation to guard it, a few high-profile corporate converts and a steady flow of press. Many later movements, in technology and outside it, have followed the same pattern.

The tradition around it

The book did not arise from nothing. Behind it stand the Unix tradition of small tools shared among users, the academic habit of publishing results openly, the GNU project's demonstration that a large body of free tools could be built by volunteers, and the early internet's culture of mailing lists and anonymous file servers. Raymond's historical essay traces these roots.

It answers, most directly, Fred Brooks's The Mythical Man-Month of 1975. Brooks argued that software projects do not scale by adding people, that a single designer or small team must hold the conceptual integrity of a system, and that communication costs grow faster than team size. Raymond accepts much of this for design but argues that Brooks did not foresee how the internet would let debugging and testing be distributed with little coordination cost. The two books are best read as a pair.

On this shelf, The Psychology of Computer Programming by Gerald M. Weinberg is the most direct ancestor. Weinberg studied programmers as people in groups and argued for egoless programming, in which code is shared and reviewed rather than guarded. Raymond explicitly draws on this idea. Peopleware by Tom DeMarco and Timothy Lister belongs to the same family: both books insist that the main problems of software are human, not technical.

The UNIX Programming Environment by Brian W. Kernighan and Rob Pike describes the technical culture from which the bazaar grew: small programs, text streams, pipes and composition. That style of software is especially suited to bazaar development, because small, separable tools can be worked on by many people without stepping on each other. Raymond's own later book on Unix programming made the link explicit.

Extreme Programming Explained by Kent Beck, published the same year, reached some similar conclusions from a different starting point. Beck was working inside companies with small, co-located teams and paying customers. Yet he too argued for short release cycles, constant feedback and the shared ownership of code. The bazaar and XP are cousins: one scaled feedback outward to thousands of strangers, the other compressed it inward to a pair of programmers at one desk.

The Pragmatic Programmer by Andrew Hunt and David Thomas, also from 1999, speaks to the individual craftsman in the same culture, with its emphasis on tools, automation and personal responsibility. Working Effectively with Legacy Code by Michael C. Feathers addresses what happens years later, when the bazaar's code becomes old and its original authors have moved on. Site Reliability Engineering, edited by Betsy Beyer and colleagues, shows how a company that runs vast systems built largely on open-source foundations organises the work of keeping them up.

After this book came a wave of research and writing on open collaboration. Yochai Benkler's work on commons-based peer production, Karl Fogel's practical guide to running open-source projects, and studies of Wikipedia and other open projects all extended or tested Raymond's claims. Nadia Eghbal's later work on the maintainers of open-source infrastructure examined the hidden costs that the bazaar model can impose on the few people who actually keep projects alive.

Questions and criticisms

The evidence base

The book's empirical base is narrow. Its main evidence is Linux, as seen from outside, and fetchmail, as seen from inside by its own maintainer. These are rich cases, but they are two. Raymond generalises from them with confidence. A careful reader should ask which lessons depend on features of those projects: a technically skilled user base, a clear and stable problem domain, a single charismatic leader, and a moment when programmer volunteers had time and enthusiasm to spare.

Linus's Law tested

The many-eyes claim has been tested hard by events. Serious security flaws have been found in widely used open-source code that had been public for years. The best known is the Heartbleed bug in the OpenSSL library, disclosed in 2014, which had been in released code for about two years. OpenSSL was used across much of the internet, yet very few people actually reviewed its code, and the project was maintained by a tiny, underfunded group. The lesson is not that Linus's Law is false but that it is conditional. Eyes have to be present, motivated and skilled. Popular use does not guarantee review.

The cathedral within the bazaar

Critics have pointed out that successful bazaar projects often contain a cathedral at their core. Linux has a strict hierarchy of maintainers and a final authority who decides what enters the main tree. Major projects often depend on a small number of people who do most of the work. Studies of open-source contribution patterns have repeatedly found that a small fraction of contributors write most of the code. The bazaar may be better described as a cathedral with very open doors and a very large volunteer test team.

Funding and burnout

The gift-culture account explains why people start contributing but says less about who pays for maintenance over decades. Many critical projects have relied on a few unpaid or poorly paid people, and burnout among maintainers has become a recognised problem. The economic essay's business models helped some projects but left many important libraries without steady support. Later initiatives to fund open-source infrastructure were a response to gaps the book did not foresee.

What changed

The open-source world of the 2020s is very different from that of 1997. Large companies now employ many of the most active contributors. Platforms for hosting code made the mechanics of contribution far easier, and also changed the culture around it. Licensing debates moved on to new questions, such as how to deal with cloud providers that run open-source software as a paid service without contributing back. Some companies moved their projects to more restrictive licences in response. The book's economic optimism has had to make room for these frictions.

What has held up

Much has held up. Frequent release, public issue tracking, treating users as collaborators, crediting contributions and keeping a coherent project leader all became standard practice, not only in open source but in much commercial development. The broad prediction that open-source software would come to underpin most of the world's computing has largely come true. And the anthropological insight, that software communities are governed by customs and reputation as much as by licences, remains one of the best lenses for understanding them.

Tone and advocacy

The book is advocacy, and at times its tone runs ahead of its evidence. Raymond writes with the confidence of someone who has been proved right and expects to be proved right again. The reader should separate the observations, which are often sharp, from the rhetoric, which sometimes overstates. It is also worth noting that the moral and political framing of the free software movement, which Raymond set aside, has continued to matter to many people for reasons his practical case does not address.

Why it is on this shelf

This shelf gathers books on Vedanta, Jyotish, science, economics and technology, and it asks of each one whether it shows something about how knowledge is made and kept. The Cathedral and the Bazaar earns its place on that test.

It is a book about how truth is found in a complex system when no single mind can hold the whole. That question runs across the shelf. In the sciences, it is the question of peer review and replication. In economics, it is the question of how prices coordinate knowledge that no planner possesses. In the Indian traditions of learning, it is the question of how a teaching is kept alive across generations of teachers and commentators, each adding, correcting and passing on. Raymond's bazaar is one modern answer, worked out in code.

It also shows clearly the difference between a method and its myth. The essay is often reduced to a slogan, and the slogan is often used to defend things it does not support. Reading the original, with its specific conditions and its honest account of one small project, is a lesson in going back to sources rather than relying on what everyone says a book says.

For anyone who builds software, the practical lessons remain useful: start with a real need, release small and often, listen to users, credit others, know when to hand work on. For anyone who studies economics, the essay on use value and sale value is a compact and clear piece of applied reasoning about public goods. And for anyone interested in how communities without formal authority govern themselves, the essay on homesteading is a small classic of applied anthropology.

We keep it on the software bay beside the books on craft and teams because it is the clearest statement of a way of working that now shapes almost every program in use, and because its limits are as instructive as its insights.

How to read it

The book is short, and the title essay can be read in an evening. That is the right place to begin. Read it in one sitting first, without stopping to take notes, to get the arc of the story: the surprise of Linux, the fetchmail experiment, the lessons and the conclusion.

Then read it again slowly, with a pencil. On this second pass, mark each numbered lesson and write beside it, in a few words, the evidence Raymond gives for it. Some lessons are supported by a specific event in the fetchmail story. Some are supported by the Linux example. Some are asserted with little support. Seeing which is which is the most useful exercise the essay offers.

Next read the essay on homesteading. Here a pencil exercise also helps: list the customs Raymond describes and for each one, think of how it appears in a project you know. If you use code-hosting sites, look at how forks, maintainers and contribution guidelines work on a project you depend on. The match will be striking in some places and weak in others.

Then read the economic essay. Pay attention to the distinction between use value and sale value and to the list of business models. Take one model and look for a company that has tried it since. Note how it fared.

The historical essay and the campaign memoir can be read last, or skipped on a first pass. They are valuable as history but less so as argument. If time is short, read the campaign essay mainly for the story of the naming of open source and the strategic reasoning behind it.

Pace yourself across about a week: one evening for the first reading of the title essay, one for the pencil pass, one each for homesteading and economics, and one for the remaining essays and for thinking about the criticisms.

Read alongside it, if possible, the relevant chapters of Brooks's The Mythical Man-Month, especially the essay that gave the book its title. The dialogue between the two is the best way to understand both.

From this shelf, read next The Psychology of Computer Programming for the human roots of the bazaar, then Extreme Programming Explained for the parallel argument inside companies, then The UNIX Programming Environment for the technical culture that made small-tool collaboration natural. Peopleware is a good companion on teams and environments, and Site Reliability Engineering shows what running open-source-built systems at scale actually demands.

A last suggestion for reading: keep a single page of notes divided into two columns. In one, write what Raymond observed. In the other, write what he concluded from it. By the end, the gap between the columns will show where the book is strongest and where it asks for trust.

Questions to carry

  • What exactly makes a bug shallow, and what kinds of bugs stay deep no matter how many people look?
  • Is the bazaar a method that can be adopted on purpose, or a result that emerges only under special conditions?
  • Where in a successful open project is the cathedral hidden, and is that a weakness or a necessity?
  • How does a maintainer decide which outside contributions to accept, and what would bad judgment look like?
  • When does releasing often help users, and when does it burden them?
  • What itch does your own most important work scratch, and who else has the same itch?
  • How does reputation work as a currency, and what can make it inflate, collapse or be counterfeited?
  • Which software in your own life has high use value and low sale value, and who pays for it?
  • What did the free software movement lose, if anything, when the open-source label took hold?
  • Who maintains the code you rely on most, and what would happen if they stopped?
  • How would the bazaar model apply to a field outside software, such as a research group or a reference work?
  • Which of Raymond's lessons would hold in a company where every contributor is paid, and which would break?
  • How should an open project respond when a large company profits from it without giving back?

Words to know

  • Cathedral: Raymond's name for a development style in which a small closed group builds software and releases it rarely, regardless of licence.
  • Bazaar: a development style with public work in progress, frequent releases and many loosely coordinated contributors.
  • Linus's Law: the claim, named after Linus Torvalds, that with enough testers and co-developers almost every bug is found quickly and its fix is obvious to someone.
  • Open source: software whose source code is available under a licence that allows study, change and redistribution; also the name of the movement that promoted it from 1998.
  • Free software: Richard Stallman's term for software that respects users' freedom to run, study, change and share it, framed as an ethical matter.
  • Source code: the human-readable form of a program, from which the machine-executable form is built.
  • Fork: a separate line of development made by copying a project's code and continuing it independently of the original maintainers.
  • Maintainer: the person or small group responsible for deciding what enters the official version of a project.
  • Patch: a set of changes to source code, sent to a maintainer for inclusion.
  • Fetchmail: the mail-retrieval program Raymond maintained and used as a test case for bazaar development.
  • Noosphere: in Raymond's usage, the space of ideas and projects in which developers stake claims, by analogy with land.
  • Homesteading: claiming ownership of something by being first to work it; Raymond applies it to starting or taking over projects.
  • Gift culture: a social system in which status comes from what one gives away rather than what one controls.
  • Reputation economy: a system in which recognition among peers serves as the main reward for work.
  • Use value: what software is worth to the people who use it, as distinct from what it would sell for.
  • Sale value: the price people would pay for a copy of software as a product.
  • Egoless programming: Gerald Weinberg's term for the practice of treating code as shared work open to review rather than personal property.
  • Brooks's Law: Fred Brooks's observation that adding people to a late software project makes it later.
  • Hacker: in this book's usage, a skilled and enthusiastic programmer in the tradition of shared code, not a person who breaks into systems.
  • Development branch: a line of a project where new and less tested changes are released for willing testers, alongside a stable branch.
  • Licence: the legal terms under which software may be used, changed and shared.

A note on this edition

This is a study edition written for this shelf in our own words. It describes and discusses The Cathedral and the Bazaar but does not reproduce it, and it is not a substitute for the essays themselves, which reward a careful reading in Raymond's own voice.

The book is in copyright. It is widely available from libraries and bookshops, and it is worth owning in print or reading in full. Any errors of fact or emphasis here are ours, and readers should check our account against the original.

More from “Software and engineering”

The whole section →