This Article From Issue
March-April 2026
Volume 114, Number 2
Page 123
THE MAGIC OF CODE: How Digital Language Created and Connects Our World—and Shapes Our Future. Samuel Arbesman. 304 pp. PublicAffairs, 2025. $30.
When a nonprogrammer asks a coder what they do all day or why they find coding so exciting, the answers are rarely easy to condense into a sentence or two. But Samuel Arbesman’s newest book, The Magic of Code: How Digital Language Created and Connects Our World—and Shapes Our Future, is the book you’d want to hand them. Far from a technical manual, it’s a thoughtful exploration of what code is, and what it feels like to be a programmer: why the hours slip away, why frustration gives way to exhilaration, and why, for so many, coding becomes not just work but a passion, as well as a connection to something larger than themselves.
Arbesman organizes the book into three parts: Code, Thought, and Reality; each revealing a different side of what it means to program. In the sections under Code, he lays out what code actually is and how it works, showing that behind the logic and structure there’s a surprising amount of creativity and problem-solving. The sections in Thought turn inward, exploring how coding shapes the way we think, how working with abstractions, debugging, and iterating aren’t just technical exercises but ways of training the mind to notice patterns, stay patient, and find unexpected solutions. The sections under Reality look outward, reflecting on how code interacts with the world around us, from the systems we rely on to the human choices embedded in every line of software. Taken together, these sections show that coding isn’t just about building programs—it’s about curiosity, insight, and connection. The book’s central message is that coding, with all its frustrations and flashes of joy, is a deeply human pursuit: a way of thinking, creating, and engaging with the world that can be as magical as it is logical.
To outsiders, code may seem like a language spoken only to machines. But Arbesman posits that programming is, first and foremost, a human activity: a way of communicating ideas with clarity and elegance. Like other forms of human expression, coding builds on decades of prehistory, shared conventions, and an ever-expanding sense of what’s possible. Arbesman writes,
Computation is not simply a subdiscipline of mathematics or science but almost a liberal art that can range across and interact with other fields. . . . Computer code is not concrete, it’s not steel, but it’s also not just text. Software consists of spells of crystallized thought. When a programmer writes code, she constructs a model in her mind of how a system works, or how something in the world works, and embodies that mechanic into computer logic.
With an anthropologist’s eye, Arbesman traces the journey of coding from its earliest conceptual stirrings to its modern expressions, revealing the human desires, cultural contexts, and intellectual frameworks that shaped its evolution. Early programmers focused on inventing languages and abstractions as a way to express complex ideas clearly in code that could be executed by computing machines. In that context, writing in Fortran, a programming language that first appeared in the 1950s, meant translating mathematical reasoning into structured, algorithmic instructions, training the mind to think in sequences and formulas. By contrast, the rise of graphical user interfaces and interactive environments mediated by point-and-click interactions invited programmers to think in patterns, behaviors, and visual metaphors, turning coding into an exercise not only in logic but also in design, imagination, and human-centered problem-solving that could leverage a computer’s growing capabilities to create immersive graphics and animations. Across these shifts, Arbesman shows, programming has always been about shaping thought as much as shaping machines, making it a deeply creative, human pursuit.
Arbesman’s arguments go beyond explaining what code is and how it works. He wants readers to understand why it matters to all of us. Coding isn’t just for professional programmers; it is a way of thinking, creating, and shaping the world that anyone can engage with. He points out that tools such as spreadsheets, visual programming environments, and accessible languages have already lowered the barrier to entry, letting more people experiment, build, and express ideas through code. At the same time, he is careful not to romanticize it. Code can be a source of creativity, connection, and problem-solving, but it can also reinforce inequities or be used harmfully if left solely in the hands of a technical elite. In Arbesman’s view, the power of code lies not in inevitability but in human choices, and that means we all have a responsibility to engage with it thoughtfully. Although code can be universal and used to connect, it is also something we must shape with intention, humility, and ethical awareness.
One of the book’s greatest strengths is its accessibility. Arbesman assumes no prior knowledge of coding for his readers, and he writes for the curious outsider—someone who might glance over a coder’s shoulder and see only intimidating lines of symbols. By reframing those lines as tools for thought, creation, and even enchantment, the book demystifies what happens during coding and the magic conjured inside a computer when code behaves as intended.
For example, in one chapter, Arbesman illustrates how a few lines of code can produce surprisingly complex patterns, such as the digital tree featured on the book’s cover. He uses this example to show that coding is not just about instructing machines, but also about expressing ideas efficiently and creatively. Even small, carefully structured pieces of code can generate outcomes that feel almost magical, revealing both the elegance and the power of computational thinking, reinforcing one of the book’s central points: Coding allows humans to model, manipulate, and interact with complex systems in ways that were once unimaginable.
The Magic of Code also captures the day-to-day reality of a programmer’s life: the slog through bugs, the frustration of cryptic compiler messages (diagnostic reports that identify errors and provide more information about the code), and the long process of trial and error. The author emphasizes that coding isn’t instantaneous sorcery—it’s a craft of careful persistence, built on the work of others and designed to be built upon in turn. Whereas popular culture often portrays programmers as either eccentric geniuses or anonymous hackers, Arbesman presents them as creators, driven by the same impulse that fuels writers, musicians, and painters: to make something where before there was nothing.
Even while describing frustrations, Arbesman recognizes that struggle is part of what makes coding compelling. He neither glosses over the tedium nor lets his affection for the craft cloud his judgment. He writes:
But a large fraction of many software developers’ time is spent rooting out errors. This is the process of debugging. It can be as simple as discovering that a semicolon has been forgotten at the end of a line or that some curly brace { was misplaced . . . often, the bug is much more subtle. There is a period of frustration, frustration, and more frustration, followed by enlightenment and insight. And then the developer bumps up against the next bug, and the process repeats.
The challenge itself is integral to what makes coding rewarding and shows that engaging with both the frustrations and the possibilities of code is essential if we want it to serve human ends.
Arbesman describes his book as “a love letter to the computer, in all its glory and implications,” and he isn’t wrong. He explains how and why coders are drawn into the trancelike flow of coding:
Computer code—intended for humans and machines—is both soaring beauty and ugly details. It rivals the expressiveness of English and the precision of a card catalog. Its crackling energy can be coerced not just to persuade or entertain but to act in the world.
The book is an ode to the creativity, elegance, and intellectual rigor that coding demands, while also acknowledging its challenges and ethical implications. Through accessible examples, historical context, and reflections on the cognitive and social dimensions of programming, Arbesman demonstrates that code is more than instructions for machines: It is a medium for human expression, a tool for insight, and a bridge between ideas and action. For readers who want to understand what draws programmers into their work, why coding can feel almost magical, and how it intersects with broader human concerns, The Magic of Code delivers both clarity and wonder.
American Scientist Comments and Discussion
To discuss our articles or comment on them, please share them and tag American Scientist on social media platforms. Here are links to our profiles on Twitter, Facebook, and LinkedIn.
If we re-share your post, we will moderate comments/discussion following our comments policy.