Code refactoringΒΆ

Tips:

  • Replace macros with inline functions.
  • Refactor functions to linearize and shorten them.
  • Use RAII.
  • Litter your code with const qualifiers.
  • Use c++ casts instead of c casts.
  • Use algorithms instead of loops.