Explanation

  • Functions better than classes
  • Closures
  • Always prefer std::vector over C-arrays.