Appendix B. Refactoring Done to Sample Application


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 timejust good enough. Get everything working first; then optimize your code later. This is what refactoring is all aboutcontinuous design and redesign, by improving code as necessary, versus trying to perfect everything up front.

For details on the concepts and types of refactoring, visit refactoring.com.




Agile Java Development with Spring, Hibernate and Eclipse
Agile Java Development with Spring, Hibernate and Eclipse
ISBN: 0672328968
EAN: 2147483647
Year: 2006
Pages: 219

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net