Special

Clearance Sale!

We've been publishing for over five years now and it's time to clear out our inventory of back issues, so we're slashing prices!

RBD Magazines

Check out this amazing clearance sale of all our past issues. Missing some issues? This is a great time to complete your RBD collection. Save up to 40% off the regular price of our printed back issue packages. These prices are only good until the end of the year May 2008 and supplies are limited, so place your order today.

Article Preview


Buy Now

Print:
PDF:

Feature

Refactoring REALbasic Code

Improving the Design of Existing Code

Issue: 4.5 (May/June 2006)
Author: Joe Strout
Article Description: No description available.
Article Length (in bytes): 13,373
Starting Page Number: 31
RBD Number: 4510
Resource File(s): None
Related Link(s): None
Known Limitations: None

Excerpt of article text...

Conventional wisdom and experience say that you design your code first, and then you actually write the code. This up-front design is important, since if you get it wrong, your code will end up an unusable mess, and you'll be forced to throw it out and start over.

Within the last decade, this conventional wisdom has been turned on its head. Software engineers now routinely change the design of existing code, through a systematic process known as refactoring. Refactoring is more than just another tool in your programming toolbox; it fundamentally changes the way you approach software development. This article will show you how to do it, and what it means for your own work.

What is refactoring?

The term "refactoring" is used in two ways. In the generic sense, refactoring is the process of improving the design of existing code. Refactoring is simply making changes to the architecture of your software, without affecting its behavior.

In the more specific sense, a "refactoring" is a particular way of changing the code. The canonical book on the topic (Refactoring by Martin Fowler) details dozens of specific refactorings, and gives each one a name so that we have a common vocabulary for speaking about them. Some of them are quite simple, like "Rename Method" and "Replace Exception with Test." Others are more complex, like "Extract Method" or "Collapse Hierarchy."

...End of Excerpt. Please purchase the magazine to read the full article.

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com