We probably should look into cpplint, but until then, these are some simple hacks to catch common mistakes.