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?
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
API Doc Smackdown
1. API Doc Smackdown
YUI Doc versus JS Doc Toolkit
Monday, September 14, 2009 - 2:25-3:25p
2. 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.
25. YUI Doc Pros and Cons
Pros Cons
Concise set of tags YUI specific idioms
Used by YUI library Overshadowed by YUI
supported by YUI Team Small community
42. 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
55. 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
58. 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/