this post was submitted on 23 Jun 2024
729 points (96.4% liked)

Programmer Humor

25484 readers
2132 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
[–] morgunkorn@discuss.tchncs.de 137 points 1 year ago (12 children)

On the other hand, I don't think you should add those ever

[–] firelizzard@programming.dev 52 points 1 year ago (7 children)

Sure. But in a sane language doing something totally nonsensical like that is an error, and in a statically typed language it’s a compiler error. It doesn’t just silently do weird shit.

[–] jcg@halubilo.social 1 points 1 year ago (3 children)

What's a sane, dynamically typed language?

[–] firelizzard@programming.dev 3 points 1 year ago

I was trying to make a point without starting a flamewar that was beside the point. Personally I’d never choose a dynamically typed language for a production system. That being said, Python and Ruby complain if you try to add an array, dict/hashmap, string, or number to another (of a different type) so they’re certainly more sane than JavaScript.

load more comments (2 replies)
load more comments (5 replies)
load more comments (9 replies)