O'Reilly logo

Agile Java Development with Spring, Hibernate and Eclipse by Anil Hemrajani

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

B. Refactoring Done to Sample Application

THE FOLLOWING CODE, CONFIGURATION, AND SCRIPT excerpts show a few simple examples of how the sample application in this book was refactored as it was being built incrementally.

Note

The book’s code zip file contains two project directories for our sample application: timex/ and timex2/. The latter contains much of the refactored code discussed next.Because you have both versions, you can compare the two code bases to see how refactoring works in the real world. Remember, it isn’t about being perfect the first time—just good enough. Get everything working first; then optimize your code later. This is what refactoring is all about—continuous design and redesign, by improving code as necessary, versus ...

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