-
Notifications
You must be signed in to change notification settings - Fork 90
Update coding standard for examples #358
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
Comments
I suggest we defer discussing this one until a meeting where Mads is present. |
Next actions:
|
Histogram of line lengths (length:count) for C# code:
Having printed out all the lines with over 70 characters, almost all of them include comments that could be moved quite easily. Looking at the converted Word document, I think we're actually safe to about 95 characters, which gives us quite a lot of wiggle room. I propose we use a 4-space indent. |
Done. |
See #9 (comment)
Our coding style was optimized for the printed page. We've agreed to update the examples to follow a more consistent C# coding standard that uses whitespace to improve readability.
Much of the code is fine, but we will adopt the following updates:
class C {}
orpublic void M() {}
, then no blank line is added between them.We have discussed replacing the K&R style braces on methods with Allman style braces. We haven't made an affirmative decision on that.
The text was updated successfully, but these errors were encountered: