Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Reading the thoughts by on Arnon Rotem-Gal-Oz on Code Readability: Documentation vs. Refactoring , I think he hits the argument on the head and drives it right home.

Currently I do most of my code development in .NET C#, using an autmated build cycle I've set up including unit-tests and coverage (which is an enormous benefit) and automatic generation of code documentation (HTML, extracted as ///code comments by Sandcastle), -- but I must admit that though our project is now 6 months down the road, I don't think that any of the developers in the project have looked at the extracted documentation more than once.

I thus agree with Arnon (on autogenerated UML and code-doc), that:

What I think is that while both of these efforts can help satisfy a customer-specific requirement for "comprehansive documentation" they have very little value in making anyone understand anything about your code. UML diagrams can only help if they are created at a higher level of abstraction than the code (which means they'd be hand-crafted) and if GhostDoc can understand your code enough to create anything useful, it means that your method and parameter names are self-descriptive anyway.

Now, I don't have extensive experience with autogenerated code documentation in Perl, apart from 'high level' POD-pages for reusable modules as exemplified by the docs on CPAN). But the discussion of putting your code documentation effort into comments (for extraction) vs. refactoring still seems relevant. I would be interested in your experiences and thoughts on this.

Best regards,
Allan Dystrup

Update: Ouch, I should probably have posted this to the Meditations section, -- feel free to move it!

In reply to What is your practice for code documentation? by ady

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2024-04-19 08:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found