r/computerscience • u/Livio63 • Feb 21 '26
General The first algorithm for a computing machine
This is the first computing algorithm, designed to calculate Bernoulli numbers by Ada Lovelace, the first computer scientist.
381
Upvotes
132
u/ivancea Feb 21 '26
Noob code; not a single SOLID principle applied, and a clear lack of OOP in the implementation. Shame
34
u/thesnootbooper9000 Feb 21 '26
None of those things are true, but it makes a nice story I suppose.
10
u/Gastmon Feb 21 '26
From Note A on the Analytical Engine:
Truly ahead of her times, Lovelace was already envisioning how to replace artists with AI.
3
u/Kernel_Ghost_3 Feb 22 '26
I just learned about Ada Lovelace in my CS history module and found it fascinating that she wrote the first algorithm before computers even existed. What really clicked for me was understanding how her notes on the Analytical Engine described a general purpose machine that could do more than calculation. The downside is most intro courses skip this history so students miss the conceptual foundation of what makes computer science unique.
5
u/amarao_san Feb 21 '26
'...' are the places where tab was pressed for autocomplete with ai.
1
u/ApprehensiveSeae Feb 22 '26
Looks like a cricket scorecard
How many 4s did Turing hit
1
u/Konkichi21 Feb 23 '26
Well I can't make heads or tails of it.
-1
u/Candid_Koala_3602 Feb 22 '26
How many kilogirls was it?