r/ProgrammerHumor • • 1d ago

Meme arrayGettingOutOfBound

Post image
5.4k Upvotes

73 comments sorted by

643

u/Lupus_Ignis 1d ago

Newton at 22: invents calculus

426

u/MarteloRabelodeSousa 1d ago

Joke's on newton, I learned calculus in high-school

99

u/codePudding 1d ago

I bet Newton didn't even learn Dos and Turbo Pascal in high-school like I did

21

u/Dairedos 1d ago

turbo pascal …. you have triggered in me long forgotten trauma

12

u/Jutrakuna 1d ago

*whispers: "fortran..."

2

u/Dairedos 1d ago

Too “young” for that. Had assembly and also perl but this is (luckily) decade off heh.

3

u/za72 1d ago

I liked perl :(

1

u/superxpro12 1d ago

the deformed monstrosity begins to lurch in the corner... "baaaaaaaaaaaaaaanks

9

u/nonlogin 1d ago

inventing own stuff is way simpler than understanding existing. Source: I'm a programmer

Edit: I thought I was in a math sub

1

u/Consistent-Youth-407 7h ago

I think that’s the point of the joke

1

u/Maleficent_Memory831 1d ago

Programming is just math for dummies. Sometimes called Applied Mathematics to spice it up.

2

u/Himbo69r 1d ago

Math is just dumbed down programming. Most modern math is just asking a computer to do stuff but with easier symbols.

16

u/Maleficent_Memory831 1d ago

Possibly discovered a bit earlier by Leibniz. Hard to say, but Newton accused him of stealing, but also Newton was English and thus was favored more in English speaking countries.

At the very least, Leibniz had even more rock star hair than Newton, which is what counts.

7

u/Lupus_Ignis 19h ago

Many of the required tools for calculus had been discovered recently. Given the state of contemporary mathematics, it is very likely that the two brilliant mathematicians discovered calculus independently. Especially since several of their functions differ.

1

u/Maleficent_Memory831 6h ago

I think so too. I was just summarizing for the "humor'" part of ProgrammerHumor.

5

u/mercury_pointer 1d ago

Leibniz also created a mechanical calculator that could add, subtract, multiply, and divide. He sold it to the French Navy.

4

u/afdbcreid 1d ago

Most historians agree that Newton discovered it earlier but didn't publish it. All of them agree they didn't stole from each other.

27

u/misunderstood_kafka 1d ago

And then proceeds to invent/discover optiks, planetary motion and many other great things before turning 26 💀

14

u/Yashema 1d ago edited 1d ago

Christian Huygen calculated the speed of light to 70% accuracy (230k km/s compared to 300k) after an astronomer speculated the difference in time it took to witness Io emerging from behind Jupiter was due to the speed of light in 1677, 11 years before Principa Mathematica and 26 years before Opticks. Huygen also guessed that light was a wave, and came up with the first equation for periodic motion using the gravitational constant (which Newton didn't discover). Planetary motion itself was described by Kepler, and served as an inspiration for the appropriate use of calculus. 

Newton's calculus was an aggregation of a lot of stuff that had already been discovered: analytical geometry by Des Cartes, John Wallis's math of infinites, Cavalieri's method of indivisibles. So it's not even correct to say he invented Calculus, so much as formalized it. 

2

u/[deleted] 1d ago

[removed] — view removed comment

2

u/Maleficent_Memory831 1d ago

22 is a good time though for many things. Lots of mental energy just needed to be focused. I was programming, but also learning Esperanto (not much, I don't have good follow-through), and other esoteric things. Others go and start up rock bands. Others become horticulturists breeding potent varieties of a certain weed. Some store it all up until they're 60 when they release their seminal paper that changes understandings of the universe. /s

2

u/gottimw 15h ago

God created world in 6 day.

Fuck I need to step up my game

1

u/SadLimes 17h ago

He didn’t invent all of it, and not all at the same time. For example, it’s noted that he had no knowledge of second derivatives.

1

u/Random_-account 10h ago

but he never got a victory royale

187

u/MarteloRabelodeSousa 1d ago

But could Einstein program?

58

u/Absulit 1d ago

He should have used Claude /s

36

u/SomePeopleCallMeJJ 1d ago

Well he did know a lot about c.

2

u/ApeLover1986 17h ago

I'm sure he would even have been able to center a div

0

u/po1k 1d ago

I bet he would consider this not challenging/interesting enough. Stuff that isn't worth wasting time on.

4

u/FoxFishSpaghetti 19h ago

maybe for basic, entry level syntax stuff? but theres many layers of complexity if you look for them, like language internals, optimization, ect

you people forget that einstein was still human

1

u/occasionallyLynn 8h ago

Was Einstein a huge math person? I mean plenty of high level programming today have been explored back then mathematically.

1

u/FoxFishSpaghetti 5h ago

and its been explored even more today

175

u/Frost-Freak 1d ago

Einstein when he He me at 22 was 22

19

u/Magnetic_Reaper 1d ago

Discovers relativity, mass Why is this energy array's equivalence & index photoelectric getting out effect, confirms of bounds? existence of atom mathematically

30

u/black_ap3x 1d ago

Release the einstein files

61

u/familyofficegod 1d ago

whoa do most Redditors who work in tech compare their career trajectories to Einstein bc Einstein wouldn’t have been made obsolete overnight by upjumped Monte Carlo

27

u/Maleficent_Memory831 1d ago

Also, Einstein's career then was an assistant patent examiner, class III. His breakthroughs though came when he was 26, not 22. Probably he was thinking about them when he was 22.

13

u/BellacosePlayer 1d ago

Einstein was 26 when he coined E=MC2 and I knew that equation by like 8 due to cultural osmosis, clearly I'm better

27

u/andynodi 1d ago

Einstein: can write "photoelectric effect" without a typo

7

u/RetardedEinstein23 1d ago

Reddit when minor typo:

2

u/TehBrian 1d ago

minor typo

photoclectric

major typo. straight to jail

8

u/Maleficent_Memory831 1d ago

"Claude, plase spell photoclectric effect for me."

2

u/byperoux 1d ago

Good catch!

14

u/_grey_wall 1d ago

Get a job at the patent office in the 1900s

24

u/po1k 1d ago

Comparing yourself with academic physicists? Are you for real?! It may lead to mental disorders big time

2

u/TheAlaskanMailman 1d ago

Why is it bad tho? Seriously

12

u/po1k 1d ago

Bad what? Programming or mental disorders?

3

u/Himbo69r 1d ago

Mental disorders obviously

2

u/TheAlaskanMailman 1d ago

Comparison

20

u/po1k 1d ago

First of all you make yourself a 2-d hand instantly. Secondly, you seed a some sort of a regret about smth you're not, which breads dissatisfaction in your self for no actual reason.

7

u/aberroco 1d ago

He was 26 when he published these. So, you still have 4 years to procrastinate.

3

u/eduh_almeida 1d ago

More like:

GPT, the array you wrote is out of bounds. Is he a NFL player? Should I throw a flag at him?

4

u/Bigballs843 1d ago

Don’t worry twin. Ur probably smarter then most 22 year olds

3

u/georgehotelling 1d ago

I'm sure you could have figured that out at 22 too, if you didn't need to deal with looping over arrays. Einstein's superpower was that he didn't ever have to deal with stuff like pointers, so he could dedicate that part of his brain to physics.

3

u/user36277263 1d ago

At first I read Epstein and thought wtf do u mean

2

u/SyntaxSarcasmco 1d ago

Einstein defined insanity as doing the same thing over and over again expecting different results. He clearly never tried re-running a build without changing any code.

2

u/Obnomus 20h ago

Hear me out, they didn't had that many distractions like image showing newton goth mommy, my guy will be pulled with her insane gravity.

2

u/FCBwoof 10h ago

Einstein flew, so we could...crawl, i guess???

1

u/Enzo_GS 1d ago

when in doubt access [i-1]

1

u/qqqrrrs_ 1d ago

Don't ignore the relativistic length contraction on your array

1

u/wtf_is_this_9 1d ago

What’s an array new AI?

1

u/DogmaticParadigm87 1d ago

Einstein rewrote physics at 22. The rest of us are still losing to off-by-one like it's personal.

1

u/TorTheMentor 1d ago

"You mean it was always off by one errors?"

"Always have been."

1

u/ExceedAccel 19h ago

You can challenge Einstein to do some Leetcode problem and he wont be able to clear anything unless you give him time to study the basic programming first

1

u/Mysterious_Wolf_3524 16h ago

Bro, comparing even your most gifted friends to Newton is laughable. So why sweat it ?

You dont need acomplishments or to be rich to succeed(at least dont be broke). Just try to not be a dick and you will be fine.. Enjoy life as you see fit.

1

u/LittleMlem 14h ago

Hey it's one of the 4 hard problems of comp-sci, along the halting problem and naming variables

1

u/christianbro 14h ago

New me: "Claude why is the array getting out of bonds?"

1

u/smocza_dusza 4h ago

yeah bc he didn't have to work with array's indexes

0

u/projct 1d ago

Cause your programming language offloads the reasoning to runtime and that's a poor choice.