Changes between Version 3 and Version 4 of StatisticsReview

Show
Ignore:
Timestamp:
04/01/06 21:44:12 (7 years ago)
Author:
rkern
Comment:

Talk about examples in docstrings

Legend:

Unmodified
Added
Removed
Modified
  • StatisticsReview

    v3 v4  
    17171. The function works. Sometimes, you just have to state the obvious. 
    1818 
    19 2. The function has a complete docstring. The docstring should clearly describe what the function does, what each argument should be, and what the function returns. If necessary, it should also contain a reference. Since many of these functions are named after prolific people, the docstring should be descriptive enough to disambiguate between all of the procedures that might have a similar name. Between the docstring and the reference, even an inexperienced user should not have to go Googling to find out what the function does. 
     192. The function has a complete docstring. The docstring should clearly describe what the function does, what each argument should be, and what the function returns. If necessary, it should also contain a reference. Since many of these functions are named after prolific people, the docstring should be descriptive enough to disambiguate between all of the procedures that might have a similar name. Between the docstring and the reference, even an inexperienced user should not have to go Googling to find out what the function does. A few lines of example code should be included if they can be kept to "a few lines." 
    2020 
    21213. One or more unit tests sufficiently exercise the function. Per item 1, these tests should pass.