in reply to Re^4: Meta-perl - sorting my perl subs with perl?
in thread Meta-perl - sorting my perl subs with perl?
Comments are for the programmer, that is, the person maintaining the code. POD is there to create a manual. The intended audience is the user of the code. I usually do not document my subs in the same order as they appear in the file, and I typically have quite a number of subs that will not be documented in the user manual. And I want to be able to reorder my subs, or my documentation, without having to reorder the other.
have to duplicate your POD in a comment.So what? If the goal is to minimize the work you need to do as a programmer, don't write any POD or comments. If the the goal is to create a better product, I don't care if there's some duplication going on. Copy and paste is cheap and easy. (But it will be a selective copy and paste anyway).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Meta-perl - sorting my perl subs with perl?
by educated_foo (Vicar) on Jan 23, 2012 at 16:46 UTC | |
by JavaFan (Canon) on Jan 23, 2012 at 18:15 UTC | |
by educated_foo (Vicar) on Jan 24, 2012 at 16:46 UTC | |
by JavaFan (Canon) on Jan 24, 2012 at 21:13 UTC | |
by LanX (Saint) on Jan 25, 2012 at 00:11 UTC | |
|