ThinkRoost
How Everyday Things Work

Computers and software · 5 min

Margaret Hamilton and Apollo

Learn about software that saved a Moon landing.

ReflectText size
Source reading

What the sources describe

In the 1960s, Margaret Hamilton led a software engineering team at the MIT Instrumentation Laboratory that developed onboard flight software for NASA's Apollo missions. She helped popularise the term software engineering to give software development the same respect as other engineering fields.

The Apollo Guidance Computer was tiny by modern standards, with limited memory and speed. Software had to be extremely reliable, because astronauts' lives depended on it. Hamilton's team emphasised error detection and recovery.

During Apollo 11's descent to the Moon on 20 July 1969, the computer raised alarms coded 1202 and 1201, meaning it was overloaded. A switch for the rendezvous radar had been left in a position that sent unnecessary data, using up computing time. The software was designed to restart, drop lower-priority tasks and keep running the most important ones, such as guiding the landing.

Mission Control engineers, including Steve Bales and Jack Garman, confirmed it was safe to continue, and the landing succeeded. Hamilton received the Presidential Medal of Freedom in 2016. A famous photograph shows her beside a stack of printed Apollo code as tall as she was.

Our interpretation

Connecting the ideas

Margaret Hamilton led a team building Apollo flight software, which during Apollo 11's landing shed lower-priority tasks when overloaded, letting the landing continue.

The idea, in plain language

The big idea

Robust software handles the unexpected, so planning for overload matters.

Use it in real life

Use it in real life

When you feel overloaded with tasks, write them all down and mark the ones that truly matter today. Drop or postpone the rest, as the Apollo computer did, so the critical work gets done.

Practice scenario (made up for this lesson)

Try it

Made-up example: Why could the Apollo 11 landing continue despite alarms?

A good answer: the software restarted and prioritised critical tasks like guiding the landing, dropping less important work.

Quick quiz

1. What did the Apollo 11 alarms mean?

2. How did the software handle the overload?

3. Why did Hamilton promote the term software engineering?

Finished reading?

Make this the next Doom video?

Vote for the lessons you'd most like to see turned into a short animated story.

How was this lesson?

No ratings yet — be the first.

Sign in to rate

Sources

Limitations

Checked against the 2016 White House Medal of Freedom announcement (led Apollo on-board flight software team); Wikipedia kept as a second source.

Voice: Debby — Soft and soothing (tap to change)

Debby narration · part 1 of 15