-
Notifications
You must be signed in to change notification settings - Fork 475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document Public/Private API #23
Comments
I played around with jsdoc (and maybe some other similar?) and had a bad time, mainly because it thinks of things in terms of classes and couldn't understand which methods belonged to which "classes". |
I'm not necessarily recommending you use a tool to convert your source into more readable documentation. I don't. But when I'm looking at code I wrote a year ago and I don't want to figure out what parts are public and which are private having some amount of inline documentation has been very valuable. |
Ah yes I meant to say to that bit, "good point". I'm going to go through at some point and give the "private" methods leading underscores, at least. |
That'd be awesome, thanks! |
New JS feature: Private class features
|
Hi @soryy708, |
It would be nice, for reference, if the code itself contained more documentation. The comments are excellent, but more organization and a clearer specification of whether a method/function is public or private would be nice.
Consider using JavaDoc/JSDoc syntax:
The text was updated successfully, but these errors were encountered: