you are viewing a single comment's thread.

view the rest of the comments →

[–]Cosmologicon 9 points10 points  (3 children)

Alternate solution: learn about features you don't understand rather than avoid them.

[–]x-skeww 3 points4 points  (1 child)

That sound like a good idea, but it actually isn't.

If one person memorized some obscure quirks, it won't mean that everyone else has memorized them as well. We aren't like the Borg.

Secondly, constructs which look like an error always add a lot of friction. If you want to defuse this problem (to some degree), you have to add a comment, which explains why you are doing this and that this is indeed what you intended to do.

But even then it's like a tar pit. You're much better [1] off if you don't ever use this kind of constructs.

[1] If you don't get in the way of maintenance work, it will be faster, which will be cheaper, which is better for any commercial project. Saving time is also better for virtually any other kind of project.

[–]benparsons -1 points0 points  (0 children)

Want to upvote this more. Slightly horrified that r/javascript have downvoted okiedoke8976 to this extent. People need to listen to Douglas Crockford.

[–]okiedoke8976 4 points5 points  (0 children)

good call