Before computer science became a boys' club, Margaret Hamilton wrote the code. She led the team that built the flight software for the Apollo missions, the software that had to work perfectly, on hardware with almost no memory, with no second chances and no room for a crash. Long before anyone used the phrase "artificial intelligence" in a boardroom, she was solving the exact problem the AI industry is wrestling with today: how do you build a system that keeps people safe when the machine is doing something no human can fully follow in real time?
That question is more urgent now than it has ever been. AI is writing code, drafting contracts, screening job applicants, and helping doctors make decisions. The people building those systems are, in many ways, repeating a story that was already written decades ago. Her story shows us what we got right the first time, and what we are about to get wrong again.
In the early days of computing, programming was often seen as low-status support work. It was treated as something like typing or wiring, a task, not a discipline. Margaret Hamilton pushed back against that. She argued that building software was real engineering, with real consequences and real standards. She is widely credited with popularizing the term software engineering precisely to force that respect into the room.
That fight over a name was not about ego. It was about accountability. If software is just "code," then nobody is responsible when it breaks. If software is engineering, then you need requirements, testing, documentation, reviews, and a chain of responsibility. You need someone whose job is to say "this is not ready."
Her team's work on the Apollo flight software embodied that mindset. The systems had to handle unexpected input from astronauts, sensor noise, and hardware faults, all while running on a computer that would look laughably weak next to a modern smartwatch. The code did not have the luxury of being roughly right. It had to fail safely when it failed at all.
Then the culture shifted. As computing became powerful, prestigious, and profitable, the field was gradually reframed as a masculine pursuit. The women who had built the early foundations were pushed to the margins of the story. The work did not change. The narrative did. And the narrative determined who got hired, who got funded, and who got remembered.
Fast forward to today. AI systems learn from data created by people, and they are designed by teams that are far from representative of the people who use them. That gap is not just a fairness problem. It is an engineering problem.
When a narrow group designs a system, it tends to optimize for the experiences that group knows. Voice recognition that struggles with certain accents. Hiring tools that penalize career gaps. Medical models trained on unrepresentative patient data. None of these failures require anyone to be malicious. They simply require a team that never thought to ask.
The Apollo lesson is direct: the people who build the system decide what "normal" looks like. If your team has only one idea of normal, your system will break for everyone else, and it will break quietly, at scale, in ways that are hard to trace.
For business leaders, this reframes diversity hiring from a values statement into a risk-management strategy. The most expensive AI failures are rarely caused by bad math. They are caused by blind spots that a broader team would have caught in a design review.
One of the most important ideas in the Apollo software was that the computer should be able to recover from human error and unexpected conditions without losing the mission. The system was built to drop lower-priority tasks and keep the critical ones running. It was built to tell the crew what was happening, not to silently misbehave.
Modern AI systems mostly do the opposite. They fail silently. A large language model produces a confident, fluent, completely wrong answer, and nothing in the interface warns you. An automated decision system denies a loan, and no one can explain why. The failure is invisible until it becomes a headline.
Here is what that old discipline teaches us about building AI today:
We are now in a strange mirror-image moment. The machines are starting to write software. AI coding assistants generate functions, suggest fixes, and speed up development dramatically. That is genuinely useful. It is also a quiet transfer of responsibility.
When a developer writes code by hand, they usually understand the logic, because they had to construct it. When a developer accepts a machine-generated block, understanding can become optional. The code may work. It may also hide a subtle flaw that no one on the team can spot, because no one on the team actually wrote it.
This is where the Apollo standard becomes a competitive advantage. A team that treats AI-generated code as a first draft, reviewed, tested, and owned by a human, will ship slower in the short term and far faster in the long term, because they will not spend months untangling a failure nobody understands.
The question to ask is not "can the AI write this?" It is "who is accountable if it is wrong?" If the answer is "nobody, it was the model," you have not built an engineering process. You have built a liability.
As AI takes over more routine production, code, copy, analysis, first-draft design, the value of human work shifts upward. What remains scarce is judgment: knowing which problems are worth solving, spotting when something is subtly off, and being willing to stop a launch.
That is exactly the skill Margaret Hamilton's career demonstrates. She was not valuable because she could write instructions for a computer. Plenty of people could do that. She was valuable because she insisted the software be treated seriously, fought for resources for it, and designed it to protect people in the worst moment.
Three predictions follow from that history:
Expect the job to look less like prompt-writing and more like systems engineering. Evaluation, monitoring, red-teaming, and incident response will be core skills, not extras. Companies that treat AI work as pure product velocity will pay for it later.
Aviation and spaceflight earned their safety cultures through disasters. AI is on the same path. The industries that voluntarily adopt rigorous standards early will shape the rules rather than scramble to comply with them.
If the next generation of AI builders looks exactly like the last one, we will keep rediscovering the same blind spots. Widening who gets to build these systems is not charity. It is how you find the bug before the customer does.
The tools will keep changing. The models will get bigger, the interfaces will get smoother, and the hype cycle will keep spinning. But the core problem never changes: making a fast, complex, imperfect machine behave safely in a world full of humans.
Before computer science became a boys' club, Margaret Hamilton wrote the code that carried people to the Moon and back. She did it by refusing to treat software as an afterthought, by assuming things would go wrong, and by designing systems that protected people when they did. That is still the job.
The AI industry would be wise to remember who set the standard in the first place, and how much better the field would be if it had never forgotten her.