Don’t be afraid to refactor.

There’s no time like the present to make things better.

Refactoring should be a regular part of your development habit. Write tests, develop the code, and refactor to make it better. Then the cycle repeats! Over and over, you add more tests, add more code, and refactor to make the whole thing better. Always refactor, every day.

Each time you refactor, you have a chance to make the code just a bit more awesome. Simplify. Make it more DRY. Apply the SOLID principles. Improve the code. Make it more clean.

Software engineering a wonderful profession. Unlike physical engineering, we can replace components and make improvements pretty easily. If you build a bad bridge, it becomes a year-long project to replace it. If you have a bad subroutine, it can be fixed in under a day.

So get to it.

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s

%d bloggers like this: