Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: OOPerl isn't that bad after all... (do write docs)

by Aristotle (Chancellor)
on Oct 05, 2003 at 20:10 UTC ( [id://296778]=note: print w/replies, xml ) Need Help??


in reply to Re: OOPerl isn't that bad after all...
in thread OOPerl isn't that bad after all...

The source being available is no reason not to write documentation. If everyone had to read the glibc and Linux kernel sources to write programs for Linux, we'd never have gotten anywhere.

Documentation is like sex — when it's good, it's very good, and when it's bad, it's still better than nothing.

The fact that POD makes it particularly easy to document means you really have no excuse not to write documentation. Imagine CPAN without POD, and half the modules without documentation: sure, there's all this great code out there, but if you want to know what it does you have to download and unpack it, and if there's no docs, read the source. How much use would such a repository be?

One thing that's cool about the hacker culture, however, is that even if you only wrote very sparse docs to begin with, if there's a lot of interest in your code it's likely that others will contribute documentation. They can also spot documentation errors for you, because they can read the source. Just remember that without any docs, it's not likely that anyone else will get interested. Make it habit to slap at least some basic POD onto your Perl code.

Makeshifts last the longest.

  • Comment on Re^2: OOPerl isn't that bad after all... (do write docs)

Replies are listed 'Best First'.
Re: Re^2: OOPerl isn't that bad after all... (do write docs)
by xaphod (Monk) on Oct 05, 2003 at 20:23 UTC

    The source being available is no reason not to write documentation. - True. Doesn't stop me from being lazy.

    The fact that POD makes it particularly easy to document... - I'd forgotten about POD, it's so much part of my perl, it is perl.

    I should also add that even if you don't plan to release your code, writing some documentation is "best practice", it will save hours of irrtation when you need to hack some of your old code.

    --
    TTFN, FNORD

    xaphod

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://296778]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-20 02:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found