r/computerscience • u/SilverBass1016 • Nov 22 '25
General How did coding get invented
My view of coding right now is that it's a language that computers understand. But how did the first computer makers invent the code and made it work without errors? It look so obscure and vague to me how you can understand all these different types of code like Java and Python etc.
Just wondering how programmers learn this and how it was invented because I'm very intrigued by it.
440
Upvotes
View all comments
Show parent comment
0
u/orebright Nov 26 '25
You might be thinking about this in context of a common modern day approach to software/hardware building, mostly among practitioners like myself, where you make small changes, test them to verify expectations, and move on once they're working. But we can use this "lazy" approach because of the benefit of layers of structure that already exist giving us observability into a computer system.
Babbage and Ada were both academics, and when they designed the first computer and computer program, no such things existed at all. Electricity had barely even been harnessed and almost no human beings even had access to it.
So with this backdrop Babbage created a machine which theoretically could compute anything. He didn't necessarily have some vision of a personal computer with computer code like we have today, it was theoretical mathematical machine. And I'm sure he had an expectation that something like an algorithm could be run on it, but didn't publish any algorithms. Ada also worked on the machine design, and was a peer of Babbage's. He called her "Enchantress of Number".
He never got to build his machine fully. But the theory was sound, and it was eventually built and Ada's program run, after their deaths. They were both such visionaries that they conceptualized a computer and computer program (both of them together) in a time of horse-drawn carriages and gas lamps, when barely anyone even knew about electricity, and just having that vision itself is impressive, but they actually designed a successful working system without even being able to test it once.