Skip to main content

Career & Learning

A Brief History of Programming: From Machine Code to Modern Software

Programming history as a chain of problems and answers: why compilers, structured code, objects, the web, open source and AI tools each appeared, and what that teaches you today.

  • By Ahmed Alaydi
  • Published
  • Updated
  • 22 min read
On this page

If you write software for a living, you work inside decisions made long before you started. Source code is text that a compiler or interpreter translates. Loops and functions have the shape they do. Memory is usually managed for you. Your work lives in a version control system and runs on servers you will never see. None of this was inevitable. Each convention was an answer to a specific problem someone hit, and knowing the problem tells you when the answer still applies — and when it has quietly stopped applying.

Read as a list of languages and years, the history of programming is forgettable trivia. Read as a chain of problems and responses, it becomes a practical tool for judging technology. This article follows that chain from Babbage's Analytical Engine to today's AI coding assistants, and concentrates on why each layer appeared rather than on cataloguing every language. Dates are given only where credible sources agree; where they give only a year or a range, so does this article.

The timeline at a glance

WhenDevelopmentThe problem it answered
1834–1843Babbage conceives the Analytical Engine; Lovelace publishes her notes on itCan one machine follow any described sequence of operations?
1936Turing's paper on computable numbersWhat can a mechanical procedure compute at all?
1945–1949ENIAC; the EDVAC report; the Manchester Baby and EDSAC run stored programsReprogramming by rewiring took days
1957–1960FORTRAN, LISP, COBOLHand-coding was slow, error-prone and tied to one machine
1968Dijkstra's letter on goto; the NATO Software Engineering conferencePrograms too large to reason about; projects late and unreliable
1969–1973Unix and C at Bell LabsA small, practical language and system for real work
1960s–1985Simula, Smalltalk, C++Organizing large systems so parts can change independently
1975–1981Altair, VisiCalc, the IBM PCComputers and software for individuals, not institutions
1989–1995The World Wide Web at CERN; Java and JavaScriptSharing information across incompatible machines; delivering software on demand
1983–1998GNU, Linux, the term “open source”Rebuilding the same foundations again and again
2001–2005The Agile Manifesto; GitPlans that could not keep up with change; many people editing one codebase
2006–2008Amazon EC2; the iPhone and the App StoreBuying servers ahead of growth; software in every pocket
2021–todayAI coding assistantsThe cost of producing and understanding routine code
Selected milestones. Each one answered a problem the previous generation could no longer handle comfortably.

Before software was separate from hardware

The conceptual groundwork predates electronics. In 1834 Charles Babbage conceived the Analytical Engine, a general-purpose mechanical computer. Its design separated a store for numbers from a mill that did the arithmetic, took its instructions on punched cards borrowed from the Jacquard loom, and included conditional branching and looping. It was never built: none of Babbage's engine designs was completed in his lifetime, and only a small experimental piece was under construction when he died in 1871.

In 1843 Ada Lovelace published an English translation of an article on the engine by the Italian engineer Luigi Menabrea, with extensive notes of her own. The last of them, Note G, sets out step by step how the engine could compute Bernoulli numbers. Her more lasting contribution was conceptual: she argued that the engine might act on things other than numbers — that symbols manipulated by rules could stand for music or other non-numeric things. The Computer History Museum describes this as the shift from calculation to computation. It is the founding idea of software: a machine's behavior can be described separately from the machine.

The next step was a precise theory. In his 1936 paper “On Computable Numbers, with an Application to the Entscheidungsproblem”, Alan Turing defined an abstract machine that captures what any mechanical procedure can compute, and used it to show that some well-posed problems cannot be decided by any such procedure. He also described a universal machine that reads the description of another machine and imitates it — in modern terms, a program treated as data. How directly this shaped the first real computers is debated; the Stanford Encyclopedia of Philosophy presents the link to the stored-program idea as arguable rather than settled.

From rewiring to stored programs

ENIAC, built at the University of Pennsylvania between 1943 and 1945 to compute ballistics tables for the US Army, made front-page news in February 1946. It ran at electronic speed, but every new problem meant connecting wires and setting switches, a job that could take days. Its programmers, among them Frances Bilas (later Spence) and Betty Jean Jennings (later Bartik), had to work out each problem mathematically and then translate it into a physical configuration of the machine.

