-
Notifications
You must be signed in to change notification settings - Fork 69
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 Formatting: Use enums where able; C-style namespace them properly #31
Comments
I will help with this. Just want to teach the principle too is all. |
Just so you know, enums are type definition, not a list, so the name should be |
Fixed description. |
@nimrod46, I'm also accustomed to using In C I'd add
Then
I think we should add the
...instead of this:
Notice the problem of having to figure out what to name the |
@ElectricRCAircraftGuy I prefer without the |
This is a sub-issue of #11. Don't close #11 until all sub-issues are resolved.
Use enums wherever they make sense instead of constants or #defines. Also, namespace them by putting their categorical name before their specific name, separated by an underscore.
Instead of:
Do:
Use 3 slashes /// to signify "doxygen" style comments above members (good practice even if you don't generate doxygen). See more examples in my file here: https://github.com/ElectricRCAircraftGuy/eRCaGuy_dotfiles/blob/master/git%20%26%20Linux%20cmds%2C%20help%2C%20tips%20%26%20tricks%20-%20Gabriel.txt
The text was updated successfully, but these errors were encountered: