35 ms·
The vast majority of these are implicit type coercion issues. Which is fairly easily banned with a linter. Once you've done that, I think JavaScript is probably
by nicoburns 5y ago
The vast majority of these are implicit type coercion issues. Which is fairly easily banned with a linter. Once you've done that, I think JavaScript is probably the nicest of the big dynamic scripting languages (Perl, PHP, Python, Ruby) to work with.
There could definitely be improvements, but trash seems to be taking things too far.
- pansa2 5y ago> I think JavaScript is probably the nicest of the big dynamic scripting languages (Perl, PHP, Python, Ruby) to work with. As an experienced Python programmer learning JavaScript, this isn’t true for me yet but I hope it becomes true. I think JS will be much more useful to me than Python. > Which is fairly easily banned with a linter. Any particular recommendations?
- furstenheim 5y agoEslint is the default linter. Standard is a curated list of rules with good quality. https://github.com/standard/eslint-config-standard https://github.com/standard/eslint-config-standard I would start with that and tweak what you don't like
- dfabulich 5y ago> Any particular recommendations? TypeScript.
- ehnto 5y agoThe article only really touches on weird language caveats, but where JS really gets weird is it's ecosystem. If you are working with JS in a commercial capacity you will eventually find dependency hell, arbitrary toolchain complexity, asynchronous and callback mind bending, transpiling and compilation, and all just to render some HTML. Quick, get your compsci degree bobby, we need to make this button go to another page!