-
Notifications
You must be signed in to change notification settings - Fork 536
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
Add more code comments #2223
Comments
I'm not sure I fully understand the proposal, are you saying you want to add comments for logic or doc strings for functions explaining parameters and usages of interfaces? |
The code changes too drastically to create a separate document, so I felt it would be more realistic to write it as a code comment. Most ideally, there would be a searchable comment indicating which step the process corresponds to in a manual installation. If the user wants to make a personal change that is clearly not suitable for a pull request, the user will need to modify the code themselves, but it is also convenient to be able to easily inspect the code in the script. (For example, if the user wants to change only the size of the EFI partition during guided installation.) |
In other words, there are still too many changes to create documentation, but I felt that there were too many users for no documentation, so as a compromise, if sentences that are similar to documentation are written as comments in the code. If so, wouldn't it be possible to provide users with information similar to documents while maintaining some level of consistency? Until the code is stable, the documentation can be replaced with the text "Please see code comments for details." |
I agree with docstrings being the way forward. I'll keep this one open until #1967 is merged, I consider that PR to address this. Edit: I will add that, if anyone wants to participate but the above is not enough - I think a better way forward is to just hit me up and I will be happy to sit down and do a 1:1 and bounce ideas/issues/knowledge-share. Just be respectful/mindful of time-zone differences and that life some times have a tendency to get the best of everyone at some point. :) |
As #1967 was merged I think we can close this |
Arch Installer is a great script.
Given how skilled Arch users are, I think there are a lot of potential users who can actually contribute code, not just submit issues.
However, the current code is poorly commented and difficult to contribute without reading deeply.
I would like to propose making it easier for arch users to contribute by writing code comments that are too polite.
Specifically, the idea is to broadly accept innocuous pull requests that simply add explanations to the code. This is also consistent with the traditional way Arch's community contributes.
Additionally, as more users read the code and contribute comments, potential bugs have a greater chance of being discovered.
The text was updated successfully, but these errors were encountered: