Writing Maintainable Perl
Explore principles for writing maintainable Perl code by learning how to remove duplication, choose clear names, avoid unnecessary cleverness, and embrace simplicity to enhance your programming skills and make future edits easier.
We'll cover the following...
Maintainability
Maintainability is the nebulous measurement of how easy it is to understand and modify a program. Write some code. Come back to it in six months (or six days). How long does it take you to find and fix a bug or add a feature? That’s maintainability.
Maintainability doesn’t measure whether we have to look up the syntax for a built-in or a library function. It doesn’t measure how someone who has never programmed before will or won’t read our code. Assume we’re talking to a competent programmer who understands the problem we’re trying to ...