in reply to "advanced" Perl functions and maintainability
1. You consider yourself one of the most advanced perl programmers at your company.
2. You needed to post a question to perlmonks to figure out how to write the code.
What I usually do when I've written something that took me a while to figure out, or that I think might take someone else a while to figure out, is to comment my intentions. That serves at least 2 purposes well: 1) someone skimming the code can look at this section and quickly understand what it's supposed to do, without having to understand the code. 2) if someone needs to debug my code, they at least know what I intended, and can be sure that I wasn't relying on some side-effect, or counting on some behavior for some special case.
Also, if I got help understanding it from some online source or some book, I'll include a link or a book name & page number in the comment to help others.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: "advanced" Perl functions and maintainability
by geektron (Curate) on Dec 13, 2004 at 16:43 UTC | |
by herveus (Prior) on Dec 14, 2004 at 13:11 UTC |