Put spaces around binary operators (a + b). Exception: don't put spaces around the "range to" operator (0..i). Do not put spaces around unary operators (a++) Put spaces between control flow keywords ...