O'Reilly logo

Microsoft Dynamics NAV by Mark Brummel, Christopher Studebaker, David Studebaker, David Roys, Vjekoslav Babić, Cristina Nicolàs Lorente, Laura Nicolàs Lorente, Alex Chow

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

The boy scout rule

Refactoring can be very complex, time consuming, and can lead to disruption in the release cycles. It should therefore be handled with care and tested thoroughly.

When applications have big pieces of legacy code, the question often rises of where to start and when to implement the methodology, as discussed in this book.

A simple rule is to leave the objects that you touch in better condition than when you started working on them. This rule, however, conflicts with the rule of only refactoring without changing the application.

Refactoring can lead to errors that did not exist before. Making mistakes is what makes us human. Refactoring should therefore never be done as a part of bug fixing.

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