The answer was to keep instructions in electronic memory alongside the data. John von Neumann's widely circulated 1945 “First Draft of a Report on the EDVAC” outlined that architecture. On 21 June 1948 the Manchester “Baby”, built by Frederic Williams, Tom Kilburn and Geoff Toothill, ran a 17-instruction program written by Kilburn — the first program to run on an electronic stored-program computer. At Cambridge, Maurice Wilkes's EDSAC ran its first program on 6 May 1949 and went on to provide a regular computing service. From this point a computer could be redirected to a new task by loading different instructions. Software became something you write, not something you wire.

Machine code, assembly, and the first libraries

The earliest stored programs were written in machine code: raw numeric instructions the processor executes directly. It works, and it is miserable. The numbers carry no meaning to a reader, a single misplaced digit is a bug with no clue attached, and anything you write is tied to one specific machine.

Relief came quickly. On EDSAC, David Wheeler's “Initial Orders” — described by Cambridge as a primitive assembler wired into the machine — let programmers write instructions in a more readable form that was translated as the program loaded. Wheeler also worked on closed subroutines, and the laboratory built a library of them. In 1951 Wilkes, Wheeler and Stanley Gill published “The Preparation of Programs for an Electronic Digital Computer”, which Cambridge's history of EDSAC calls the first book on programming. Reusable libraries, in other words, are as old as stored programs themselves.

Assembly language generalized that relief. Instead of a number you write a short mnemonic and a symbolic name, and an assembler translates it. Each line still maps essentially one-to-one onto a machine instruction, so nothing is hidden — but the code is finally readable by a human. A modern example shows the level you work at:

nasm
; c = a + b, in x86-64 assembly (NASM syntax)
mov  eax, [a]    ; load the value of a into a register
add  eax, [b]    ; add the value of b
mov  [c], eax    ; store the result in c
Three instructions, one register chosen by hand. In C the same line is c = a + b; and the compiler picks the registers; in Python the variables can even hold integers of any size.

The pattern that repeats for the next seventy-odd years appears right here: add a layer of abstraction, gain expressiveness and portability, give up some direct control.

The first high-level languages

Compilers had to prove they were worth it

In 1952 Grace Hopper's A-0 system for the UNIVAC I let users write instructions with English-like words instead of numbers, and had several features of a compiler. The decisive test came from IBM. In 1953 John Backus received a budget to try his idea of a formula-translating language for the IBM 704; the project, expected to take six months, took three years, and FORTRAN debuted in 1957. The contested question was performance: skeptics argued that compiled code could never match hand-written numerical routines. According to IBM's own history, Backus's team answered with the first optimizing compiler, whose output ran nearly as fast as hand-crafted code.

That is the general rule for abstractions: they are adopted when their cost falls below the cost of doing without them, not when they are first proposed.

COBOL: a shared language for business

COBOL, which appeared in 1960, aimed at a different problem: business data processing, and programs that were locked to one manufacturer's machines. A committee drawn from several manufacturers and the US Department of Defense designed it, borrowing heavily from FLOW-MATIC, the English-like business compiler developed under Hopper. Its deliberately verbose syntax was meant to be readable by people who were not mathematicians.

LISP: computing with symbols

John McCarthy wanted a language for artificial-intelligence research, where the data are symbols and lists rather than numbers. In his own history of LISP he dates the invention of conditional expressions to 1957–58 and the start of the implementation to fall 1958 at MIT; the defining paper, “Recursive functions of symbolic expressions and their computation by machine”, followed in 1960. Two of its ideas became everyday tools. Steve Russell noticed that the eval function in the paper could serve as an interpreter and hand-coded it, giving the language an interpreter. And because list programs abandon storage constantly, LISP reclaimed unreachable memory automatically through garbage collection — the same idea that Java, Python and JavaScript rely on today.

FORTRAN and COBOL both still run in production today; the Computer History Museum notes that FORTRAN is still in use and cites a 1997 estimate of over 200 billion lines of COBOL in existence. That is worth sitting with. Software that solves a real problem and keeps being maintained outlives nearly every prediction about its obsolescence.

The software crisis and the birth of software engineering

By the late 1960s hardware had outrun the methods used to program it. Systems were growing far beyond what one person could hold in their head, and large projects were arriving late, over budget and unreliable. Two responses from 1968 still shape how code is written and how projects are run.

Structured programming

