A 32-year-old mother brought her daughter to the lab on weekends so she could keep writing the code that would land humans on the moon. 400,000 feet above her, that same code became the only reason the mission did not abort.
Her name is Margaret Hamilton.
She was born in Indiana in 1936. She studied mathematics with a minor in philosophy. She taught herself to program at a time when the job she did had no name at all.
In 1965 she became Director of the Software Engineering Division at the MIT Instrumentation Laboratory. The lab had a contract with NASA to write the on-board flight software for Apollo. Hamilton led it.
She gave the field its name.
There was no term for what she did, so she coined one. Software engineering. Her colleagues laughed. Hardware was real engineering. Software was an afterthought. She insisted it deserved the same rigor.
She was right.
Here is the part that became history.
July 20, 1969. The lunar module Eagle is minutes from the surface. Armstrong and Aldrin are descending. Then the computer starts flashing alarms. 1201. 1202. Red and yellow lights across the board.
The computer was overloaded. A checklist error had left the rendezvous radar switched on during landing, flooding the machine with data it did not need.
A lesser system would have frozen. With astronauts halfway to the surface, that meant a dead crew or an aborted landing.
Hamilton's software did not freeze.
She had built it to recognize when it was overwhelmed and throw away the low-priority tasks, so it could lock onto the one job that mattered: landing the spacecraft.
The 1202 alarm was not a failure. It was her code announcing that it was shedding the unimportant work and keeping the crew alive.
Mission Control knew how robust her system was. They told the astronauts to ignore the alarm and go.
Three minutes later, a human stood on the moon.
"I like to say not only was that the first human on the moon," Hamilton said, "but the first software to run on the moon."
She did not stop there.
She worked on Skylab, the first American space station. She wrote the early space shuttle software. In 1986 she left to found her own company, Hamilton Technologies.
The concepts she pioneered are the foundation everything now runs on. Asynchronous software. Priority scheduling. Human-in-the-loop decision making.
Every operating system, every aircraft, every system that simply cannot fail, runs on the principles she invented. Because she knew there was no second chance, and she built for it.
In 2016, President Obama gave her the Presidential Medal of Freedom, the highest civilian honor in the United States. "Our astronauts didn't have much time," he said, "but thankfully they had Margaret Hamilton."
There is a famous photograph of her from 1969. A young woman, smiling, standing next to a stack of code listings printed on paper. The stack is taller than she is.
That stack is the software that took humanity to the moon.
She said it best herself. "There was no choice but to be pioneers. No time to be beginners."
The phone in your hand runs on software engineering.
She is the reason that phrase exists.