forked from scott/threaded_network_chat
very formatting stuff
This commit is contained in:
5
STYLE.md
5
STYLE.md
@@ -60,7 +60,7 @@ The length of a function name, variable name, et cetera should be directly propo
|
||||
|
||||
#### Don't
|
||||
|
||||
- abbreviate global variables,
|
||||
- abbreviate global variables **EVER**,
|
||||
- mention the data type in a variable name,
|
||||
- use a full word where an abbreviation will do
|
||||
- (especially not in a variable that will die 5 lines later),
|
||||
@@ -70,7 +70,7 @@ The length of a function name, variable name, et cetera should be directly propo
|
||||
#### Do
|
||||
|
||||
- abbreviate extremely short-lived variables to one letter,
|
||||
- e.g. `for (int index=0, index<10, i++)` -> `for (int i=0, i<10, i++)`
|
||||
- e.g. `for (int index = 0, index < 10, i++)` -> `for (int i = 0, i < 10, i++)`
|
||||
- break any rule if following it ruins the readability
|
||||
|
||||
## Source File layout
|
||||
@@ -120,4 +120,3 @@ div_numb(int n, int d)
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user