organization:code_standards
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| organization:code_standards [2015/09/09 06:49] – dmitriy | organization:code_standards [2015/12/11 05:36] (current) – dmitriy | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| [[organization:: | [[organization:: | ||
| + | |||
| + | |||
| === Стандарты === | === Стандарты === | ||
| - Use ' instead of " for strings as default string enclosing. This is a performance issue, and prevents a lot of inconsistent coding styles. | - Use ' instead of " for strings as default string enclosing. This is a performance issue, and prevents a lot of inconsistent coding styles. | ||
| - Don't use uninitialized variables. These errors can be avoided by using the built-in isset() function to check whether a variable has been set. | - Don't use uninitialized variables. These errors can be avoided by using the built-in isset() function to check whether a variable has been set. | ||
| - | '' | ||
| - | |||
| - | // wrong | ||
| - | if ($forum) ... | ||
| - | |||
| - | |||
| - | // correct | ||
| - | if (isset($forum)) ...'' | ||
| - | |||
| - | |||
organization/code_standards.1441781399.txt.gz · Last modified: (external edit)
