It's very possible to write--and deploy--very high quality Javascript today.
It's very possible to write--and deploy--very high quality Javascript today.
But I don't disagree that it's possible to write very high quality JavaScript code -- it's just a little bit painful.
In the real world, changing web development to give it the "capabilities and safety of non-web languages" is extremely difficult to do on any sort of timeframe because it needs to be supported AND backwards compatible in all browsers. Realistically speaking, how do you 'fix' web development? How could you make it better?
The modern Javascript ecosystem is a realisation of this and it does the best it can do given the shitty situation it's in - using tooling and preprocessing to give it some features from other types of development, like static types!
> Typescript
Is essentially an entirely different language. But I agree, it's a vast improvement.
> It's very possible to write--and deploy--very high quality Javascript today.
But the language doesn't actively assist in precluding low-quality code, and most production JS that wasn't transpiled is low-quality.
With ES2015 the crowd that hasn't had time to learn JS can just write it like it's Java/C#, with the class syntactic sugar of ES2015.