Learning Android™ Application Programming: A Hands-On Guide to Building Android Applications
by James Talbot, Justin McLean, Jorge Hernandez
Refactoring Your Code
As you’ve learned, refactoring is a disciplined technique for improving the structure of your code without changing its functionality. In Chapter 4 you looked at the simplest kind of refactoring: renaming files. In addition, you can use refactoring to move properties and methods around. You can even use it to move whole classes around. If there were no refactoring support in Eclipse, it would be cumbersome to move properties, methods, and classes by hand.
Refactoring to implement good principles of design is optimal, because you can make your code easier to understand and much easier to maintain and test. It also makes it much easier to find bugs as well as add functionality in the future.
Before you start, don’t forget ...
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.
Read now
Unlock full access