The Pragmatic Craftsman :: Simplicity from complexity : by Stanley Kubasek ::

What is Maintainable Code

While reading the excellent Javascript book, Professional Javascript for Web Developers, I came across a very good definition of maintainable code. It’s one that I fully subscribe to, but since it was put so well in the book, here it is.

What is Maintanable Code?

Maintainable code has several characteristics. In general, code is said to be maintainable when it is all of the following:

  • Understandable – Someone else can pick up the code and figure out its purpose and general approach without a walkthrough by the original developer.
  • Intuitive – in the code just seem to make sense, no matter how complex the operation.
  • Adaptable – The code is written in such a way that variances in data don’t require a complete rewrite.
  • Extendable – Care has been given in the code architecture to allow extension of the core functionality in the future.
  • Debuggable – When something goes wrong, the code gives you enough information to identify the issues as directly as possible.

Being able to write maintainable JavaScript [any language] code is an important skill for professionals. This is the difference between hobbyists who hack together a site over the weekend and professional developers who really know their craft.

Very well said, Mr. Zakas!

Being able to write maintainable code is what distinguishes you as a programmer. It’s a difference between a craftsman and an apprentice.

ReferenceProfessional Javascript for Web Developers (2nd ed), Nicholas C. Zakas

Favorite Quote

Topics

Tags

Archive

Currently Reading

Info

© 2001-2024 Stanley Kubasek About me :: Contact me

Me on Twitter

»see more

Recent Entries