Translate

Friday, 6 September 2013

Coding for maintainabilty

Coding for maintenance purposes.To me, if code must be maintainable that means we can expect to revisit the code to make some sort of change to it in the future. Code is always "changeable" no matter what state it is in. So does this mean code needs to be easy to change?

However, if our code was scalable/extensible, there would be no need to directly change it, because it will "change" (adapt) for free and automatically.
I've also seen code maintainability used interchangeably with coding standards. Using a consistent coding pattern or style, does this really make code more maintainable? More readable and more consistent? Sure, but how does this improve the maintainability?

Now it does not mean code needs to be easy to change. We can write a "hello, world" program in C++ in more than one way. Just cause its easy to read doesn't make it easier to maintain.

No comments:

Post a Comment