Skip to content
This repository has been archived by the owner on Jul 8, 2022. It is now read-only.
Ingvord edited this page Nov 4, 2016 · 10 revisions

Clean code guidelines:

  • standard naming patterns (for-loop);
  • Avoid:
    • nested ifs,
    • huge switches,
    • incomplete variable names;
  • each method does exactly one thing;
  • extract general purpose classes;
  • execution pattern: create than execute;
  • each class in its own header+source (export as few as needed by the user)
  • Eliminate dead code
  • always true/false;
  • fixed value params
  • Etc
  • Use integral types to calculate time
Clone this wiki locally