Ten Essential Development Practices is an article from Perl.com (O’Reilly) based on Perl Best Practices, a book on Perl coding and development guidelines. Given how obvious the items on this list are, it’s surprising how this isn’t followed.
- Design the Module’s Interface First
- Write the Test Cases Before the Code
- Create Standard POD Templates for Modules and Applications
- Use a Revision Control System
- Create Consistent Command-Line Interfaces
- Agree Upon a Coherent Layout Style and Automate It with
perltidy
- Code in Commented Paragraphs
- Throw Exceptions Instead of Returning Special Values or Setting Flags
- Add New Test Cases Before you Start Debugging
- Don’t Optimize Code–Benchmark It