eli5 how did Ada Lovelace invent “the first computer code” before computers existed?

845 viewsMathematicsOther

as the title says. many people have told me that Ada Lovelace invented the first computer code. as far as i could find, she only invented some sort of calculation for Bernoulli (sorry for spelling) numbers.

seems to me like saying “i invented the cap to the water bottle, before the water bottle was invented”

did she do something else? am i missing something?

edit: ah! thank you everyone, i understand!!

In: Mathematics

18 Answers

Anonymous 0 Comments

Charles Babbage designed his Analytical Engine in 1837. It never got built, but Lovelace wrote an algorithm for it in 1843.

Anonymous 0 Comments

She theorized what computer programming was before there were computers.  She came up with idea that we could invent instructions that machines would then follow. 

 It’s not a direct computer programming language as we understand it today ; but rather the concept or idea of what programming is

Anonymous 0 Comments

Computer code is ultimately just a formal description of how something should be done by a machine.

And she described such a process how the analytical machine which charles Babbage planned could calculate the Bernoulli numbers.

Thats pretty different from what we would recognize today as Computer programming, still the idea is the same. Describing how a (universal) machine should perform a task.

Anonymous 0 Comments

The first machines that you could safely call a computer were invented by a scientist who didn’t quite know what to do with them. He had sketched a couple of ideas for how the primitive contraption might be programmed, but never really took it upon himself to get it done. Enter his assistant Ada, young, full of energy and armed with a stupendous math education. She sat down with the machine Babbage created and wrote the first programs it would operate on, essentially providing proof of concept for the computer/program paradigm we enjoy today.

Anonymous 0 Comments

The first computers (most of which were never built) were mechanical, not electronic. Ada Lovelace designed the language for programming these (conceived, rarely/never built) mechanical computers.

Anonymous 0 Comments

Her work revolved around a proposed Analytical Engine, mechanical computer designed by Charles Babbage. The machine as designed would have been Turing Complete, which means it would have been able to do anything a modern computer would be able to do. The first ever.

I’m not that clear on the exact details of what exactly she proposed in her notes because I haven’t read them, but while everyone else was focusing on just crunching numbers like a glorified calculator, she realised the machine had more capability than that. Basically, she understood a computer to be a computer as we know them, not just a mechanical abacus.

But since the Analytical Engine was never actually built, all that insight came just from the designs. So her insights and algorithms pre-date any actually built computers.

Anonymous 0 Comments

She basically wrote the recipe before the kitchen was built. Her codes were theoretical math problems that computers would later solve.

Anonymous 0 Comments

There was not a computer, but there was a design for a computer that was under construction. (It only did not get finished because the inventor kept updating the designs and the craftsmen building it had to keep starting parts over and it ran way over budget.)

So she understood the designs and wrote algorithms for the machine for when it was built and recognized it had far more potential (even as designed) than others realized with the correct programming. She even considered things very similar to Turing Completeness, like how one day computers could be programmed to write poetry.

So it really was incredible she did so much before a computer was even built.

Anonymous 0 Comments

She came up with the idea that you could create a loop to repeat simple instructions. It’s one of the most fundamental aspects of coding – instead of writing out “take the number 1, then add 1, then add 1, then add 1”, you can write “take the number 1 and add 1 three times”. Instead of there being 4 steps there is now 1. Doesn’t look that impressive in my example but when you’re calculating something like how many dots does a triangle shape with 4098 rows contain it’s pretty powerful just writing one instruction instead of seperately writing out each of the 4098 rows.

Anonymous 0 Comments

In addition to what others have said, you actually don’t need a computer to run computer code. It’s very tedious (though no worse than what the early human Computers did for an occupation) but you can just work through the steps with pencil and paper.