3 ms·
I try really hard to not complain, because we're stuck with JavaScript. But I'd just love to tear it down and start again. For something that's supposed to be
by andyp-kw 6y ago
I try really hard to not complain, because we're stuck with JavaScript.
But I'd just love to tear it down and start again.
For something that's supposed to be a universal programming language, it's got so much stuff like this that makes it so unfriendly to newbies.
- danielheath 6y agoIf you don’t need ie11, wasm works everywhere. Emscripten can produce js as well as wasm, so you can build both and deliver according to support.
- elevenoh 6y ago>it's got so much stuff like this that makes it so unfriendly to newbies what's another one?
- andyp-kw 6y agoI work with many developers who don't speak English as a first language and they find things in JavaScript like .filter to be hard to grasp, but .Where in C# makes perfect sense to them because they understand that they're looking for something in a list "Where" their conditions are met. That's just one example of things in JavaScript that are poorly named for people to guess what they do.
- naniwaduni 6y agoThe opposite, actually. "filter" is just a verb you can look up in a dictionary and roughly understand its meaning. "Where" is grammatical and hard to grasp without a holistic understanding of English grammar. Linguistic Moravec paradox, if you will. Now, explaining Ruby's collect/detect/inject/select/reject, that's a whole different matter...
- andyp-kw 6y agoI don't care what it says in the dictionary, I'm going on real life cases from my colleagues in SEA who don't speak English as a first language.
- astura 6y agoScope of var (they fixed this with let) Automatically creating a variable (with global scope) if you attempt to use a variable that doesn't exist. Semicolons are optional, except when they aren't. == and === (at minimum they should be reversed)
- elevenoh 6y ago>Automatically creating a variable (with global scope) if you attempt to use a variable that doesn't exist. I just tested this as I think you're describing & it didn't create a global var. Could you give an example?
- astura 6y agohttps://stackoverflow.com/questions/53330616/please-explain-automatically-global-in-javascript https://stackoverflow.com/questions/53330616/please-explain-...