Always use {} to wrap the actions of conditionals and such, even if they are just one line. We’ve had bugs where someone added a second line without realizing it was part of a “then” clause, and tracking this down took a surprisingly long time.

For example,

   if (foo)

should be

   if (foo) {

Trackback URL
Leave your own comments about this post:
You must be logged in to post a comment.