how else would know what your API consists of? (it shouldn't be magic).=head2 returnName =cut
Comments are not documentation -- or comments are documentation for the developers of the API. The users of the API should refer to the user documentation (the pod).
Comments needn't truly be comments (=for comment ...=begin comment ...)
I heartily disagree Abigail's comment that people who document every sub are wrong. There is no such thing as too much documentation, no matter how redundant it may be.
Lack of documentation is almost always wrong (programmers should not resort to sourcediving to learn function names).
|
MJD says you can't just make shit up and expect the computer to know what you mean, retardo! ** The Third rule of perl club is a statement of fact: pod is sexy. |
In reply to Re: Documenting Methods/Subs
by PodMaster
in thread Documenting Methods/Subs
by vek
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |