Skip to Main Content
Applied Software Project Management
book

Applied Software Project Management

by Andrew Stellman, Jennifer Greene
November 2005
Beginner to intermediate content levelBeginner to intermediate
324 pages
13h 21m
English
O'Reilly Media, Inc.
Content preview from Applied Software Project Management

Refactoring

To refactor a program is to improve the design of that program without altering its behavior.[*] There are many different kinds of improvements—called refactorings— that can be performed.

Every programmer knows that there are many ways to write code to implement one specific behavior. There are many choices that do not affect the behavior of the software but that can have an enormous impact on how easy the code is to read and understand. The programmers choose variable names, decide whether certain blocks of code should be pulled out into separate functions, choose among various different but syntactically equivalent statements, and make many other choices that can have a significant impact on how easy the software is to maintain.

Many programmers think of coding as a purely constructive task, for which the only reason to add, remove, or change the source code is to alter the behavior of the software. Refactoring introduces a new concept: adding, removing, or changing the source code for the sole purpose of making it easier to maintain. There are many different refactorings, or techniques, through which programmers can alter their code to make it easier to understand.

Refactoring is a new way of thinking about software design. Traditionally, software is designed first and then built. This is especially true of object-oriented programming, where the programmers might be handed a complex object model to implement. But most programmers who have worked on a reasonably complex ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Project Management for IT-Related Projects, 3rd Edition

Project Management for IT-Related Projects, 3rd Edition

Bob Hughes, Roger Ireland, Brian West, Norman Smith, David I. Shepherd

Publisher Resources

ISBN: 0596009488Errata