General language conventions

  • Use descriptive variable, function, struct, and object names.
    • int s versus int seconds_elapsed
    • This includes iterators for loops. It’s good to have a descriptive name because this will help describe what the loop does, especially if the loop is used for something physical (accessing an array of streets, etc).
    • In the same thought process, constants should ideally have meaning.