In March 1968 Communications of the ACM published a letter from Edsger Dijkstra under the title “Go To Statement Considered Harmful” (his own typescript, preserved in the Dijkstra archive, was titled “A Case against the GO TO Statement”). His argument: unrestricted jumps make it almost impossible to relate the static text of a program to what happens when it runs. Building programs from sequence, selection, repetition and procedures keeps that relationship easy to follow. Every if, for and function you write is a descendant of that debate.

c
/* With goto: you have to trace the jumps to discover there is a loop */
    i = 0;
top:
    if (i >= n) goto done;
    total += values[i];
    i++;
    goto top;
done:

/* Structured: the shape of the code is the shape of the loop */
for (i = 0; i < n; i++) {
    total += values[i];
}
The same computation twice. The second version can be understood without simulating it in your head.

Software engineering as a goal, not a fact

From 7 to 11 October 1968, the NATO Science Committee sponsored a conference in Garmisch, Germany, under the title Software Engineering. Brian Randell, who co-edited the report with Peter Naur, later wrote that the term was essentially unknown at the time, and that the title was chosen as a provocation — describing a requirement rather than a reality. Participants discovered how widely they shared concern about what some were willing to call a “software crisis”. A follow-up conference in Rome in 1969 was, in Randell's account, far less productive. The phrase stuck anyway, and with it the idea that building large software needs disciplined methods, not just clever programmers.

C, Unix, and portability

At Bell Labs in 1969, Ken Thompson got the first version of Unix running on a small DEC PDP-7, written in assembly. Dennis Ritchie's own account of C's development places the language's birth in 1969–1973, growing out of Thompson's language B, with the most creative period in 1972. In the summer of 1973 the language was strong enough for them to rewrite the Unix kernel for the PDP-11 in C; until then Thompson's PDP-11 kernel had been written in assembly language.

Portability is the part of the story usually told backwards. Ritchie wrote that at first they did not put much weight on it; interest arose later. In 1977–79 the team moved Unix to the quite different Interdata 8/32, a port to the DEC VAX followed, and Ritchie notes that Unix's real growth began only after portability had been achieved. The 1978 book “The C Programming Language” by Brian Kernighan and Ritchie then served as the language reference until a formal standard was adopted more than ten years later.

C hit a balance that proved extraordinarily durable: close enough to the hardware to be fast and predictable, structured enough for large programs, small enough to implement on new machines. Its influence is easiest to see in syntax. Braces for blocks, semicolons ending statements, the shape of a for loop — these appear in C++, Java, JavaScript, PHP, C#, Go and many more. Learning one of them makes the surface of the others immediately familiar.

Objects and the scale problem

As programs grew from thousands to millions of lines, the limiting factor stopped being machine speed and became human comprehension. Object-oriented programming was the most influential response: bundle data with the operations on it, hide internals behind an interface, and let one part of a system change without the rest noticing.

The ideas came from simulation. Ole-Johan Dahl and Kristen Nygaard developed Simula at the Norwegian Computing Center in the 1960s, introducing classes and objects. Alan Kay met Simula in 1966 and wrote that most of his later ideas took root there. At Xerox PARC in the 1970s his group built Smalltalk, through versions in 1972, 1976 and 1980; in his history of Smalltalk Kay says he called the new design paradigm “object-oriented”, and pictured objects as self-contained units that communicate only by sending messages, like cells or computers on a network.

Bjarne Stroustrup started work on “C with Classes” in 1979 because he wanted Simula's way of organizing programs without giving up C's efficiency. The name C++ came in 1983, the first commercial release in October 1985, and the first ISO standard in 1998, according to Stroustrup's FAQ.

Java, introduced by Sun Microsystems in 1995, made a different promise: “Write Once, Run Anywhere”. Programs compile to bytecode for a virtual machine instead of to one processor, and garbage collection — LISP's idea, now in a mainstream business language — removes a whole family of memory-management bugs. Managed runtimes went from a research luxury to a default expectation.

Personal computers: software becomes a product

In January 1975 the MITS Altair 8800 appeared as a kit in Popular Electronics, and Bill Gates and Paul Allen licensed their BASIC interpreter to MITS as its main language. BASIC itself had been created at Dartmouth in 1964 by John Kemeny and Thomas Kurtz as an easy language for beginners. In 1979 the spreadsheet program VisiCalc gave people a reason to buy an Apple II, and in 1981 the IBM PC shipped with Microsoft's MS-DOS.

The problem changed shape. Software was no longer written by specialists for the machine in their own building; it was a product sold to people who would never read the code, installed on hardware its authors would never see. Compatibility, user interfaces, distribution and support became engineering concerns — and the audience for programming tools grew from a few thousand professionals to anyone with a home computer.

