Skip to content
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

Method Documentation #13

Open
eduard93 opened this issue Dec 15, 2015 · 1 comment
Open

Method Documentation #13

eduard93 opened this issue Dec 15, 2015 · 1 comment

Comments

@eduard93
Copy link
Contributor

  • Use documatic formatting (basically HTML)
  • All that can be in a signature must be in a signature, eg. ClassMethod Read(FileName As %String, Length As %Integer(MINLEN=1) = 32656, ByRef Status As %Status) As %String
  • Do not duplicate in documentation what is in a signature
    • Length is a positive integer
    • Default length is 32656
    • etc - it's all obvious from a signature
  • Documentation is for everything else: This methods returns first Length characters from FileName, check Status for errors
  • Signature must correspond to what's inside the method
  • Ideally, signatures are consistent across project
    • Return status (but not, for example some methods return status, some - exception)
    • etc
  • Provide defaults for unrequited parameters
  • Do not provide defaults for main (id/oref etc) parameters
@eduard93
Copy link
Contributor Author

Do not add ByRef where it's not required.

@tsafin tsafin added the Wiki label Dec 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants