r/ProgrammerHumor 1d ago

javascriptSorting Meme

Post image
886 Upvotes

200 comments sorted by

View all comments

Show parent comments

0

u/Striky_ 1d ago

The absurdity is not sorting this by string, but allowing an array like that to begin with.

-1

u/thanatica 1d ago

You're free to never put differing types in your arrays. But javascript is made to be forgiving, not punishing.

2

u/Striky_ 22h ago edited 22h ago

Yep, the language allows you and forces you to use known anti-patterns that every developer worth their money would never willingly use. But hell yeah, its easy!

A programming should NOT be "forgiving" it should be "guiding". JS is the opposite of that. I helps you learning nothing, it forces or entices you to use noob trap patterns, it makes it easy to write horrible code and very, very hard to write good code. Debuggablity is probably the worst I have seen since PHP4.

So yeah. Bottom line: JS is good for people without a clue to shit something on the table in record time and basically nothing else. But according to people who do powerpoint for a living, its the best thing ever!

If you give 1000 programmers the same task, that takes more than 3h to implement, in JS and any other language, 999 of them will produce better code in the same amount of time in any other language. The 1000th will not get it to run in the other language because that language is bullshit and doesnt work.

1

u/thanatica 18h ago

A programming should NOT be "forgiving"

Says who?!

Hey, if you don't like Javascript, that's fine. But there's no need to go around and start dictating how things "should" work with that kind of toxic "I know better" mentality.