(The page is originally from StackOverflow, but that question was deleted and hence the link to stack-printer).
One of my favorites:
"Yoda Conditions"— using
if(constant == variable)instead of
if(variable == constant), like
if(4 == foo). Because it's like saying "if blue is the sky" or "if tall is the man".