this post was submitted on 05 May 2025
492 points (98.8% liked)

Programmer Humor

23310 readers
1132 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
[–] [email protected] 37 points 1 week ago (11 children)

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

[–] heavy -3 points 1 week ago (7 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.

[–] [email protected] 6 points 1 week ago (3 children)

JavaScript has types and it does have type errors, for instance

> null.foo
Uncaught TypeError: null has no properties

Please stop spouting nonsense on issues you know nothing about.

[–] heavy -4 points 1 week ago (1 children)

Dynamic types aren't static types my man. I think you got some learning to do.

[–] [email protected] 5 points 1 week ago (1 children)
[–] heavy 0 points 1 week ago

Lol like facilitate versus effectuate

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