DEV Community

Discussion on: What's the worst part about the JS ecosystem?

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

I complain more about Python though.

To me JavaScript is not so bad, although there are some major flaws. I will type later.

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited
  • No warning on bad arithmetic, nonsense type coercion, e.g. [1, 2] + [3, 4]. I sometimes did this, coming from Python. And, left-side type coercion?
  • No real Array data type. No IndexError on bad insertion.
  • No integer. To use with Array, for example.
  • Prototype-based inheritance is confusing; and I am not sure if it is even recommended.
  • Over-engineering - why make a class that is based on Prototype? Object.create()?
  • Threading is very recent, and is just actually fork or equivalent to iframe.
  • Non-specific try-except. Actually, you should always specify the Error type.
  • Diversification of standards. Browser-side and server-side are very different.

There is TypeScript, but it also has a fair share of love-hate as well.