Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Improving your skills by reading module sources

by davies (Prior)
on Aug 06, 2011 at 12:04 UTC ( [id://918924]=note: print w/replies, xml ) Need Help??


in reply to Improving your skills by reading module sources

I recently did some work on an Excel TDD harness (here), and I found it very useful to take some code that was not well documented and write documentation for it, both technical and user. I have often heard that documentation is better when written by someone other than the original programmer, and there are comments in this thread about how poor some of the documentation is. By following this approach, a number of benefits are available, if the module is being maintained. First and most obviously, the community benefits from the documentation. Second, if I were the author of anything on CPAN, I would respond much more favourably to someone who wrote "I'm trying to improve the documentation. Have I understood this properly?" (especially if shown draft documentation) than to "I'm a beginner and don't understand". Third, the code is getting a review that might identify bugs. Even if they aren't fixed, it is useful to have them documented.

Regards,

John Davies

  • Comment on Re: Improving your skills by reading module sources

Replies are listed 'Best First'.
Re^2: Improving your skills by reading module sources
by Tux (Canon) on Aug 07, 2011 at 17:30 UTC

    ++!

    As a side note, I notice that the more complicated my modules are/get, the better my documentation gets, because I have to read the documentation myself to know how to use what I wrote myself. Yes, a system can get complicated or expressive enough for even the author not to use all edge cases.

    Especially when you write/wrote a feature to please someone else, and never saw a (good) use-case yourself, a day may come you think "didn't I implement something like this already?" and then you read your own docs. Proceless!


    Enjoy, Have FUN! H.Merijn

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-20 03:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found