User Tools

Site Tools


organization:code_standards

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
organization:code_standards [2015/09/09 06:49] dmitriyorganization: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.
-''Examples: 
- 
-   // wrong  
- if ($forum) ... 
-  
-  
- // correct 
- if (isset($forum)) ...'' 
-  
- 
  
organization/code_standards.1441781399.txt.gz · Last modified: (external edit)