1035
JavaScript (lemmy.ml)
you are viewing a single comment's thread
view the rest of the comments
[-] avidamoeba@lemmy.ca 207 points 1 week ago* (last edited 1 week ago)

This is too stupid so I had to check.

Fuck me.

[-] Alexstarfire@lemmy.world 21 points 1 week 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 1 week ago* (last edited 1 week 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 1 week 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
1035 points (98.6% liked)

Programmer Humor

24079 readers
1004 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