The web changes the target

Tim Berners-Lee wrote his first proposal for what became the World Wide Web at CERN in March 1989, to help scientists share information across incompatible computers; he formalized it with Robert Cailliau in November 1990. By the end of 1990 the first web server and browser were running at CERN, the server on a NeXT computer. The software reached colleagues in 1991, and on 30 April 1993 CERN made the source code available on a royalty-free basis — a decision that let anyone build on it. CERN's short history of the web covers these steps.

The web introduced a genuinely new deployment model: software delivered on demand, updated centrally, running inside someone else's browser. In 1995 Brendan Eich developed JavaScript at Netscape to add behavior to pages — a language distinct from Java despite the name — and through a long and sometimes awkward evolution it became one of the most widely deployed languages in existence. PHP began in 1994 as Rasmus Lerdorf's “Personal Home Page Tools”, written to track visits to his online résumé; he released the source in June 1995, and it grew into the engine behind a large share of the web because it made producing a dynamic page straightforward. Python, begun by Guido van Rossum as a hobby project over Christmas 1989, spread on readability and a strong library ecosystem, and later became central to data work and machine learning.

As browser applications grew more ambitious, manually keeping the page in sync with application state became a leading source of bugs. Component-based frameworks answered by letting you describe what the interface should look like for a given state and handling the updates for you. That is the actual problem React, Vue and their peers solve — not decoration. The frontend roadmap picks up the story from there.

Open source: shared foundations

In 1983 Richard Stallman began the GNU project to build a free Unix-like operating system, which led to the Free Software Foundation in 1985. In 1991 Linus Torvalds released the Linux kernel through Usenet newsgroups; combined with GNU's tools it made a complete free system possible. The term “open source” itself is younger: according to the Open Source Initiative, it was chosen at a strategy session in Palo Alto on 3 February 1998, suggested by Christine Peterson, shortly after Netscape announced it would release its browser's source code.

The problem open source answered was duplication: every company rebuilding the same operating systems, compilers and libraries behind closed doors. It moved from the margins to the foundation. The languages, databases and frameworks most products are built on are now overwhelmingly open, and reading their source is one of the better ways to learn.

Working as a team: version control and agile

Version control

Once several people change the same code, you need to know who changed what, when and why, and to get back to a version that worked. The Source Code Control System (SCCS), developed at Bell Labs in the early 1970s and described by Marc Rochkind in a 1975 IEEE Transactions on Software Engineering paper, did exactly that. Later tools refined the model; the decisive shift came from the Linux kernel. According to the Pro Git book, the kernel project exchanged patches and archives until 2002, then used the proprietary BitKeeper; when that arrangement broke down in 2005, Torvalds and the community built Git, designed for speed, thousands of parallel branches and fully distributed work.

Agile

Heavyweight, plan-everything-first processes struggled when requirements changed faster than the plan. In February 2001, seventeen practitioners representing Extreme Programming, Scrum, DSDM, Crystal, Feature-Driven Development and other approaches met at Snowbird, Utah, and wrote the Agile Manifesto. Its core bet is that frequent working software and close collaboration expose wrong assumptions earlier than documents do. Like every answer in this article, it has a context: agile ceremonies without the short feedback loop they were meant to create solve nothing.

Mobile and the cloud

Apple announced the iPhone in January 2007, and on 10 July 2008 opened the App Store with more than 500 third-party applications; Android phones followed the same year. Smartphones brought back constraints the desktop era had let developers forget: limited battery, unreliable connectivity, small screens, strict permissions, and a store review standing between you and your users. Cross-platform toolkits such as React Native and Flutter emerged because maintaining two entirely separate native codebases is expensive, and most products do not need platform-specific behavior everywhere. The mobile roadmap covers that trade-off in depth.

Cloud infrastructure changed the economics again. When Amazon announced the EC2 beta on 24 August 2006, the offer was resizable compute capacity paid for by use. Renting capacity that scales on demand removed the need to buy servers ahead of growth, and turned provisioning, scaling and availability into things a small team could reasonably handle — in exchange for new problems in cost control, configuration and dependence on a provider.

AI-assisted development

In June 2021 GitHub announced Copilot as a technical preview, describing it as an AI pair programmer powered by OpenAI Codex, a model trained on public source code. Tools since then have moved from completing lines to chat assistants and agents that edit several files and run commands. Viewed through this article's lens, it is another layer of abstraction — the same trade that assemblers, compilers, managed runtimes and frameworks each made before it.

