Refactoring Code

September 29, 2010

I just finished Martin Fowler’s book describing code refactoring. Refactoring is a process of changing code to make it easier to understand and easier to build on. Its a process software engineers should go through regualrly whilst working with software, always asking the question could this be done better. The ultimate aim is to build functionality faster although at first it may seem like you are going to be slowing down as reworking code initially has no new functionality built in. However, the benefits when you start adding code become obvious in terms of creating the code faster and requiring less debugging later as the new code tends to get to a working state sooner. Later, when the code is revisited for additional improvements, you will find it easier to read and easier to rework.



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: