-
Notifications
You must be signed in to change notification settings - Fork 9
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
Refactor CommonGrids documentation #2086
Conversation
b0fad38
to
34ab82c
Compare
34ab82c
to
f7b6ec1
Compare
I understand that there's a lot of duplicated verbiage, but I personally think that this adds unnecessary complexity. This change makes the docstrings partially unreadable from the source code, and introduces dynamism in the docstring (the documentation depends on the program), which means that one has to follow the code to understand what the docstring would contain. As a result, it also contains more points of failure and, I think, that makes updating the docstrings harder, not easier (especially to those who are not familiar with this docstring system yet). As a middleground, I can suggest that we collect all the arguments in a single docstring for an empty variable |
I asked about how to reduce documentation like this on Julia slack, and this is what they suggested. I agree that it's not ideal, but it seems better to me than maintaining two (pretty long and duplicate) lists of documentation arguments and descriptions.
I think it's easier to maintain, though.
My issue with doing this is that users will still have a second thing to lookup how something works. My preference would be to either
|
I disagree. I think it's easier to maintain duplicated inert strings than code that has some behavior that needs to be understood by the reader. If you don't want to have the shared argument docstring, my preference would be to keep it as it is. |
Alright, should we merge #2082, then? I can close this PR. |
I spoke with @Sbozzolo, and we're just going to keep things simple and duplicate the doc strings. |
This PR refactors the documentation in our CommonGrids module so that they can be reused (e.g., in our soon-coming common spaces).