1. A single file should contain fewer than 20000 lines of code. Preferably 1000.
  2. A single file should contain only one class. If this breaks the previous rule then your class is probably too large: refactor.
  3. It would be nice if a single routine could fit into 100 lines of code.
  4. Unit testing is awesome and will almost certainly catch on.
  5. Use consistent formatting. Even better: don’t bother and let clang-format do it. When you change your mind, just update the config and rerun.