There is one important difference. A compiler is deterministic and its translation follows a specification; when it is wrong, that is a bug in the compiler. An AI model produces a plausible suggestion that can be subtly wrong, and responsibility for checking it stays with you. That makes it closer to a fast, tireless collaborator than to a compiler — useful in proportion to your ability to review, test and reject what it proposes.

The evidence on productivity is still moving, which is itself a lesson. In a controlled study published in July 2025, METR found that 16 experienced open-source developers took 19% longer on issues in their own repositories when AI tools were allowed, while believing the tools had sped them up. By February 2026 METR described those results as out of date: it judged that newer tools probably do speed developers up, but said its data could not reliably show by how much. The honest position is to measure in your own context rather than trust either the hype or the backlash.

The historical pattern also suggests what does not change. Every previous abstraction made more people productive without removing the need for someone who understands what is actually happening when it breaks. Compilers did not eliminate the value of knowing how memory works; frameworks did not eliminate the value of knowing HTTP. It is reasonable to expect the same here: the level moves, the judgment stays.

Common misconceptions

“Ada Lovelace was the first programmer”

Note G is widely described as the first published computer program. Historians add qualifications: unpublished programs for the engine predated her notes, some argue Note G is closer to an execution trace than a program in the modern sense, and the Computer History Museum notes that biographers debate the extent and originality of her contribution. What is not in doubt is her conceptual leap — that a machine manipulating symbols by rules could work on far more than numbers.

“Grace Hopper found the first computer bug”

On 9 September 1947 the team running the Harvard Mark II found a moth caught in a relay and taped it into the logbook, joking that it was the first actual case of a bug being found. The joke only works because “bug” already meant a technical fault: the Computer History Museum traces that usage to Thomas Edison in the 1800s. Hopper was present and made the story famous in her many lectures; she did not coin the term.

“Waterfall was the recommended method that agile replaced”

The paper usually cited as the origin of the waterfall model, Winston Royce's “Managing the Development of Large Software Systems” (IEEE WESCON, August 1970), never uses the word “waterfall”. Royce drew the single-pass sequence of phases and immediately called that implementation risky, because problems surface only at testing, when fixing them means redesign. He went on to recommend iteration and early feedback, including doing the job twice. The rigid version that later became a process standard was not what he proposed.

“C was designed for portability”

As covered above, Ritchie wrote the opposite: portability was not a priority at first and became one later, when moving Unix to new machines turned out to be both possible and valuable. The lesson is useful well beyond C. A technology's most famous strength is often discovered after the fact, not designed in.

What this means for you

A few lessons recur across the whole chain, and they apply directly to the choices you make this year:

  • Abstractions win when their cost becomes acceptable. FORTRAN succeeded because its compiled code was nearly as fast as hand-written code, not because high-level languages were a nice idea. Ask what a new tool costs you, not only what it offers.
  • Most tools answer human limits, not machine limits. Structured programming, objects, version control and agile all exist because people cannot hold large systems in their heads or coordinate without help.
  • Working software outlives predictions. COBOL, C and Unix's descendants are still everywhere. Plan for the code you write to be maintained by someone else for longer than you expect.
  • Openness compounds. The web spread because CERN released it royalty-free; Linux and Git came from open collaboration. Tools that anyone can build on tend to outlast those that cannot.
  • Know one level below the one you work at. Every layer leaks eventually. The programming fundamentals are what let you debug the layer underneath when it does.

The through-line is that each generation raised the level of abstraction to manage complexity the previous one could no longer hold. Nothing on this timeline was invented to be fashionable. That gives you a useful filter: when you meet a new tool, ask which specific problem it was built to solve, and whether you have that problem. If you do, adopt it. If you do not, you are adding complexity to buy nothing. If you are still deciding where to start, how to choose your programming track applies the same thinking to careers.

Languages and frameworks are answers. If you do not know the question a tool was built to answer, you cannot judge whether you need it.

Further reading

Related on this site

Continue reading

All articles
  • A group of people working together around a wooden table with laptops; one, wearing headphones, has code on screen.Career & Learning

    How to Choose Your Programming Track

    Frontend, backend, mobile or full stack? Compare the daily work, test each with a weekend project, and decide with a clear process instead of salary rankings.

    15 min read