this post was submitted on 05 May 2025
381 points (98.7% liked)

Programmer Humor

23011 readers
1628 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] victorz@lemmy.world 2 points 15 hours ago (21 children)

Classic people who don't know how to code wat. Passing a number in place of a string argument because they don't know what they're doing.

[–] jjjalljs@ttrpg.network 33 points 15 hours ago (10 children)

Javascript could throw an error to alert you that the input is supposed to be a string, like most languages would do.

[–] heavy@sh.itjust.works -3 points 14 hours ago (6 children)

Theoretically, Javascript is an untyped language, so there aren't supposed to really be static types. Giving type errors in this situation would be against design.

[–] jjjalljs@ttrpg.network 25 points 13 hours ago (1 children)

Maybe the design is bad, then.

[–] heavy@sh.itjust.works 4 points 13 hours ago

Lol you'll get no argument from me. It's not my favorite language.

load more comments (4 replies)
load more comments (7 replies)
load more comments (17 replies)