-
Notifications
You must be signed in to change notification settings - Fork 61
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
Code comments #370
Code comments #370
Conversation
I think this is a bit too detailed documented. The documentation should give the reader a sense of what is going on in a code block, like
We should assume that people know most of the standard functions, so we don't have to explain what
or something like that. Similar for the other files - less line-by-line description but a bigger block of what/why/how/... in the beginning. I don't think we need to document the actual variables - the documentation before the code block where they are should be enough to get the picture, so
should be enough. Of course, there is always a balance... Ideally, documentation for the function should be enough to get an idea, but only the Give it another spin and lets look at it again. Side note, I prefer the |
Thanks for the feedback! I gave it another try to find a balance between concise, informative, and complete. Any further feedback for improvement would be great, since I'd gradually format other code comments similarly. Hope this work will help future newcomers :) |
Yeah, stuff like this |
The struct documentation could be expanded to explain what it holds, and is used for. The function documentation could give a deeper explanation, and inside |
Thanks for the further feedback! Just came back from holiday. Will continually work on this while exploring and working on other issues. |
Sounds good - once you have something that you are happy with as the first update take the pull request out of draft, and send a PTAL |
Please, reopen if you think it is necessary with an up-to-date version |
Related to #368
Hi, I formatted my code comments of the main function to see if the approach is ok, like correctness, verbose, etc.
Other code comments are here: hao-tian-xu:comments. I will format and pr them afterwards.