3 ms·
For most things, yes. But this is JavaScript, the language where intransitive equality, implicit object-to-primitive casting and mutable global objects must be
by wizzwizz4 5y ago
For most things, yes. But this is JavaScript, the language where intransitive equality, implicit object-to-primitive casting and mutable global objects must be used in all slight-above-trivial code. Where `typeof` is useless and wrong, but nonetheless necessary; where there are seven different ways to parse a number, with six different semantics… there's a reason that “JavaScript: The Good Parts” is such a short book. https://blog.klipse.tech/assets/js_good_parts.jpg https://blog.klipse.tech/assets/js_good_parts.jpg
Somebody who knows the good parts of JavaScript is a JavaScript expert. You want somebody who can write good JavaScript, and using the bad parts well has nothing on using the good parts adequately.
- woutr_be 5y agoI disagree, knowing the good parts about JavaScript isn’t difficult. What’s more difficult is being able to explain the bad parts about your main language. And JavaScript has quite a few, if you’re not able to highlight those, I wouldn’t consider you an expert at all. By knowing all the bad parts, you’ll be able to write much better code, because you know what to look out for.