[Y-devel] Technical Notes

Mark Thomas mark at www.y-windows.org
Thu Feb 26 20:36:20 GMT 2004


Kyle Girard wrote:
> The nice thing about javadoc and other in-code documentation systems
> through is that you can throw the sources at a documentation generator,
> doxygen for example, and get nice easy to browse api docs.  Which would
> be helpful for new Y developers.  API documentation is just another area
> where Y could surpass X....possibly something to think about if wide
> scale adoption is in Y's future....just my two cents...
> 

Well, the disjoint nature of Y's client API means the documentation for 
client libraries wouldn't be found in the server code anyway.

It might be more useful to write the API code in a more generic format 
so that it applies to all of the API bindings.

> ps Do you like other forms of in-code documentation ... say anything that
> doxygen can parse?  

As long as there isn't any markup in there, I don't mind, so comments like:


/**
  * Do x to y using z.
  *       x: the thing to do
  *       y: the thing to be done
  *       z: the thing to do it with
  * returns: true if it was done sucessfully
  */
doThing (thing x, thing y, thing z)
{
   ...

are fine. What I don't like is comments like:

/**
  * Do \param:x to \param:y using \param:z.
  * @param x the \type:thing to do
  * @param y the \type:thing to be done
  * @param z the \type:thing to do it with
  * @returns \literal:true if it was done successfully
  */
doThing (thing x, thing y, thing z)
{
   ...

When browsing the code, the second one makes it harder to read the 
comments.  Comments should *never* be hard to read.

Regards,

   Mark.
-- 
|| Mark Thomas
|| www.y-windows.org
||
||



More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved