Design Thinking for Developers eBook
Human centered coding and feature design.
by Worth Salome
Human centered coding and feature design.
Formats
Free sample
Chapter 1: The Rationality Trap--–- Every developer has lived this moment. You spend three weeks architecting a beautiful solution. The code is clean. The types are strict. The edge cases are handled.
You deploy on a Friday afternoon, lean back, and wait for the gratitude. On Monday morning, your inbox contains seventeen support tickets, two angry stakeholder emails, and a screenshot of a user clicking the wrong button forty-seven times in a row. The feature works perfectly. The users hate it. Welcome to the rationality trap.The Perfect Code That Nobody Wants Let me tell you about the payment flow that broke me.
I was the lead developer on a fintech project, and we had built something objectively beautiful. Our checkout form had proper validation, graceful error handling, and a state machine that guaranteed no transaction could ever be submitted twice. We had 94% test coverage. We had a microservices architecture that could scale to handle Black Friday traffic. We had done everything right.The abandonment rate was 74 percent.Not because the code crashed.
Not because the API returned 500 errors. Not because the transaction took too long. Users abandoned their purchases because, in the words of one customer support ticket, "the button didn't look right." The button. A single pixel-colored rectangle on a screen. Three months of engineering, and a button color was driving users away.I wanted to be angry at the users.
They were being irrational, I told myself. The button was clearly labeled. The validation logic was mathematically sound. Why couldn't they just read the screen and click where they were supposed to click? Why did they keep trying to type their credit card number with spaces when the field clearly rejected spaces?
Why did they ignore the helpful tooltips I had so carefully implemented?Then a senior designer sat me down and showed me a session replay. I watched a user hover over the checkout button, move their mouse away, hover again, sigh, close the tab, and open a competitor's site. I watched another user enter their entire address into the "name" field because the form was asking for information in a sequence that made sense to the database but not to a human being. I watched a third user click the "help" icon twelve times in a row, each time getting the same technical documentation that I had written for other developers, not for confused customers.The user wasn't irrational. I was.
I had optimized for the machine—clean code, efficient queries, type safety—while the user was optimizing for something entirely different: cognitive efficiency. Low mental effort. Forgiving interfaces. Patterns that felt familiar, not patterns that were logically consistent.This chapter is called The Rationality Trap because it is the most seductive and dangerous fallacy in software development. The trap is the belief that users think like developers.
They do not. They cannot. Their brains are not optimized for parsing state machines or debugging validation logic. Their brains are optimized for survival: pattern recognition, energy conservation, and avoiding cognitive strain. When your software demands rationality, you are demanding that users become something they are not and never will be.The Myth of Homo Economicus Economists once believed in a fictional creature called Homo economicus—the rational economic being who always makes logical decisions, weighs all available information, and acts in their own best interest.
This creature reads documentation before clicking buttons. This creature compares options systematically. This creature never fat-fingers a delete confirmation or double-submits a form because they were distracted by a notification.This creature does not exist. It has never existed. And yet, every time you write code that assumes the user will read your error message, understand your navigation hierarchy, or remember the difference between a primary and secondary button, you are coding for Homo economicus.The reality is much messier and much more human.
Users skim, they do not read. Users guess, they do not analyze. Users rely on habit and familiarity, not on logical deduction. When faced with a dialog box that says "Are you sure?" with two buttons labeled "OK" and "Cancel," most users cannot tell you which button does what without reading carefully. Many will click "OK" reflexively because it is the default, regardless of the question.I once watched a usability test where a user encountered a confirmation dialog that said "Delete this item?
This action cannot be undone." The user read the message aloud, said "I don't want to delete this," and then clicked the "OK" button. When the facilitator asked why, the user said "OK means good, right?" The developer who wrote that dialog had assumed that users would parse the relationship between the message and the button labels logically. The user parsed emotionally: OK feels safe, Cancel feels like giving up.This is not stupidity. This is cognitive efficiency. The human brain is capable of extraordinary reasoning, but it is also incredibly lazy—in the sense that it conserves energy for tasks that matter.
Your checkout flow is not the most important thing in your user's day. They are thinking about their dying mother, their upcoming job interview, their child's fever, or simply what to make for dinner. Your software is a obstacle to be overcome, not a puzzle to be savored. When you demand rational attention, you are demanding that the user care as much about your code as you do. They never will.Cognitive Load Theory: Why Four Is the Magic Number In the 1980s, the cognitive psychologist John Sweller introduced cognitive load theory, which has since become one of the most validated frameworks in educational psychology.
The core insight is stunningly simple and devastating for software developers: human working memory can hold approximately four items at once.Not forty. Not four hundred. Four.Your code, by contrast, holds hundreds of variables, state transitions, and edge cases. Your database schema contains dozens of tables with complex relationships. Your API has thirty endpoints with different authentication requirements.
You have internalized this complexity over months or years of immersion. You have built what psychologists call "schemas"—compressed mental models that turn dozens of details into a single chunk of knowledge.Your user has none of this. Every time they encounter your interface, they start from zero. Every button, every field, every label is a new item competing for a slot in their four-slot working memory. When you present them with a form containing ten fields, you have already exceeded their cognitive capacity before they have typed a single character.
When you show them a navigation menu with fifteen options, you are asking them to hold a map in their head that you yourself would struggle to recall.This explains so many user behaviors that developers find frustrating. Users click the same wrong button repeatedly because they have learned a pattern from other software, and unlearning a pattern requires cognitive effort they are unwilling to expend. Users ignore error messages because error messages add to cognitive load, and the brain's automatic response to overload is to filter out non-essential information. Users close the app and reopen it when something goes wrong because restarting is a low-cognitive heuristic that often works, even though it makes no sense…
This is the end of the free sample. Get the eBook to keep going. Buy now
About this book
Details
- Author
- Worth Salome
- Publisher
- SamEnrico
- Language
- English
- Genre
- Non-Fiction, Self-Help, Software
- Released
- 2026-06-06
- Pages (approx.)
- 148
- Available as
- eBook, Audiobook
Read better in the ZLOADR app
Your eBooks on your phone or tablet. Sign in with your SamEnrico account and start reading.
More by Worth Salome
Dream Letter LogWorth Salome$11.99
French Portfolio Presentation StyleWorth Salome$11.99
Remote Work Morning BlockWorth Salome$11.99
Immigrant Child Street Food MemoriesWorth Salome$11.99
Affinity Diagram GroupingWorth Salome$11.99
Conversation Starters for Business TripsWorth Salome$11.99
Anger at Childs School SuspensionWorth Salome$11.99
Whispering Wheatfields: The Forgotten Ballads of the Dust BowlWorth Salome$11.99
The Iron Lady of the Caribbean: How Barbara Plett Ushered in a New EraWorth Salome$11.99
How to Produce Oil StainWorth Salome$11.99
Citation for Wikipedia and Encyclopedias GuideWorth Salome$12.99
Cash Flow Forecasting with ReceiptsWorth Salome$12.99You may also like
Hong Kong Handover 1997Dunn Johnnie$11.99
Zumba For Postnatal Recovery CourseNeal Christian$11.99
Zumba for BeginnersLadner Nikia$11.99
YouTube Comment Mining GuideHumes Pandora$12.99
Worry Box MeditationCarlin Rudy$11.99
Workplace Stress MeditationNguyen Lynn$11.99
Workplace Stress and Sleep RepairHawley Ivory$11.99
Workplace Perfectionism CureDelaney Jeffry$11.99
Workplace Injustice Anger GuideWallen Isabelle$11.99
Work Addiction and Burnout LinkGreenwood Ester$11.99
Women in Yoga and WellnessBeattie Galina$11.99
Women in Stand Up ComedyChun Evangeline$11.99