4 ms·
Dart is a better ES5, but a worse ES6. If you compare Dart to the JavaScript that existed when it was created, it’s great. If you compare it to modern JS, it’s
by earthboundkid 6y ago
Dart is a better ES5, but a worse ES6. If you compare Dart to the JavaScript that existed when it was created, it’s great. If you compare it to modern JS, it’s crap. Modern JS is really, really good. The main problem with it is that the ecosystem is only just so-so. People still complaining about JS in 2020 are mostly just showing their own ignorance of what the language is now.
- wolco 6y agoThe lack of a standard lib puts pressure on the ecosystem to provide simple functionality like leftpad for every project. Managing those is diffcult.
- earthboundkid 6y agoLeft pad specifically is part of the standard library now: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... Yes, there are still shortcomings, but to me, the biggest shortcoming is too much legacy crap that doesn’t use the standard library. For example, Express predates the standard request, response, and URL classes, so it invents its own. Plus Node doesn’t even fetch FFS. If everyone actually wrote things in modern JS, the situation would be better.
- jolux 6y agoDart is statically typed. I still miss the type system in JavaScript, and as much as I like TypeScript after I get it working, it has too many configuration options.
- fauigerzigerk 6y agoSo that was your proclamation. Now let's hear your arguments...