forked from scott/threaded_network_chat
very formatting stuff
This commit is contained in:
@@ -16,7 +16,7 @@ doing a bunch of bug fixes anyway.
|
|||||||
## Code
|
## Code
|
||||||
|
|
||||||
Everything is in [src/](src).
|
Everything is in [src/](src).
|
||||||
A mostly untouched copy of [scott's original code](https://git.therats.win/scott/threaded_network_chat) is also in [old/](old).
|
A mostly untouched copy of [Scott's original code](https://git.therats.win/scott/threaded_network_chat) is also in [old/](old).
|
||||||
A reformatted version of that code is also in [modified-example.cc](modified-example.cc) but it can be ignored.
|
A reformatted version of that code is also in [modified-example.cc](modified-example.cc) but it can be ignored.
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
|
|||||||
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
|
#### Don't
|
||||||
|
|
||||||
- abbreviate global variables,
|
- abbreviate global variables **EVER**,
|
||||||
- mention the data type in a variable name,
|
- mention the data type in a variable name,
|
||||||
- use a full word where an abbreviation will do
|
- use a full word where an abbreviation will do
|
||||||
- (especially not in a variable that will die 5 lines later),
|
- (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
|
#### Do
|
||||||
|
|
||||||
- abbreviate extremely short-lived variables to one letter,
|
- 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
|
- break any rule if following it ruins the readability
|
||||||
|
|
||||||
## Source File layout
|
## Source File layout
|
||||||
@@ -120,4 +120,3 @@ div_numb(int n, int d)
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user