stephens_coding_standards
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
stephens_coding_standards [2013/03/25 03:53] – [Switch Case] stephen | stephens_coding_standards [2017/01/01 20:05] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | <term YAGNI> | ||
- | |||
====== Stephen' | ====== Stephen' | ||
===== Commented Code ===== | ===== Commented Code ===== | ||
- | No commented code, unless there is a comment clearly explaining under what circumstances the code should be uncommented. The YAGNI principle should be kept in mind. If there are no circumstances in which the code should be uncommented, | + | No commented code, unless there is a comment clearly explaining under what circumstances the code should be uncommented. The < |
**Justification: | **Justification: | ||
Line 68: | Line 66: | ||
To get a visual margin guide in Visual Studio 2010, ensure the Productivity Power Tools extension is installed, right click the 130th column and select Guidelines -> Add Guidelines from the context menu. | To get a visual margin guide in Visual Studio 2010, ensure the Productivity Power Tools extension is installed, right click the 130th column and select Guidelines -> Add Guidelines from the context menu. | ||
+ | |||
+ | ===== Blank Lines ===== | ||
+ | |||
+ | Code shall not contain more than one blank line in a row. There' | ||
===== Unnecessary Parentheses ===== | ===== Unnecessary Parentheses ===== | ||
Line 108: | Line 110: | ||
* To do a comparison like a human, use '' | * To do a comparison like a human, use '' | ||
* It is extremely unlikely that '' | * It is extremely unlikely that '' | ||
+ | |||
+ | ==== Machine or Human? WTF? ==== | ||
The German alphabet has the letter ' | The German alphabet has the letter ' | ||
Line 173: | Line 177: | ||
The names of user database objects are title cased (tables, columns, views, stored procedures etc.) | The names of user database objects are title cased (tables, columns, views, stored procedures etc.) | ||
+ | |||
+ | ===== Web.config ===== | ||
+ | |||
+ | The ''< | ||
{{tag> | {{tag> | ||
stephens_coding_standards.1364183586.txt.gz · Last modified: 2017/01/01 19:53 (external edit)