Preface

I came to Alfred Adler by accident, in a bookshop in Rio de Janeiro, a city I was only passing through. I was browsing the shelves with no intention of buying anything when a small book got my attention. I read it in three nights, which surprised me: it had been a long time since a book had kept me up past midnight, let alone three nights in a row. By the time I was back in the United States, I had bought the sequel, first online and then in print, and somewhere between the two I stopped reading Adler out of curiosity and started reading him because I was trying to understand something.

This needs some explaining, because nothing in my career pointed toward a Viennese psychiatrist who died in 1937. For twenty-five years I have asked one question: not just whether a software system works, but whether it deserves to be trusted. It is sometimes the unglamorous side of the field: we break systems on purpose to learn where they will break on their own. The question is about the gap between what a thing claims and what it really does, and I had never thought of it as a question about people.

Then a tool arrived that produced, in under a minute, work I had planned for an entire afternoon. What I want to say here is not what happened that day but how long it took me to notice what it had done to me. My first instinct was the engineer’s instinct: find the flaws. The flaws were real, and I found them quickly, but I spent the rest of that day working with it. That was days before I noticed the feeling that had been underneath the whole time, and longer before I accepted that the feeling was the point and that my field had no vocabulary for it. Reliability engineering can tell you how a system fails, but it has nothing to say about how the engineer feels when the system is better than he is, or what he should do next.

Adler’s central claim is simple to state and hard to accept. All of us begin life helpless, and everything we do afterward is, in some form, a response to that early sense of being less than we need to be. Not a flaw to be cured, but raw material. The question is never whether we feel inadequate next to something more capable than us, because of course we do. The question is what we do with the feeling: fuel for growth, or avoidance, defensiveness, quietly giving up.

The clearest example I know is my own classroom. I teach two courses in which students use AI to build software, and they produce almost opposite outcomes. In one, students hand a problem to the machine and take whatever comes back, and I am not convinced they learn much. In the other, they are pushed to question, test, and hold the machine accountable at every step, and the difference in what they walk away understanding is not small. Same tool, two entirely different relationships to the discomfort of not knowing whether the output is right. Adler described the mechanism a century before the tool existed!

Less comfortably, I think of myself and a decision I made some years back. I moved my career from Coimbra, one of the oldest universities in the world, in a city built on the idea that some things are worth doing slowly, to Charlotte, a young university in a city still deciding what to become. Staying would have been easier, but I chose not to. Adler’s second idea is that we are pulled forward by the goals we choose, not pushed by what happened to us. He called it fictional finalism. I did not know the term when I made the move. Looking back, it is exactly what I was reaching for, and it is the same thing I now ask of my students and of my profession.

I took the idea, half seriously, to the one audience I thought least likely to indulge it: a room of dependability and fault-tolerance researchers at a working-group meeting. These people spend their professional lives on failure modes and redundancy. I expected polite tolerance, but I got real questions, and conversations that ran past the slot. It turns out that people who understand failure better are exactly the right audience for a psychology built on how we respond to inadequacy.

The Almost-Right Machine

The title comes from a student, though the phrase is not new: every engineer has said it. He just put it where it belongs. In a graduate course on trustworthy software engineering, one team injected faults into their own AI-generated code to see which of their checks would catch them, and found something no check had been built for: code whose names, comments, and structure claimed three features while computing nothing at all. It was complete, fluent, and internally consistent, but it was also empty. Asked afterward what the course had taught him, the student wrote that ``AI is most dangerous when it is almost right.’’ The crashes and syntax errors are obvious. The hardest defects are the ones that look finished.

I have thought about that sentence more than about anything I have read in the technical literature recently, because it is true of more than code. The almost-right machine is a machine that does most of what you need well enough that you stop checking. It is the reason why the gap between claim and behavior, which my field has spent decades measuring, has become the central problem of a profession that used to worry mostly about whether things worked at all.

But the phrase goes the other way too, and that is why it names the book. The engineer’s response to the machine is also, usually, almost right. Dismissing the tool is almost right, because its flaws are real. Surrendering to it is almost right, because it is genuinely capable. Handing it our judgment is almost right, because it is fast and we are tired. Each of these is a reasonable position that looks finished, but it is not, and each of them is, in Adler’s terms, a way of resolving the feeling of inadequacy without growing. This book is about the difference between an answer that looks finished and one that is, for both the machine and in the person using it.

