Writing Maintainable Code

A big wrenche Jeremy Miller believes that among the various beneficial and important qualities a codebase can have, the single most important quality of code is maintainability. I totally agree, having spent many hours maintaining legacy code written years ago as well as code I wrote a week ago.

As soon as a line of code is typed on the screen, it becomes legacy. You are now maintaining that code.

Enterprise software systems change.  Business rules change, technology platforms change, third party dependencies are upgraded.  ...

Enterprise systems typically aren’t replaced because they stop working.  The end of life cycle for an application or system is often brought about because the system has become too difficult, risky, or expensive to modify to keep up with evolving needs.

According to Robert L. Glass in Facts and Fallacies of Software Engineering, research shows that maintenance typically consumes from 40 to 80 percent of software costs, typically making it the dominant life cycle phase of a software project.

Fortunately, Jeremy has your back. He’s written a multi-part treatise/manifesto on writing maintainable code. Some of the posts are a bit longer than your typical skim it while reading blogs during a compile entry, but are well worth reading.

Print them out, sit back with a fine glass of scotch, and savor the excellent knowledge he imparts.

I look forward to the next post in the series.

What others have said

Requesting Gravatar... Steve Harman Jan 09, 2007 8:30 PM
# re: Writing Maintainable Code
How the F did I not have Jeremy Miller's blog in my feed aggregator? Shame on me.

Phil, thanks for the pointer to Jeremy's blog! I just spent the last 45 minutes catching up on all of the goodness I've been missing out on.
Requesting Gravatar... Andrew Stopford's Weblog Jan 11, 2007 2:25 AM
# Writing maintainable code
Phil points to a series of great posts by Jeremy Miller on writing maintainable code. The software ecosystem
Requesting Gravatar... WPF Community Bloggers Jan 11, 2007 3:33 AM
# Writing maintainable code
Phil points to a series of great posts by Jeremy Miller on writing maintainable code. The software ecosystem
Requesting Gravatar... Member Blogs Jan 14, 2007 6:43 AM
# Links (1/10/2007)
.NET, C#, VB.NET Fast Dynamic Property Access with C# - using reflection Regular Expressions Orthogonal

What do you have to say?

(will show your gravatar)
Please add 8 and 3 and type the answer here: