Code formatting

Chris:

  • no preferences about brace placement (I prefer "next line shifted", but I realize almost everyone else uses K&R style, so I don't complain or try to fight it)
  • no 80 (or any) columns restrictions
  • spaces rather than tabs
  • 3 spaces
  • readable (long) variable names
  • generally speaking, Camel-case, no consecutive uppercase characters
  • wherever possible, make variables final
  • no spaces before parenthese
  • one space after comma, no leading and trailing spaces
  • 1 space before and after an equal sign
  • When lines must be wrapped, prefer to align items being wrapped (e.g. params) rather than the "continuation indent"