About this book
The Psychology of Computer Programming appeared in 1971 from Van Nostrand Reinhold. Its author, Gerald M. Weinberg, had spent the previous fifteen years writing programs, managing programmers and teaching them. The field he wrote about was young. Computers were large, expensive machines owned by governments, universities, banks and big firms. Programs were often punched on cards, handed to an operator, and run in batches, so that a programmer might wait hours or a day to learn whether a change worked. Machine time cost far more than human time, and most writing about programming was about squeezing more out of the machine.
Weinberg asked a different question. If programming is work done by people, what do we know about those people, and what follows from it? He wanted to study the programmer the way a psychologist or an anthropologist studies any other worker: as someone with habits, fears, pride, blind spots and social ties, who works inside a group and an organisation that shape what they can do. The book is his attempt to open that study and to show that it matters in practical, costly ways.
The audience was double. On one side were programmers, who he thought understood their own work poorly because they looked only at its technical surface. On the other were managers and teachers of programmers, who were making decisions about hiring, testing, team structure and tools with almost no evidence. He also hoped to interest psychologists, inviting them into a field where real questions were waiting. The book is written in a light, conversational voice, full of short stories from programming shops, and it rarely uses technical language from psychology without explaining it.
Weinberg was careful about the status of what he offered. He did not claim to present a finished science. Much of the book is observation, anecdote and reasoning from experience, with some small studies of his own and his students. He says more than once that his claims are hypotheses for others to test. That modesty is part of the book's method, and it is one reason it has lasted: it reads as an invitation to look, not as a set of laws.
The central question can be stated simply. Why do some programmers, teams and organisations produce good programs while others, with the same machines and languages, produce bad ones? Weinberg's answer, built up across the book, is that most of the difference lies in human factors that the field had chosen not to see: how people react to criticism, how groups share knowledge, what goals they are told to pursue, how they are measured, and how their tools fit or fight the way minds work.
In 1998 Dorset House published a Silver Anniversary edition. Weinberg left the original text in place and added a short commentary after each chapter, looking back from a quarter of a century later. These notes are worth reading on their own. They show which predictions he got right, which he got wrong, and which problems had not changed at all despite enormous changes in hardware and languages.
It is worth pausing on how strange the book's starting point was at the time. Programming was barely recognised as a profession. Universities were only beginning to offer computer science degrees, and many programmers came from mathematics, engineering, accounting or clerical work. Managers who had never written a program were responsible for large groups of people who did, and they borrowed their methods from factories and offices. Weinberg saw that these borrowed methods fitted badly. Programming was intellectual work with a high error rate and a heavy dependence on communication, and it needed its own understanding of people.
The book's influence came less from any single finding than from the permission it gave. After it, a programmer could talk about fear of review, or a manager could talk about the cost of breaking up an informal network, and point to a serious book that treated these as real engineering concerns. Many later practices that now seem obvious were first argued for in this setting, before anyone had evidence that they would pay.
The author
Gerald Marvin Weinberg was born in 1933 in Chicago and died in 2018. He studied physics and mathematics and later earned a doctorate in communication sciences from the University of Michigan. In the late 1950s he joined IBM, where he worked on software for Project Mercury, the first American program to put people into orbit. The tracking and computing systems for those flights had to be right, and this early exposure to programs where mistakes could kill people shaped his later views on reviews, testing and quality.
At IBM and afterward he moved between practice and teaching. He trained programmers, wrote some of the early textbooks on particular programming languages, and became a consultant to many organisations. Over a long career he wrote dozens of books. Among the best known are An Introduction to General Systems Thinking, which treats systems thinking as a general way of reasoning; Are Your Lights On?, written with Donald Gause, about how to work out what a problem really is; The Secrets of Consulting; Becoming a Technical Leader; Exploring Requirements, also with Gause; and a four-volume series called Quality Software Management. Late in life he also wrote novels and a book on his own method of writing.
Several threads run through all of this work. One is systems thinking: the habit of seeing any result as the product of many interacting parts, including people and their feelings, rather than as the output of one cause. Another is respect for observation over doctrine. Weinberg disliked fashionable methods sold as cures, and he kept asking what actually happens in a given shop. A third is a steady interest in the emotional side of technical work: fear, shame, defensiveness, and the way these quietly govern what engineers do and say.
With Daniel Freedman he also wrote a handbook on walkthroughs, inspections and technical reviews, which developed in practical detail an idea first set out in The Psychology of Computer Programming. Later, with others, he ran workshops on problem solving and leadership that drew on the family therapist Virginia Satir, whose models of communication and change he admired. All this grows from the same root as this book. The 1971 volume is where he first stated in full that the programmer, not the machine, was the right object of study.
It helps to read the book knowing that its author was a working programmer and manager first, and a scholar second. His stories come from real rooms with real deadlines. His sympathy lies with the people doing the work, and his sharpest criticism is aimed at managers and institutions that treat those people as interchangeable parts.
The shape of the argument
The book has four parts. The first treats programming as human performance and asks what a good program is and how we could study programmers at all. The second treats programming as a social activity, looking at groups, teams and projects. The third treats programming as an individual activity, looking at personality, intelligence, motivation, training and experience. The fourth turns to programming tools, especially languages, and asks how they serve or obstruct the people using them.
The order is deliberate. Weinberg begins by unsettling the idea that we already know what we want from programmers. If we cannot say what a good program is, we cannot say who is a good programmer, and every hiring test and productivity measure rests on sand. Only after he has made this point does he widen the view to the group, then narrow it to the person, then look at the instruments people use. The movement is from the product, to the social setting, to the individual, to the tools, and each stage reflects back on the others.
The argument does not proceed by proof. It proceeds by accumulation. Each chapter offers a few stories, a few observations, sometimes a small experiment, and a set of plain conclusions with questions for further study. Many chapters end with lists of questions for managers and for programmers. The effect is cumulative: by the end the reader has seen the same pattern from many angles. Technical outcomes are produced by people, people are shaped by groups and incentives, and anyone who ignores this will misread why projects succeed or fail.
Weinberg also has a habit of turning conventional wisdom upside down. He treats things that managers saw as waste, such as programmers chatting by a coffee machine, as essential channels of knowledge. He treats things they saw as rigour, such as simple counts of lines or speed, as sources of distortion. Much of the book's force comes from these reversals, each backed by a concrete case.
A reader should not expect a systematic treatise. The tone is relaxed, sometimes playful, and the chapters vary in depth. What holds it together is the steady question that runs underneath: if we take seriously that programs are made by human beings, what changes in how we build, manage and judge them?
A good program is a human artefact
The first key idea is that there is no single measure of a good program. Weinberg lists several qualities people want: that it works to specification, that it is delivered on time, that it is efficient, that it can be changed and adapted, that it can be understood by others. These goals pull against each other. A program tuned for speed may be hard to read. A program delivered fast may be fragile. A program that meets a narrow specification may be useless if the specification was wrong.
From this he draws an uncomfortable conclusion. When someone praises a program as good, they are making a judgement relative to goals, and those goals are often unstated. Two people can look at the same code and disagree sharply about its quality because they value different things. The disagreement is not technical; it is about purpose. Until the purpose is made explicit, arguments about quality go in circles.
An everyday analogy helps. Ask which is the better vehicle, a bicycle or a lorry. The question has no answer until you say whether you want to carry bricks or ride through a narrow lane. Programs are the same. Yet in 1971 programmers were often ranked by people who never stated which kind of good they meant, and who then blamed the programmer when the product suited one goal and not another.
The idea also changes who counts as a reader of code. Weinberg stresses that programs are read far more often than they are written. Maintenance programmers, testers, users who must adapt a routine, and the original author months later all read the text. A program, on this view, is a document as well as a machine instruction. Its clarity to human readers is part of its quality, and in long-lived systems it may be the largest part.
This is often confused with a simple plea for readable code. It is broader than that. Weinberg is saying that the whole judgement of software quality is human and social. Even correctness depends on what people agreed the program should do, and that agreement is fragile. The consequence is practical: before measuring or rewarding anyone, make the goals visible, and expect that changing them will change the work.
Egoless programming
The idea for which the book is most famous is egoless programming. Weinberg observed that programmers tend to treat their code as an extension of themselves. A flaw in the program feels like a flaw in the person. As a result, programmers hide their work until it is finished, resist having others read it, and react to found errors with embarrassment or defensiveness. Errors survive because their authors are, without meaning to, protecting them.
The proposed remedy is to separate the person from the product. In a team that practises egoless programming, everyone expects their code to contain errors, and everyone expects others to read it. Finding a bug in someone else's code is a service, not an attack, and having one found in your own is ordinary, not shameful. Programs become the property of the group, open to any member to read and improve. The social norm shifts from proving one's competence to producing correct work together.
An analogy from writing makes this concrete. A writer who shows drafts to no one, then publishes, will carry every blind spot into print. A writer who hands drafts to a trusted editor, and treats the red marks as help, will publish fewer errors. The difference is not talent. It is a habit of exposure, supported by a setting where exposure is safe. Weinberg argued that programming needed the same habit and the same safety.
Several things follow. Code reading becomes routine, which led in later decades to formal inspections, walkthroughs and the code review that is now standard in most teams. Knowledge spreads, because more than one person understands each part of the system. The team becomes less vulnerable when someone leaves. And the programmer's own learning speeds up, since every review is a lesson.
Egoless programming is often misread as asking programmers to stop caring about their work. That is not the point. Weinberg wanted people to care intensely about the quality of the product while caring less about how errors reflect on their status. Pride moves from the code as personal possession to the team's shared result. Another misreading treats it as a technique that can be imposed by rule. It cannot. It depends on trust, on managers who do not punish those whose errors are found, and on a culture that has to be built and kept. A review process run in a climate of blame will produce the opposite effect: people will hide more, not less.
The idea also has a limit worth noting. Some later writers objected that removing ego entirely is neither possible nor desirable, since personal investment drives craft. Weinberg himself, in his anniversary notes, acknowledged that the term had been misunderstood. The useful core survives the objection: whatever pride a programmer has, it should not stand between the code and the eyes of others.
The team, the project and the organisation
The second part of the book insists that programming is done in groups even when one person types. The programmer depends on others for specifications, for tools, for knowledge of the system, for testing and for help when stuck. The group's structure and habits therefore decide much of what any individual can achieve.
Weinberg draws a useful distinction between formal and informal structure. The formal structure is the organisation chart: who reports to whom, who is assigned which module. The informal structure is the network through which knowledge actually moves: who asks whom when stuck, where people meet, who knows the history of a strange piece of code. Managers usually see only the first. Programs depend heavily on the second.
His best-remembered illustration involves a shared vending machine area where programmers gathered and talked. To a manager it looked like idleness, and in his story the machines were removed. The effect, as he tells it, was that questions which had been settled in a few minutes of casual talk now went unanswered or turned into formal requests, and work slowed. Whatever the exact details, the lesson is clear and has been confirmed many times since: informal contact is a channel of technical knowledge, and cutting it has a cost that does not appear on any budget line.
He also discusses how teams are led and shaped. He was interested in teams where leadership moves to whoever has the relevant skill for the task at hand, rather than resting permanently in one person. Such teams, he argued, use their members' strengths better and suit the egoless style, though they require maturity and can struggle under pressure. He compared this with more hierarchical arrangements and noted that each structure has costs. The important claim is that team structure is a design choice with technical consequences, not merely an administrative detail.
Projects, too, have life cycles that affect people. Early stages reward exploration; late stages reward discipline and finishing. A team that does not notice the shift may keep exploring when it should be closing, or freeze its design too early. Weinberg also pays attention to what happens when a project is in trouble: how pressure leads to shortcuts, how shortcuts lead to more errors, and how managers often respond in ways that deepen the hole.
What this idea is not: it is not a claim that individuals do not matter, or that any group of people will produce good work if the structure is right. It is a claim that the same individuals will do better or worse work depending on the setting. Where it leads is to a whole later literature on teams, from studies of office layout to modern writing on psychological safety, all of which treat the environment as part of the engineering problem.
Goals shape the product
One of the most practical ideas in the book concerns objectives. Weinberg reports on a small study in which programming teams were given the same task but told to aim for different goals: one to minimise the program's size, another to finish quickly, another to produce clear output, another to make the code readable, and so on. The result, in broad terms, was that each team tended to excel on the goal it was given and to do relatively poorly on the others.
The lesson is that programmers are responsive. They try to do what they are asked. If the stated goal is speed of delivery, they will deliver quickly and the code will be harder to maintain. If the goal is memory efficiency, they will save memory and perhaps take longer. This is not a failing; it is competence. But it means that a manager who states one goal and then judges by another will always be disappointed, and a manager who states no goal will get whatever goal each programmer privately chose.
Consider a familiar modern case. A team is told that the number of features shipped per quarter matters most. Features pour out. A year later the system is slow and full of half-finished paths, and leadership complains about quality. The team did exactly what it was rewarded for. Weinberg's study gives a clean small-scale version of this pattern, and it explains why so many quality problems are, at root, communication problems about purpose.
This idea connects back to the first. Since a good program is good relative to goals, and since people optimise toward stated goals, the act of stating goals is one of the most powerful levers a manager has. It is also one of the most neglected. Weinberg recommends making objectives explicit, ranking them when they conflict, and recognising that each choice gives up something.
It is easy to confuse this with a call for more targets and metrics. The point is subtler. Targets reshape behaviour, and a crude target reshapes it crudely. The economist's later warning that a measure which becomes a target ceases to be a good measure fits well beside Weinberg's finding. Where the idea leads is to careful design of goals, honest conversation about trade-offs, and suspicion of any single number used to steer a team.
Measuring programmers and the trouble with tests
In the 1960s many organisations hired programmers using aptitude tests, often multiple-choice puzzles thought to predict programming ability. Weinberg was sceptical. He argued that these tests measured narrow skills, such as speed on small logic problems, which bore an uncertain relation to the actual work of building and maintaining large programs over months. The tests might also screen out people with valuable qualities, such as patience, care, or the ability to work well with others, that no puzzle could detect.
The same scepticism applies to productivity measures. Counting lines of code, for example, rewards verbosity and punishes the programmer who solves a problem in a few lines or removes unneeded code. Measuring speed of completion ignores the cost of errors found later. Measuring errors found ignores the programmer who writes fewer errors in the first place. Each simple measure captures one face of the work and distorts the rest.
Weinberg does not deny that programmers differ. He accepts, as observers of the time widely reported, that differences between individuals can be very large. His point is that we do not know well how to see those differences, and that crude instruments do more harm than none. A manager who trusts a bad number may promote the wrong people, discourage the right ones, and teach the whole team to chase the number.
A comparison with medicine is useful. A thermometer tells you something real, but no doctor would rank patients' health by temperature alone. Programming had adopted its thermometers and was ranking people by them. Weinberg's alternative was richer observation: looking at actual work, asking colleagues, watching how people handle problems over time. This is slower and less tidy, but it measures the thing that matters.
This idea is sometimes taken to mean that programming cannot be measured at all. Weinberg's position is narrower. Measurement should follow understanding, not replace it, and any measure should be checked against what it does to behaviour. His later work on software quality management built a more detailed approach to measurement on exactly this foundation.
The individual programmer
The third part of the book looks at the person at the keyboard. Weinberg considers personality, intelligence, motivation, training and experience in turn, and in each case he asks what the evidence really shows. His recurring answer is that the evidence is thin and that common beliefs are often wrong or overstated.
On personality, he observes that programming has room for many kinds of people. Some work best alone, some in constant conversation. Some are drawn to precise detail, some to large design. He is wary of attempts to define a single programmer personality and select for it. A team usually benefits from variety, and a trait that looks like a weakness in one task may be a strength in another. Stubbornness that annoys in a meeting may be what finds a bug that others gave up on.
On intelligence, he accepts that programming demands certain mental abilities, but argues that raw intelligence is not the main limit for most working programmers. Habits, knowledge, and the ability to manage one's own attention and mistakes often matter more. He gives attention to the psychology of error: how people tend to see what they expect, how they overlook errors in their own text, and why a second pair of eyes catches what the author cannot. This links the individual chapters back to egoless programming.
On motivation, he notes that programmers are often driven by the interest of the problem and the pleasure of making something work. Organisations can feed this or kill it. Assigning dull work without explanation, removing the sense of ownership over a result, or punishing honest reports of trouble all drain motivation. He also notes the risk of motivation that is too narrow, such as a programmer who loves clever tricks at the cost of the team's ability to maintain the code.
On training and experience, he questions the assumption that years in the job equal skill. Some people have ten years of experience; others have one year of experience ten times. Learning depends on reflection and on exposure to others' work, which again points to code reading and open teams. He was also interested in how programmers learn new languages and how prior habits help or hinder.
The common thread is respect for the individual as complex. Weinberg's practical advice is to look at real people doing real work, to expect variety, and to build settings in which different strengths can be used. He warns against a manager's urge to find one formula for a good programmer and hire only to it.
Tools built for minds
The fourth part turns to programming languages and other tools. Weinberg's question is psychological: given what we know about how people perceive, remember and make mistakes, what makes a language easier or harder to use well? A language is not just a notation for the machine. It is an environment in which a human thinks, and its design affects what errors are likely and what ideas are easy to express.
He discusses features of language design in these terms. Consistency matters, because a rule that holds almost everywhere but has exceptions invites errors at exactly those exceptions. Redundancy can help, because a language that lets the compiler catch a mistyped name or mismatched type protects the programmer from a whole class of slips. Compactness has value but also costs, since dense notation can be hard to read. The way a language groups statements, names things and handles exceptions all affect the reader's ability to understand a program at a glance.
An analogy from road design is helpful. A good road does not depend on drivers never making mistakes. It uses clear signs, consistent rules, and barriers where errors are dangerous. A good programming language does the same: it makes the right thing easy, the wrong thing visible, and the common slip detectable. Weinberg was arguing for what would later be called human factors or usability in programming tools, long before those terms were common in software.
He also looks at the wider environment: operating systems, debugging aids, documentation, and the whole setup in which programs are written and run. In the batch era, the slow loop between writing and testing shaped how programmers worked, encouraging careful desk checking but also long periods of waiting. Weinberg saw that the tempo of feedback affects thinking, a point that became central once interactive systems arrived.
This idea is not a claim that one language is best for everyone. It is a claim that languages and tools should be judged by evidence about human use. Where it leads is to modern work on developer experience, on type systems as error-catching aids, on error messages written for people, and on empirical studies of how programmers actually use their tools.
Observation as method
Underneath every topic in the book is a methodological idea: programming should be studied by watching it. Weinberg drew on anthropology and psychology for the attitude that one learns about a practice by observing people engaged in it, listening to them, and noticing what they take for granted. He contrasts this with introspection, where programmers simply report what they believe about their own work, and with doctrine, where managers apply rules without checking what the rules do.
He is frank about the difficulties. Observing changes behaviour. Small studies may not generalise. Programmers in one shop may differ from those in another. Experiments are expensive and hard to control. He describes several kinds of study, from simple observation to controlled experiment, and notes their strengths and weaknesses. His own evidence is mostly of the lighter kinds, and he says so.
Why does this matter for a reader today? Because the software field still swings between fashions with little evidence. Methods are adopted because a famous company uses them, tools because they are new, practices because a conference speaker praised them. Weinberg's habit of asking what actually happens, in this room, with these people, is a defence against that. It is also a model for any manager: before changing something, look closely at how the work is done now.
The idea is sometimes confused with mere anecdote. Weinberg used stories, but as data points and as prompts for study, not as proof. He wanted others to test his claims. Later research in empirical software engineering did exactly that, confirming some of his observations, complicating others, and building methods far more rigorous than his. The book's role was to open the door.
A small habit follows for any reader. When someone makes a confident claim about how programmers work, ask what kind of evidence lies behind it: a single story, a survey, an experiment, or long observation across many teams. Each kind has value, and none is complete alone.
There is also a moral side to this method. To observe people carefully is to take them seriously. A manager who watches how programmers actually solve problems is less likely to treat them as units of output. The respect in Weinberg's method is inseparable from the respect in his conclusions.
Error, feedback and learning
A theme that runs across the parts deserves its own treatment: the place of error in programming. Weinberg takes it as given that programmers will make mistakes, often many. The question is not how to prevent all error, which is impossible, but how to find errors early, cheaply and without damaging the people involved.
He notes that people are poor at finding their own errors because they read what they meant to write rather than what they wrote. A misspelled variable name looks correct to its author, who sees the intended word. A logic error in a familiar routine passes unnoticed because the author's mind supplies the right logic. This is ordinary human perception, not carelessness. It explains why review by others works and why it should be routine.
Feedback speed matters too. When the loop between making an error and discovering it is long, errors pile up, and each becomes harder to trace. When the loop is short, people learn faster and correct more cheaply. In 1971 the loop was often slow. Today many tools give feedback in seconds, but the principle holds for larger loops, such as the time between writing a feature and hearing from its users.
Finally, Weinberg links error to emotion. Fear of being blamed slows the reporting of errors, and errors that are hidden grow. A culture that treats reported errors as useful information, rather than as evidence against a person, finds and fixes more of them. This is the same insight that later shaped blameless post-incident reviews in operations work. The thread from egoless programming to that modern practice is direct.
One more lesson sits inside this chapter. Errors are information about the system as well as about the code. A cluster of similar bugs may point to a confusing interface, a misleading document or a gap in training. A team that only fixes each bug in turn misses this information. A team that asks why a kind of error keeps appearing can change the conditions that produce it, which is far cheaper than catching each instance one by one.
Pressure, deadlines and the troubled project
Weinberg returns often to what happens to people when a project falls behind. His observations are plain and familiar to anyone who has worked on software. Under pressure, programmers cut the work that does not show: reviews, testing, careful naming, notes for the next reader. The cuts feel like savings because their cost arrives later. Meanwhile managers, anxious about the schedule, add reporting, meetings and sometimes people, each of which takes attention away from the work.
The pattern is a loop. Shortcuts produce errors. Errors produce rework. Rework pushes the schedule further back. The slipping schedule increases pressure, and pressure produces more shortcuts. Each step makes sense locally and the whole makes things worse. Weinberg's systems thinking is visible here: he treats the late project not as a failure of individual effort but as a system whose feedback has turned against itself.
A household comparison makes the shape clear. Someone short of money skips a car service to save cash this month. The car breaks down, the repair costs more than the service, and the person is now shorter of money than before, and more tempted to skip the next service. No single choice was foolish. The trap lies in the structure. Software projects fall into the same trap with time instead of money.
Weinberg also notes the emotional side of trouble. People on a failing project feel shame and fear, and these feelings make them less likely to report bad news early. Status reports become optimistic, problems are hidden until they cannot be, and the organisation learns about trouble too late to respond well. The cure he points toward is the same as for egoless programming: a climate in which bad news can be spoken without punishment, so that it arrives while something can still be done.
This idea is easily confused with a plea for more generous deadlines. Deadlines are real and often justified. The point is that the way an organisation responds to pressure decides whether the pressure produces focus or collapse. Protecting reviews and testing under pressure, telling the truth about status, and cutting scope rather than quality are choices that break the loop. Where the idea leads is to later work on project dynamics, including Brooks's account of why adding people to a late project makes it later, and to modern attention to sustainable pace.
Talk, documents and shared understanding
Because programming is social, communication is part of the technical work. Weinberg pays attention to the many forms it takes: specifications, comments, manuals, memos, meetings, and the unrecorded talk of colleagues. Each carries knowledge about the program, and each can fail in its own way.
Specifications fail when the people who write them and the people who read them understand words differently. A requirement that seems clear to a customer may hide assumptions the programmer does not share. Weinberg, who later wrote a whole book on exploring requirements, already saw in 1971 that many program faults are really faults in this exchange. The code does exactly what the programmer understood, and the programmer understood something other than what was meant.
Documentation fails when it drifts from the program it describes. A comment written for the first version may be wrong by the third, and a wrong comment is worse than none because readers trust it. Weinberg's attention to the reader of programs leads him to value documents that are kept close to the code and maintained along with it, and to doubt documents produced only because a procedure demands them.
Talk fails when it is cut off or when it carries only status, not substance. Meetings that report progress without discussing problems use time without spreading knowledge. The informal conversations he defends, by the vending machine or at a colleague's desk, matter precisely because they carry substance: how a module really behaves, why a strange decision was made, which approach was tried and failed.
The practical lesson is that a manager who wants better programs should look at how knowledge moves between people and should treat that flow as part of the system to be designed. This is not the same as asking for more documents or more meetings. It means asking, for each important piece of knowledge, who has it, who needs it, and by what path it will reach them. Where this leads is to later ideas about shared code ownership, pair programming and the deliberate design of team communication, several of which appear in other books on this shelf.
Trust, ownership and the manager's role
Many of the book's ideas meet in one figure: the manager. Weinberg does not write a management manual, but almost every chapter has implications for those who lead programmers. The manager sets goals, chooses measures, shapes team structure, decides how errors are treated and controls much of the physical and social environment. In each of these, the manager can support good work or quietly undermine it.
The central resource a manager controls, on Weinberg's account, is trust. Programmers who trust that an honest report of trouble will not be punished will report trouble early. Programmers who trust that their colleagues' review is meant to help will open their code to review. Programmers who trust that the stated goal is the real one will aim at it. When trust is missing, every one of these mechanisms fails, and no process can replace it.
This changes how one should think about ownership. In an egoless team the code belongs to the group, but responsibility does not vanish. Someone must still answer for each part, know its history and care for its health. The difference is that answering for a part no longer means guarding it. A good manager makes clear who is responsible while making equally clear that responsibility includes inviting others in. Ownership becomes stewardship rather than possession.
A comparison from medicine fits. A senior surgeon who never accepts questions from the team is more dangerous than one who invites them, however skilled. Hospitals that learned this built routines in which anyone in the room may stop a procedure if something looks wrong. The surgeon remains responsible, but authority no longer blocks information. Weinberg wanted programming teams to have the same property, and he saw that only managers could create it.
The idea is often reduced to a slogan about trusting your people. It is more demanding than that. Trust has to be earned by consistent behaviour over time, especially in moments of failure. One public punishment for an honest mistake can undo a year of encouragement. Where the idea leads is to the large modern literature on leadership in technical teams, and to Weinberg's own later book on becoming a technical leader, which develops these themes at length.
Learning, practice and growth
Weinberg treats learning as something that happens on the job far more than in the classroom. A programmer learns from reading other people's code, from having their own read, from debugging, from failures that are examined rather than buried. The settings he recommends throughout the book are, among other things, settings for learning.
He contrasts this with the view that training is a separate event: a course taken, a certificate earned, after which the programmer is equipped. Courses have a place, especially for new languages and tools. But the skills that separate strong programmers from weak ones, such as judgement about design, a feel for where errors hide, and the ability to explain a program to someone else, grow mainly through practice with feedback.
This has consequences for how teams are built. A team in which beginners work beside experienced people, read their code and have their own code read, will develop its members faster than a team where everyone works alone. A team in which mistakes are examined openly turns each failure into shared knowledge. A team that never looks back at finished work wastes its experience.
For the individual reader, the lesson is to seek out exposure. Read code written by people better than you. Ask for review even when it is not required. Keep a note of the errors you make and look for patterns. None of this is glamorous, and all of it compounds over years. Weinberg's remark about experience, that some people repeat the same year many times, is a warning against working without reflection.
Two books in one: the anniversary commentary
Readers of the 1998 edition get something unusual: an author arguing with his younger self. After each original chapter Weinberg added a short reflection. These notes are frank. Where he thinks he was right, he says so and adds what later experience confirmed. Where he thinks he was wrong or naive, he says that too.
Several patterns stand out in the notes, without needing to list them one by one. Hardware and languages had changed beyond what anyone in 1971 imagined, yet the human problems were mostly the same. Programmers still hid their work, managers still measured the wrong things, and teams still broke down under pressure in the same ways. Weinberg is struck, and a little saddened, by how slowly the human lessons had spread compared with the technical ones.
He also reflects on how the idea of egoless programming was received. It was widely quoted and often misunderstood, sometimes taken as a demand that programmers have no pride, sometimes turned into review processes that were anything but egoless. His comments clarify what he meant: not the absence of self, but the absence of defensiveness about one's work.
The commentary is a lesson in intellectual honesty. It shows a writer revisiting claims a generation later, keeping what held and letting go of what did not. A reader can use it as a model. When you return to your own beliefs about how software should be built, ask which have been confirmed by what you have seen, and which you hold mainly because you have always held them.
The tradition around it
When the book appeared, writing on programming was dominated by technical concerns: algorithms, languages, machine efficiency. There was some earlier attention to human factors in computing, especially in the design of operator consoles and in studies of how people learned to program, but nothing that treated programming as a whole human and social practice. Weinberg drew on wider sources, including industrial psychology, group dynamics and anthropology, and brought them to bear on a new kind of work.
Its closest contemporary was Frederick Brooks's The Mythical Man-Month, which followed in 1975 and came from Brooks's experience managing a large IBM operating system project. Brooks also focused on people, especially on why adding staff to a late project tends to make it later. The two books are often read together. Brooks writes from the top, about large projects and their management. Weinberg writes from closer to the ground, about individuals and small groups.
Within this shelf, the most direct descendant is Peopleware by Tom DeMarco and Timothy Lister, which argues that the main problems of software projects are sociological rather than technological. It extends Weinberg's attention to the working environment, team formation and the ways management can damage productive teams. Extreme Programming Explained by Kent Beck turned several of his themes into practice: shared ownership of code, continuous review through pair programming, and attention to sustainable pace and team communication.
The Elements of Programming Style by Brian Kernighan and P. J. Plauger, published three years later, shares the view that programs are written for human readers, though it works at the level of individual lines and routines. Code Complete by Steve McConnell gathers much later evidence on construction practices, including inspections, and can be read as an empirical follow-up to some of Weinberg's claims. The Cathedral and the Bazaar by Eric S. Raymond describes open-source development, where code is open to many reviewers, as a large-scale version of egoless programming, with the famous claim that many eyes make bugs shallow.
Site Reliability Engineering, edited by Betsy Beyer and colleagues, describes blameless postmortems, which apply to operations the same separation of person from error that Weinberg proposed for code. Working Effectively with Legacy Code by Michael Feathers and Refactoring by Martin Fowler both treat code as something many people must read and change over time. A Philosophy of Software Design by John Ousterhout, which judges designs by how much cognitive load they place on readers, is a late echo of Weinberg's chapters on tools built for minds.
Beyond this shelf, the field of empirical software engineering, and research on developer experience and on psychological safety in teams, all carry forward questions he raised. The book is a starting point rather than a summary of what is now known.
Questions and criticisms
The most obvious limit is evidence. Much of the book rests on Weinberg's observations and stories, and on small studies with few subjects. Later researchers criticised the field as a whole for relying on such evidence, and some of his claims have proved hard to replicate or have needed qualification. A reader should treat the book as a source of well-informed hypotheses rather than settled findings. Weinberg would have agreed.
Some of the technical setting has aged. Batch processing, punched cards and the specific languages discussed are history. Readers today must translate examples into modern terms. Usually this is easy, since the human patterns are the same. Sometimes it is harder, as when a discussion depends on features of languages few now use. The anniversary commentary helps with this translation.
Egoless programming has drawn criticism of its own. Some argue that ownership and personal pride are healthy, and that code with no owner may be code no one cares for. Others note that in practice reviews can become arenas of status competition rather than places of shared improvement, the opposite of what Weinberg intended. These are fair points. The answer most practitioners now give is a balance: clear responsibility for parts of the system, combined with open review and a culture where errors are not shameful.
The book's picture of the programmer reflects its time. The examples and assumptions mostly describe a narrow population of programmers in large Western organisations. Questions of gender, culture and background in programming teams, which later research took up, are largely absent. Weinberg's general respect for variety among people points in a good direction, but the book does not address these issues directly.
Some of his scepticism about aptitude testing has been borne out; such tests fell out of favour, though their successors, such as puzzle interviews, have drawn similar criticism. His warnings about simple productivity measures have been confirmed again and again, and the same mistakes keep being made, which suggests the warnings are needed still.
What has held up best is the core stance: software is made by people, in groups, under incentives, using tools that suit or strain their minds. Every major movement in software practice since, from structured reviews to agile methods to blameless operations, has rediscovered some part of this. The book's lasting value lies less in any single claim than in having made the human side of programming a legitimate subject.
Why it is on this shelf
This shelf gathers books that explain how systems actually work, whether the system is a philosophy, a sky chart, a market or a program. Weinberg's book belongs here because it explains a system that most technical books leave out: the people who make the software. It treats them with the same care an engineer gives to a machine, without forgetting that they are not machines.
For a reader who comes to this shelf from Vedanta, the theme of ego will be familiar. The book's practical observation, that identification with one's work blinds one to its flaws, has a quiet kinship with older teachings on the limits of the separate self. We do not press the parallel. We only note that the insight is old, and that Weinberg found it again in a programming shop.
For a reader from economics, the chapters on goals and measurement are a small case study in incentives: people respond to what is rewarded, and crude rewards produce crude outcomes. For a reader from science, the book is a lesson in method, showing both the value and the limits of observation as a way to study a practice. For a reader building technology today, it is a reminder that the hardest bugs are often in the organisation.
We keep it next to Peopleware and The Elements of Programming Style because together they cover the human side of software at three scales: the line of code, the person, and the team. It is short enough to read in a week and rich enough to return to whenever a project goes wrong for reasons that no debugger can find.
There is also a reason of temperament. The book is kind to its subjects without being soft. It is honest about human weakness and generous about human variety. That combination is rare in technical writing, and a shelf that aims to teach how systems work should also show how to look at the people inside them.
How to read it
Get the Silver Anniversary edition if you can. The added commentary after each chapter doubles the book's value, letting you read the original argument and then the author's own judgement on it twenty-five years later.
Start with the part on programming as a social activity. It contains the material on egoless programming, teams and projects, and it is where the book is strongest and most surprising. Read it at a steady pace, one chapter a sitting, and after each chapter write down one example from your own experience that fits or contradicts what Weinberg says.
Then go back to the opening part on programming as human performance. Its discussion of what makes a good program, and of how to study programmers, will now read as the frame for what you have already seen. Work through the goals study with a pencil: list the objectives a team you know is actually pursuing, and compare them with the objectives it is told to pursue.
Read the part on the individual programmer next, more quickly. Its value lies in the cautions it raises about personality, intelligence and experience. On a first pass you can skim the sections where the detail depends on the testing practices of the 1960s.
Read the part on tools last. Here translation is needed, since the languages discussed are mostly historical. Ask of each point what modern feature it corresponds to: a type checker, a linter, an editor, an error message. Skip passages that depend on obscure syntax and keep the principles.
Do not hurry the end-of-chapter questions. They are the most practical part of the book and can be used as a checklist for any team you join.
From this shelf, read next Peopleware by DeMarco and Lister, which carries the social argument into the office and the project. Then The Elements of Programming Style by Kernighan and Plauger, for the same respect for human readers at the level of code. If you manage people, follow with Extreme Programming Explained by Kent Beck to see how these ideas became practice, and with Site Reliability Engineering for the modern form of blameless review.
Questions to carry
- When I call a program good, which goals am I silently assuming, and would my colleagues assume the same ones?
- What would change if I treated every error found in my code as a gift rather than a judgement?
- Where in my team does knowledge actually move, and what would happen if that channel were cut?
- What goal is my team really optimising for, as shown by what gets praised, and how does it differ from the stated goal?
- Which number do we use to judge work, and what behaviour does that number reward that we do not want?
- Who reads my code after I write it, and what do they need from it?
- Is our review process a place of learning or a place of status, and how could we tell?
- What kinds of error does my main language make easy, and what does it catch for me?
- How long is the loop between making a mistake and discovering it, and how could it be shortened?
- Do I have ten years of experience or one year ten times, and what would reflection add?
- Which trait in a colleague annoys me but may be exactly what the team needs for some tasks?
- Before I change how a team works, have I watched how it works now?
- Which of Weinberg's claims have I seen confirmed, and which has my own experience contradicted?
Words to know
- Egoless programming: a team practice in which programmers separate their self-worth from their code, invite others to read it, and treat found errors as normal and useful.
- Code review: the reading of a program by someone other than its author in order to find errors and improve it; a practice that grew directly from ideas in this book.
- Walkthrough: an informal review in which the author leads others through a program step by step to expose problems.
- Inspection: a more formal review with set roles, checklists and records, developed in the 1970s as a structured form of code reading.
- Batch processing: the older mode of computing in which jobs were submitted, queued and run without interaction, so that feedback to the programmer was slow.
- Informal structure: the actual network of contact and help within a group, as opposed to the official organisation chart.
- Formal structure: the official arrangement of roles, reporting lines and assignments in an organisation.
- Objectives: the goals a program or team is meant to achieve, such as speed, size, clarity or delivery date, which often conflict with one another.
- Aptitude test: a test meant to predict ability at a job; in programming, often a set of logic puzzles of uncertain value.
- Lines of code: a simple count of program text used as a productivity measure, criticised because it rewards length rather than value.
- Maintenance: the work of changing, fixing and extending a program after its first release, which usually consumes more effort than writing it.
- Human factors: the study of how people interact with tools and systems, used to design them so that they fit human abilities and limits.
- Redundancy (in a language): features that let errors be detected, such as declaring variables before use, so that a slip produces a warning rather than a silent fault.
- Systems thinking: a way of reasoning that sees results as arising from many interacting parts, including people, rather than from single causes.
- Empirical software engineering: the later research field that studies software development through observation and experiment.
- Blameless postmortem: a review of a failure that seeks causes in systems and processes rather than fault in individuals.
- Psychological safety: a team climate in which people can admit mistakes and raise concerns without fear of punishment.
- Silver Anniversary edition: the 1998 reissue of the book, with the original text and the author's later commentary after each chapter.
- Stewardship: responsibility for a part of a system understood as care for its health, open to others' help, rather than as exclusive possession.
A note on this edition
This is a study edition written for this shelf in our own words. It describes and discusses The Psychology of Computer Programming but does not reproduce it. The book itself is still in copyright. It is short, lively and worth reading whole, preferably in the Silver Anniversary edition, and it can be found through a library or a bookshop.