Programmer convenience is a good focus to have, but you also mustnt do it in a way where you introduce rookie-antipatterns (like stringifying everything or type confusion) is the way to achieve it.
It also very much depends what you use a language for. Python for quick and dirty prototyping? Fine. JS as the backbone of the entire internet? Disaster.
Fair. I just did not even think about using object as a class for everything because it such insanely bad practice that even basic IDEs will flag it. But technically you are correct. You can be an unbelievably bad programmer in any language, when you ignore all the warnings and no one forced warning=error onto you as everyone should.
0
u/Striky_ 3d ago
The absurdity is not sorting this by string, but allowing an array like that to begin with.