Skip to content

Think about efficiency of code holistically

When working on code holistically, thinking about the efficiency of your code holistically can help avoid falling into common traps or anti-patterns. There are several parts to how efficient code is, and missing one or more out of your view can result in a limited view.

Things to think about include the following:

  • The time it would take to type out
  • The time it would take to debug in the future
  • The time it would take to modify
  • The time it would take to refactor and use elsewhere
  • The time and work it would take to interop with other code
  • The cumulative time spent working on the code from everyone.