[web-devel] Re: The state of documentation

Kyle Murphy orclev at gmail.com
Sat Apr 10 03:16:44 EDT 2010


I managed to find some time to put together an example update of the
documentation for xhtml package with the sorts of changes I'd like to see
applied to as much of hackage as possible.you can find the udated haddock at
http://tenletters.org/haddock/index.html

Depending on the feedback I get on this updated documentation I might try to
get in touch with the xhtml maintainer and have my changes merged in to the
official repository. Let me know what you guys think.

-R. Kyle Murphy
--
Curiosity was framed, Ignorance killed the cat.


On Fri, Apr 9, 2010 at 15:02, Kyle Murphy <orclev at gmail.com> wrote:

> That blog post was excellent and fairly well captures the spirit of what I
> was getting at, although I do disagree somewhat about the auto-generated
> docs. I don't have any problem with auto-generated docs in and of
> themselves, assuming that you also insert into that documentation the sort
> of details discussed in the "topic guides". A great example of this is most
> of the POD used in Perl modules, where at least the first few paragraphs of
> documentation are typically devoted to essentially being a "topic guide" for
> that module. I think what she was really complaining about in that post is
> exactly the situation we have in hackage currently where there is for all
> intents and purpose absolutely no documentation provided for the vast
> majority of libraries beyond the automatically generated signatures and the
> odd sentence or two.
>
> Something I'd like to see become common in haddock is for instance, a good
> general description, with references to sub-modules in the main module of a
> package. Each sub-module would then function as a topic guide for the
> features of that module, with the specific API details contained in the
> function descriptions. If I have some time this weekend maybe I'll pull down
> the source for Text.XHTML, and try to update its documentation to provide an
> example of what I'm getting at.
>
>
> -R. Kyle Murphy
> --
> Curiosity was framed, Ignorance killed the cat.
>
>
> On Fri, Apr 9, 2010 at 14:36, Gour <gour at gour-nitai.com> wrote:
>
>> On Fri, 9 Apr 2010 14:07:28 -0400
>> >>>>>> "Kyle" == Kyle Murphy wrote:
>>
>> Kyle> The next highest level of documentation, what's severely lacking
>> Kyle> in the Haskell community in general, and the web development
>> Kyle> community in particular, is the in depth documentation for the
>> Kyle> libraries/frameworks. These documents aren't quite tutorials,
>> Kyle> but they go beyond just telling you the minimal information you
>> Kyle> need to use a function. This sort of document would typically
>> Kyle> have a section for each of the major use cases of your
>> Kyle> framework/library, and possibly a few brief code snippets
>> Kyle> showing how you go about doing particular things.  For instance,
>> Kyle> in the Text.XHTML package, this document would most likely list
>> Kyle> the various functions for generating html elements like br, as
>> Kyle> well as have a section talking about the attribute op (!), the
>> Kyle> Html concatination op (+++), and the Html nesting op (<<), and
>> Kyle> provide examples of how to construct a few example pages. It's
>> Kyle> this level of documentation that's really missing, and where
>> Kyle> most people would head to once they finish following along on
>> Kyle> some tutorial.
>>
>> If we consider that Django is nicely documented and can be used as
>> example, do you think about stuff called 'topic guides' listed at
>>
>> http://docs.djangoproject.com/en/dev/intro/whatsnext/#intro-whatsnext
>>
>> i.e. something in between tutorial and API reference?
>>
>> Here is blog post about it:
>>
>> http://jacobian.org/writing/great-documentation/what-to-write/
>>
>> Kyle> As a final thought, haddock itself might even be leveraged to
>> Kyle> provide this higher level documentation, it certainly has the
>> Kyle> capability of doing so, it just generally isn't used in that way.
>> Kyle> The brief summary most people put at the top of the generated
>> Kyle> haddock, which usually consists of a one or two sentence
>> Kyle> description of what the library provides, could instead be used
>> Kyle> to provide details of all the use cases, and links to the
>> Kyle> appropiate pieces of documentation.
>>
>> Long ago I was suggesting on 'cafe' that it would be nice if the
>> haddock documentation would have some 'examples of usage', but it
>> looks it is too much and we are still far from it...
>>
>>
>> Sincerely,
>> Gour
>>
>> --
>>
>> Gour  | Hlapicina, Croatia  | GPG key: F96FF5F6
>> ----------------------------------------------------------------
>>
>> _______________________________________________
>> web-devel mailing list
>> web-devel at haskell.org
>> http://www.haskell.org/mailman/listinfo/web-devel
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/web-devel/attachments/20100410/ba3ad716/attachment.html


More information about the web-devel mailing list