What this book is (and what it is not)

This book is about modern software engineering. Adler is the lens, not the subject. I tried to write it so that a reader who has never heard of him needs only one essay to get what they need, and so that a reader who knows him well finds his ideas used instead of explained.

It is not a psychology text. A few accessible books and a stack of Adler’s own writing do not make anyone an expert, and I should honestly say that I am still early in this. I expect some of what follows will look different to me a year from now. Where I have gone beyond what Adler wrote, I have tried to say so.

It is not an engineering manual either. There are no workflows, no prompting techniques, no recommended tools. The tools will change before this book is complete, and so will the workflows. What I do not think will change is the feeling of being a person whose skill has been made cheap by a machine, and the question of what to do with that feeling. That question was old when Adler wrote about it. This book is about it.

It is not an argument from evidence, and I want to be honest about that once, here, rather than in every chapter. The framework these essays draw on is theoretical. I have written a couple of academic papers about it, and the reviewers were right to note that it has not been tested. What I have instead is twenty-five years of watching systems fail, some years of watching students meet a machine that codes better than they do, and one career-changing move that I understood only afterward. Those are observations, not data. The study that would turn them into data is described at the end of the last essay, and I hope someone runs it, possibly me.

Finally, it is not a reassurance. I do not know whether the profession, as it currently exists, will survive, and I would not believe anyone who claimed it would. What I do believe is that the question of an engineer’s worth was never answerable by comparison to a colleague or to a machine, and that the machine has merely made that fact impossible to ignore. Adler’s answer is contribution: not how good am I, but who is this for. I have found that answer more useful with time, but also more difficult, and I have written this book to see whether it holds up for a profession that is being asked, quite suddenly, what it is for.

Why essays and how to read them

The form is borrowed, with gratitude, from Fred Brooks. The Mythical Man-Month is a set of essays and not a long argument because Brooks had lived something and wanted to think about it in public, one idea at a time, without pretending the ideas added up to a system. That is my case too: I have a sensibility rather than a theory, a handful of things I have seen and one old psychologist who helps me see them. The essay is the form that lets me be honest about how much and how little that is.

Each essay stands on its own. Each starts with a scene, real or imagined, in a classroom, a conference, a meeting, a bookshop in Rio, and only then reaches for the idea. You can read them in any order, and I would prefer you read three of them well than fifteen dutifully. If Adler is new to you, read the third essay first, as it is the only one that explains him, and everything after it assumes you have read it. If you are a manager, start with the eleventh. If you teach, the twelfth and thirteenth are yours. If you build the tools, the tenth. If you are an engineer who has felt the thing I described above and not known what to call it, start at the beginning.

The essays share a small vocabulary that Brooks would have recognized as the point: a few phrases meant to be carried away. The almost-right machine. The honesty defect. The three ways to lose. The fiction of the fast hands. Whose task is this? I have tried to earn each of them, and if any survives past the book, then the book will have done its work.

Citations are provided as notes at the end of the book. I have kept the sentences clear of them because a reader should never be asked to look at a bracket, but I have also tried to make sure that claims about Adler trace to something he wrote, and that claims about engineering trace to something I saw or someone measured.

A note on what travels

A word in Portuguese resists every translation. Dictionaries offer longing or nostalgia, but neither is right. Saudade is the feeling of carrying something with you after you have left it: a country, a person, a version of yourself, still present in what you notice and what you compare everything else to. I have been carrying Portugal with me for a few years now, and I did not expect it to change what I think about, but it did.

Saudade is a past-tense feeling, and Adler is a psychologist of the future tense: he thought we are pulled by what we are reaching for, not pushed by where we have been. I have come to think the two are not in conflict. Portugal does not pull me backward. It comes with me, quietly, into whatever I choose next, the way a well-designed system carries its assumptions forward whether or not anyone remembers writing them down.

That is also how I have come to think about what this book asks of the software engineering profession. Some things are built to withstand pressure, and programming was one of them: it was tested, certified, hired for, and it held for fifty years. The machine has now put it under more pressure than it was built for, and it will keep doing so. Other things we simply carry with us, and they echo back at unexpected moments: the judgment, the responsibility, the sense of who the work is for. Those were never built to withstand anything. They were just there, in the people, underneath the skill, and they are what an engineer carries into whatever comes next. This book is an attempt to say what they are, and to say it plainly enough that it travels.

 

Charlotte, North Carolina