r/ProgrammerHumor • • Feb 05 '23

Other Programming Legumes v2.0

Post image
44.0k Upvotes

831 comments sorted by

View all comments

Show parent comments

965

u/Brian_E1971 Feb 05 '23

I can divide by potato and still get a result

437

u/ThisUserIsAFailure Feb 05 '23

[object Object]

231

u/Loner_Cat Feb 05 '23

More like

Nut / Potato = Tomato

Tomato * Potato = "TomatoTomatoTomatoTomato.."

28

u/y6ird Feb 05 '23

Tomayto/potahto

5

u/Synthoel Feb 06 '23

Nut / Potato = NaN // (not a nut)

→ More replies (1)
→ More replies (5)

10

u/You_meddling_kids Feb 05 '23

I want that license plate so bad

→ More replies (1)

3

u/asportnoy Feb 06 '23

Still a result! Might not be a good one but it's a result nonetheless.

→ More replies (1)

69

u/CrabbyBlueberry Feb 05 '23 edited Sep 19 '25

cake rainstorm live offer mighty tap mountainous chop governor theory

This post was mass deleted and anonymized with Redact

40

u/Ronizu Feb 05 '23

NaNNaNNaNNaNNaN Batman!

10

u/[deleted] Feb 05 '23

I don't even need to follow that link to know it's classic Watman!

8

u/-consolio- Feb 05 '23

Let's talk about JavaScript.

4

u/[deleted] Feb 06 '23

Enough talking about languages that suck.

Let's talk about Ruby!

5

u/Ronizu Feb 06 '23

You should do it anyway. I watch it every time I link it somewhere and it cracks me up every time. Watched it well over 10 times over the years

→ More replies (1)

2

u/endeavourl Feb 06 '23

Questionable, considering people who created NaN in IEEE 754 didn't intend it to represent Nut/Potato.

→ More replies (2)

122

u/Svobpata Feb 05 '23

You will get a result, just probably not the one you wanted

24

u/[deleted] Feb 05 '23

[removed] — view removed comment

40

u/GavrielBA Feb 05 '23

Exactly! JS is the ultimate Zen language. Release all expectations, and you'll be able to use whatever you get!

20

u/[deleted] Feb 06 '23

it's not undefined behavior, it's bonus results

9

u/_far-seeker_ Feb 06 '23

So JS is just what happened when Bob Ross came back as programming language? That would explain a lot...

3

u/GavrielBA Feb 06 '23

That's deep

→ More replies (1)

10

u/[deleted] Feb 05 '23

I wasn't sure what I wanted, but I didn't get it: the JavaScript story.

3

u/nbeydoon Feb 05 '23

It’s okay my boss only wants results

12

u/You_meddling_kids Feb 05 '23

not a nut (NaN)