|
|
|
|
|
by div
5125 days ago
|
|
While I share your "just sit down and learn something instead of complaining" sentiment, in this case I think it's pretty difficult to memorize all the different ways that javascript does type coercion. Sure you get to know the most common pitfalls, but it just feels like even experienced JS programmers get bitten every now and then. By now I'm sure everyone has seen the WAT talk (https://www.destroyallsoftware.com/talks/wat) which illustrates some of the more obscure (and funny) coercions. It's ok to say that JS's type coercion is a misfeature, good programmers learn to not throw out the baby with the bathwater. |
|