Why Bugs Happen Even With Good Engineers
Sandeep Varma
Sep 28, 2026
The last post in this series walked through why shipping a change is inherently risky, even with careful testing, gradual rollouts, and a rollback ready to go. That naturally raises a bigger, more uncomfortable question, one that comes up in almost every engineering organization sooner or later. If a team is genuinely skilled, careful, and experienced, why do bugs still happen at all?
The honest answer has very little to do with individual competence, and a lot to do with a profession that has already thought about this problem extremely carefully: commercial aviation.
Pilots Who Never Stop Using Checklists
Airline pilots are among the most rigorously trained professionals in the world. A commercial pilot has typically logged thousands of hours of flight time, passed extensive certification exams, and trained repeatedly for emergencies most people will never experience even once. By any reasonable measure, they are extraordinarily skilled at their job.
And yet, before every single flight, no matter how experienced the pilot or how routine the route, they still work through a physical checklist, out loud, item by item, confirming things they have almost certainly already done correctly a thousand times before. They do this not because their skill is in question, but because aviation, as an industry, learned something important the hard way: no matter how good someone is, the human brain is not built to reliably hold every detail of a complex system in mind at once, especially under time pressure, especially after doing the same task hundreds of times in a row. Skill reduces how often something is missed. It does not reduce that number to zero, and aviation has designed its entire safety culture around that honest acknowledgment rather than around the fantasy that sufficiently good pilots simply would not make mistakes.
Why Complexity, Not Carelessness, Is the Real Culprit
Software engineering has essentially the same relationship with mistakes, for essentially the same underlying reason. By this point in the series, you have seen just how many pieces make up even a fairly ordinary system: a frontend capturing what a user wants, a backend enforcing rules, a server actually running that code, data being repackaged and moved between multiple layers, the system potentially spread across many machines to handle load, each of those machines subject to the reliability questions we discussed a couple of posts back, and changes to any of it being deployed into a live system that never fully stops running.
Each one of those pieces, taken on its own, is genuinely understandable, which is exactly the point of this series so far. The difficulty is not any single piece. It is how many of them interact with each other simultaneously, and how many different combinations of real user behavior, real stored data, and real timing a system has to handle correctly. A feature might work perfectly for a user with a completely filled-out profile, and fail in some subtle way for a user who signed up years ago before a certain field even existed. A piece of logic might work correctly on its own, and behave unexpectedly only when combined with a specific, unusual sequence of actions a real person happened to take. No engineer sits down and deliberately writes code that handles the common case well and the unusual case badly. They simply cannot personally imagine and manually verify every single combination a complex, actively used system can produce, any more than a pilot can perfectly hold every detail of a modern aircraft's systems in their head without the checklist in front of them.
What Good Engineering Organizations Actually Optimize For
This is why mature engineering teams do not primarily try to solve the bug problem by simply hiring more careful people or asking existing engineers to "be more careful." That approach has roughly the same ceiling as asking a pilot to just try harder to remember every step without a checklist. Instead, good teams build layers of process specifically designed to catch what any single, skilled individual is bound to occasionally miss.
Automated tests function much like that pre-flight checklist, a set of specific checks that run the exact same way every single time, without depending on a tired engineer remembering to manually verify something at the end of a long day. Code review adds a second, independent set of eyes, much like the co-pilot in a cockpit whose job is partly to catch anything the pilot in control might miss, not because the pilot flying is assumed to be careless, but because a second, differently-focused perspective genuinely catches things a single person working alone tends to miss. The gradual rollouts and rollback strategies we covered in the previous post act as a safety net for the mistakes that still slip through everything before them, limiting how much damage an undetected problem can do before someone notices and reverts it.
None of these practices exist because engineers are assumed to be bad at their jobs. They exist for precisely the opposite reason, because even highly skilled people, working on genuinely complex systems, cannot be expected to catch everything through individual carefulness alone, and an organization that quietly assumes otherwise usually ends up with fewer safety nets and more painful surprises.
Learning From Mistakes Without Assigning Blame
Aviation has one more habit worth borrowing directly: after something goes wrong, the goal of the investigation is almost never to find the one person to blame. It is to understand exactly what combination of conditions allowed the mistake to happen, and to change the system, the checklist, the training, the equipment, so that same combination of conditions is far less likely to cause the same problem again. This is part of why aviation has become so remarkably safe over the decades, not because pilots got dramatically better as individuals, but because the entire system around them kept absorbing lessons from every incident and near-miss and quietly closing the gaps those incidents revealed.
Engineering teams that handle bugs and outages well tend to adopt this same posture. When something breaks, the useful question is rarely "who made this mistake." It is "what allowed this mistake to reach real users without anything catching it first," and then fixing that gap directly, whether that means adding a new automated check, adjusting how changes get rolled out, or improving how a particular kind of problem gets detected earlier next time. Blaming an individual engineer for a bug is a bit like blaming a single pilot for an industry-wide safety gap. It might feel satisfying in the moment, but it does nothing to prevent the next person from walking into the exact same gap.
Why This Should Change How You React to Bugs
If you work closely with an engineering team, the most useful shift this idea can offer is simply this: a bug reaching production is rarely a sign that someone was careless. It is usually a sign that a complex system, built from many interacting pieces, produced a combination of conditions nobody happened to test for in advance, the same way even a great pilot occasionally benefits from a checklist catching something they would have otherwise missed under pressure. The right response looks a lot more like asking what safety net could catch this next time, and a lot less like asking who should have known better.
This does not mean bugs are simply inevitable and nothing can be done about them. It means the real lever is rarely individual heroics. It is investment in the checklists, the second set of eyes, and the gradual, careful rollout practices that catch what any one person, however good, is bound to occasionally miss.
What Do You Think?
Has your team ever traced a bug back to its root cause and found that the real fix was a process change rather than "someone needs to be more careful"? I would love to hear what that gap turned out to be, and what changed afterward to help catch it earlier next time.
Enjoyed this? Get the next one by email
New posts on leading engineering teams, straight to your inbox.
Did you find this useful?
Comments
Loading comments...
to post a comment.
About the author

Sandeep Varma
Senior Engineering ManagerI write about leadership and software engineering from experience as a software engineer, product owner, and engineering manager, grounded in a Bachelor’s in Computer Science Engineering and an MBA in IT Strategy.
View full profile

