1039
JavaScript (lemmy.ml)
you are viewing a single comment's thread
view the rest of the comments
[-] avidamoeba@lemmy.ca 208 points 4 weeks ago* (last edited 4 weeks ago)

This is too stupid so I had to check.

Fuck me.

[-] Alexstarfire@lemmy.world 21 points 4 weeks ago

Unfortunately, it makes sense if you know what + means, which is concatenate. - is strictly a math function though.

Not saying that makes this better. It just makes sense.

[-] grue@lemmy.world 27 points 4 weeks ago* (last edited 4 weeks ago)

It is 'comprehensible' in the sense that it's possible to figure out how it happened, but it absolutely does not "make sense" in terms of being a reasonable language design decision. It's 100% incompetence on the part of the person who created Javascript.

[-] raspberriesareyummy@lemmy.world 2 points 4 weeks ago

Thanks for saving me the typing.

load more comments (5 replies)
load more comments (9 replies)
load more comments (31 replies)
this post was submitted on 04 Jun 2025
1039 points (98.6% liked)

Programmer Humor

24709 readers
408 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS