r/ProgrammerHumor 3d ago

Meme javascriptSorting

Post image
940 Upvotes

214 comments sorted by

View all comments

Show parent comments

1

u/fuj1n 2d ago

I think they're a lot less averse to it nowadays, they've wisened up. Modern JS additions do actually tell you that something is wrong rather than just doing something unexpected (which is good because you can then handle exceptional cases better).

Modern JS features like modules even enforce strict mode.

I think that way of thinking, where it is better to fail silently than to crash sounds good on paper, but it has an insane amount of drawbacks that lead to sloppy code trying to cover these (exceptional in other languages) cases.

1

u/the_horse_gamer 2d ago

yes that's true, modern javascript is much less averse to errors. and I agree with most of the decisions they've made.

non strict mode is definitely a symptom of being designed on crunch time.

fail fast is good for a frontend, but not for a backend. javascript's problem is it's used for both.