this post was submitted on 21 Nov 2023
257 points (90.0% liked)

Programmer Humor

37295 readers
57 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] DarkenLM@kbin.social 16 points 2 years ago (1 children)

Honestly, given the context of a browser, Javascript's "Everything is better than crashing" philosophy does not seem too out-of-place. Yes, the website might break, but at least it would be theoretically usable still.

Yes, a statically typed language would help, but I'd rather not have one that is "these two types are slightly different, fuck you, have a segfault", but rather one that is slightly more flexible.

[–] CanadaPlus 4 points 2 years ago* (last edited 2 years ago) (1 children)

Actually, that's a good point, in scripting fatal type errors can happen at runtime. I guess Python is the right choice then, given it's maturity and popularity, and then you can code the complex stuff in whatever you want via WASM like other people mentioned.

[–] stifle867@programming.dev 2 points 2 years ago

It's interesting to think how this would have changed some of the things we take for granted today. For example, for production we "minify" our CSS and JS, but Python has enforced whitespace. Would we still have come up with minifying and those on restricted data just take the hit?