OpenResty/Lua 70+ Advanced Programming Skills and Optimization tips

All impression of high skills on OpenResty/Lua programming along these 3 years. OpenResty/Lua 70+ Advanced Programming Skills and Optimization tips from Ho Kim Cheers~ Continue reading
Posted in Coding Standards, Lua, Nginx, Optimization, Training| Tagged , , , , , , | Leave a comment

PHP Coding Standard and 50+ Programming Skills

PHP Coding Standard and 50+ Programming Skills from Ho Kim @see http://www.kimbs.cn/category/coding-standards/ @see http://framework.zend.com/wiki/display/ZFDEV/PHP+Coding+Standard+(draft) @see http:/… Continue reading
Posted in Coding Standards, Optimization, PHP, Training| Tagged , , , , | 3 Comments

PHP Coding Standards (5) – Errors and Exceptions

1. The Zend Framework codebase must be E_STRICT compliant. Zend Framework code should not emit PHP warning (E_WARNING, E_USER_WARNING), notice (E_NOTICE, E_USER_NOTICE), or strict (E_STRICT) messages … Continue reading
Posted in Coding Standards| Tagged , | Leave a comment

PHP Coding Standards (4) – Inline Documentation

1. Docblocks start always with "/*" or "/**". The use of "#" is not allowed. The " //" is only allowed for comments within functions. For example : [codesyntax lang="php"] /** * Class docblock */ clas… Continue reading
Posted in Coding Standards| Tagged , | 1 Comment

PHP Coding Standards (3) – Coding Style

1. PHP code must always be delimited by the full-form, standard PHP tags. Short tags are only allowed within view scripts. For example : [codesyntax lang="php"] <?php // Php code here ?> [/codesyntax]… Continue reading
Posted in Coding Standards| Tagged , | Leave a comment

PHP Coding Standards (2) – Naming Conventions

1. The Zend Framework employs a class naming convention whereby the names of the classes directly map to the directories in which they are stored. Based on PEAR Coding Standards , we can easily find t… Continue reading
Posted in Coding Standards| Tagged , | Leave a comment

PHP Coding Standards (1) – File Formatting

1. For PHP files the closing tag (" ?> ") is to be omitted. It is not required by PHP, and omitting it prevents trailing whitespace from being accidentally injected into the output. In fact the proble… Continue reading
Posted in Coding Standards| Tagged , | Leave a comment

PHP Coding Standards – Preview

Zend had provided the guidelines for developers and teams working on or with Zend Framework. Details posted on : http://framework.zend.com/wiki/display/ZFDEV/Zend+Framework+Contributor+Guide . Within … Continue reading
Posted in Coding Standards| Tagged , | Leave a comment