3 ms·
Because it hides errors instead of helping the developer find them
by rdtsc 12y ago
Because it hides errors instead of helping the developer find them
- Karunamon 12y agoAre JS developers often adding empty arrays and empty objects together? This seems more like a corner case than a real issue. (Not snarky - I don't know JS)
- tokenizerrr 12y agoNo. You generally only add numbers and strings together.
- rdtsc 12y agoAs often as any programmers deliberately insert bugs in their code ;-) Those values are usually in variables that and have been set maybe from a backend reply or from the UI at some point. That is just one instance of the sloppy mess of weak typing. Instead of writing a long list of it I just used an example to illustrate.