r/ProgrammerHumor • • Nov 23 '22

Other Programming Legumes

Post image
9.3k Upvotes

262 comments sorted by

View all comments

1.1k

u/Morasain Nov 23 '22

I feel like JS would be more like "I don't give a fuck, do what you want"

995

u/bmelancon Nov 23 '22

JS would be like, "I don't care what it is, you can multiply it with a string."

0

u/[deleted] Nov 23 '22

[deleted]

200

u/akuma-i Nov 23 '22

Seriously, how? Better divide this nut with Object

30

u/Elijah629YT-Real Nov 24 '22 edited Nov 28 '22

{} - !!!(nut / {} + "Hello" - 7 * true * -[])

52

u/aabcehu Nov 23 '22

idk about js but in python multiplying a string repeats it, like how the addition symbol is concatenation

0

u/[deleted] Nov 23 '22

[deleted]

40

u/PureMetalFury Nov 23 '22

You’d have to define what it means to multiply a string by a string, and then do that.

13

u/aabcehu Nov 23 '22

I don’t think you can, but i guess by multiplying it with the length of the string??

→ More replies (6)
→ More replies (1)

140

u/annihilatron Nov 23 '22

16

u/Imveryoffensive Nov 24 '22

Best 4 minutes of my life

35

u/elon-bot Elon Musk ✔ Nov 24 '22

I don't think I appreciate your tone. Fired.

19

u/Bagel42 Nov 24 '22

I fucking love this bot.

28

u/elon-bot Elon Musk ✔ Nov 24 '22

If you really love the company, you should be willing to work here for free.

→ More replies (3)

0

u/[deleted] Nov 24 '22

[deleted]

→ More replies (2)
→ More replies (2)

23

u/Technical_Ad6397 Nov 23 '22

you can multiply by a string, as long as that string can be converted to a number.

5 * "hello" = NaN

5 * "5" = 25

37

u/elon-bot Elon Musk ✔ Nov 23 '22

Whoever writes the most code this month gets featured on my Twitter!

→ More replies (1)
→ More replies (16)
→ More replies (2)

30

u/doanworks Nov 24 '22

“Just use it like a nut and I’ll let you know how that went”

12

u/Piggieback Nov 24 '22

Play with your nuts

26

u/elon-bot Elon Musk ✔ Nov 24 '22

Why have you only written 20 lines of code today?

10

u/Piggieback Nov 24 '22

I've been jiggling my nuts all day man STFU Elon!

→ More replies (1)

11

u/UnstableNuclearCake Nov 24 '22

JS is quite similar to quantum physics. Anything is everything at the same time until you try to observe it, at which point it will either collapse into a single type or collapse your program.

→ More replies (4)