this post was submitted on 28 Jun 2025
1068 points (99.2% liked)

Programmer Humor

24628 readers
865 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] 35 points 1 day ago (3 children)

As someone who mostly avoids JavaScript, I don't see the IT in this image, I just see a bad language I avoid!

[–] [email protected] 4 points 20 hours ago

I promise you, people make mistakes in every language lol.

[–] [email protected] 15 points 1 day ago (4 children)

This isn't the languages fault, it's the developers.

[–] [email protected] 2 points 22 hours ago
[–] [email protected] 6 points 22 hours ago (1 children)

Albeit true, I want to note that some languages encourage such practices way more than others do. Also, when you've got a hammer everything looks like a ~~string~~ nail.

[–] [email protected] 1 points 16 hours ago

In my mind a simple unit test should have caught this. Mock out the call to the service that sends the message and verify that it's been called with the correct message, and cover the possible failure scenarios. That said I hate loosely typed languages lol.

[–] [email protected] 2 points 1 day ago

I'm assuming by this you mean the developers of JS /s

[–] [email protected] 4 points 1 day ago (1 children)

besides NaN actually being a number, this could completely and easily be avoided with typescript.

[–] [email protected] 5 points 1 day ago

Naaah. Good programmers know how to use as any as any to make this work in typescript as well.

[–] [email protected] 3 points 1 day ago

I had the exact same reaction.