Advertisement

Refactoring

  • Michael Stueben
Chapter

Abstract

When your program is finished, don’t walk away. Consider redesigning it—as long as a deadline is not looming. Redesigning, not to optimize, but to make working code easier to understand, to debug, to modify, and to integrate with other code is common enough to have a name: refactoring Refactoring is reconsidering both variable and function names, breaking multi-tasking functions into single-task functions, applying stepwise refinement, reconsidering the choice of data structures, considering cohesion versus coupling, and rewriting code to make it clearer and more efficient.

Copyright information

© Michael Stueben 2018

Authors and Affiliations

  • Michael Stueben
    • 1
  1. 1.Falls ChurchUSA

Personalised recommendations