From 6a35f0fd1946a455a976fe86916d042bac6f4dcc Mon Sep 17 00:00:00 2001 From: metaprime Date: Sat, 2 Sep 2017 01:06:06 -0700 Subject: [PATCH] Update CONTRIBUTING.md --- CONTRIBUTING.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ad639fa5..20a4f2c9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -68,13 +68,14 @@ Good style is a tool for communicating your intent with other developers of the Some recommendations: * Above all, be consistent! -* Spaces, not tabs. +* Spaces, not tabs. Indents should be 4 spaces. * We prefer "Egyptian brackets" (in `if`, `for`, `while`, `switch`, etc.): * `if (...) {` * `} else if (...) {` * `} else {` * `}` -* Constants in `UPPER_SNAKE_CASE` +* Note the spacing convention above for control flow constructs (a single space on the outside of each paren) +* Constants in `UPPER_SNAKE_CASE` a.k.a. `CONST_CASE` * Class names in `PascalCase` a.k.a. `UpperCamelCase` * Variable names in `camelCase` a.k.a. `lowerCamelCase` * Do not use Hungarian notation