4 ms·
Once you work with several languages it’s really hard to keep track of all this stuff. I never know what exactly evaluates to true vs false in PHP or JavaScript
by maxxxxx 7y ago
Once you work with several languages it’s really hard to keep track of all this stuff. I never know what exactly evaluates to true vs false in PHP or JavaScript for example. Add to that sloppy programmers on your team who don't check their assumptions it’s really easy to have a ton of subtle bugs in your code.
- fieryscribe 7y ago> I never know what exactly evaluates to true vs false in PHP or JavaScript for example. You don't have to know if you don't use implicit type-casting. Make it explicit and you won't really have to worry about it. "Explicit is better than implicit" is part of the Zen of Python for a very good reason.
- maxxxxx 7y ago"You don't have to know if you don't use implicit type-casting. Make it explicit and you won't really have to worry about it. " Correct. Unfortunately a lot of people use implicit casting a lot and have no idea that that's what they are doing.