O'Reilly logo

SAMS Teach Yourself C++ in 10 Minutes SECOND EDITION by Jesse Liberty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Refactoring

The process that was just performed—separating a unit of code into a set of separate functions—is called refactoring. This is a critical activity when creating a complex program, especially when doing so by evolving it from a simpler form.

Many programmers believe that the act of improving (often called enhancing) or repairing a program inevitably makes that program more complex and harder to understand. However, if maintenance of this sort is used as an opportunity for refactoring, it can actually improve the program. And some programmers (the author included) believe that refactoring programs is a worthwhile activity in itself, separate from enhancement or repair.

In this case, the activity of refactoring is fairly simple. In fact, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required