API Doc Smackdown
YUI Doc versus JS Doc Toolkit
Monday, September 14, 2009 - 2:25-3:25p
API Doc Smackdown
The Yahoo UI (YUI) Library is well known for its excellent documentation. One
of its secrets is YUI Doc, a Python application used at build time to generate
API documentation for JavaScript code.
But is YUI Doc really better than JS Doc Toolkit? -- an elder application, written
in JavaScript, that also generates API documentation. When should you
choose one over the other? Which is the better choice for your project?
In this session you will learn:
* How API generators work, and how documentation helps;
* When to use YUI Doc and when to use JS Doc Toolkit;
* More about alternatives to comment-based documentation.
http://www.slideshare.net/ted.husted
Old School
push RA ; push register A to retain the subtotal
pop RB ; pop register B to recall the total
JsDoc Toolkit Pros and Cons
Pros Cons
Deep and broad tab set Sketchy documentation
Used by many projects Lacks "anchor" project
Well supported Sole developer
YUI Doc vs JsDoc Toolkit
YUI Doc Pros YUI Doc Cons
Concise set of tabs YUI specific idioms
Used by YUI library Overshadowed by YUI
Supported by YUI Team Small community
Js Doc Pros Js Doc Cons
Deep and broad tag set Sketchy documentation
Used by many projects Lacks "anchor" project
Well supported Sole developer
http://dojodocs.uxebu.com/
http://scriptdoc.org/
Style Guide
Use <code> style for keywords and name
Use in-line links economically
Omit parentheses for the general form of methods and
constructors
Okay to use phrases instead of complete sentences, in the
interests of brevity.
Use 3rd person (descriptive) not 2nd person (prescriptive)
Method descriptions begin with a verb phrase.
Class/interface/field descriptions can omit the subject and
simply state the object.
Use "this" instead of "the" when referring to an object
created from the current class.
Use "this" instead of "the" when referring to an object
created from the current class.
Avoid Latin.
http://code.google.com/p/jsdoc-toolkit/
The Yahoo UI (YUI) Library is well known for its ex more
The Yahoo UI (YUI) Library is well known for its excellent documentation. One of its secrets is YUI Doc, a Python application used at build time to generate API documentation for JavaScript code.
But is YUI Doc really better than JS Doc Toolkit -- an elder application, written in JavaScript, that also generates API documentation. When should you choose one over the other? Which is the better choice for your project? less
1 comments
Comments 1 - 1 of 1 previous next Post a comment