mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-09 07:56:12 +02:00
Fixed naming conventions examples
This commit is contained in:
@@ -71,6 +71,7 @@ Do not use Hungarian notation or any other type identification in identifiers.
|
|||||||
//Do:
|
//Do:
|
||||||
int age;
|
int age;
|
||||||
string name;
|
string name;
|
||||||
|
|
||||||
//Don't:
|
//Don't:
|
||||||
int iAge;
|
int iAge;
|
||||||
string strName;
|
string strName;
|
||||||
@@ -82,7 +83,8 @@ Use meaningful names for variables.
|
|||||||
//Do:
|
//Do:
|
||||||
string factoryName;
|
string factoryName;
|
||||||
int age;
|
int age;
|
||||||
//Don't
|
|
||||||
|
//Don't:
|
||||||
string str;
|
string str;
|
||||||
int i;
|
int i;
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user