It's Almost 2014 and We Are Still Committing Broken Code
Dispite testcases, syntax errors still find their way into our commits.
A collection of 33 posts
Dispite testcases, syntax errors still find their way into our commits.
In loosely typed languages such as JavaScript or PHP, using == to compare values is bad practice because it doesn't account for type, hence false == 0 == '' == null == undefined, etc. And you may accidentally match more...
PHP's strrev is not safe to use on utf-8 strings because it reverses a string one byte at a time. So if a character consists of multiple bytes it cannot be preserved as an entity in the reversed result.
"Simplicity is prerequisite for reliability."
This article in 50 words: I used to prefer spaces vs tabs, now I don't care so much, think it's more important that you can easily switch on a per-project basis. Have some thoughts on how conventions should be established,...