in reply to Documenting Methods/Subs
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. |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Documenting Methods/Subs
by Tanalis (Curate) on Jan 10, 2003 at 17:33 UTC | |
|
Re: Re: Documenting Methods/Subs
by ihb (Deacon) on Jan 10, 2003 at 21:13 UTC | |
|
Re: Re: Documenting Methods/Subs
by vek (Prior) on Jan 10, 2003 at 17:49 UTC | |
|
Re: Re: Documenting Methods/Subs
by autarch (Hermit) on Jan 11, 2003 at 05:16 UTC | |
|
Re: Re: Documenting Methods/Subs
by Anonymous Monk on Jan 10, 2003 at 17:36 UTC | |
|
Re^2: Documenting Methods/Subs
by adrianh (Chancellor) on Jan 12, 2003 at 11:56 UTC | |
|
Re: Re: Documenting Methods/Subs
by pdcawley (Hermit) on Jan 13, 2003 at 12:10 UTC | |
|
Re: Re: Documenting Methods/Subs
by hardburn (Abbot) on Jan 13, 2003 at 16:45 UTC |