Consistency often related to writing standard code program. Of course well founded because writing of consistent code make code program more easily to read and comprehended.. If variable is applied for purpose of similar, better give similar name too. For example, if variable $sum is applied to express an amounts, hence you must to always wear the name. That’s mean don't give different name for purpose of similar, for example $sum, $sumer, $amount. For usage in one block. You can declaration variable with same prefix, for example $sum_data, $sum_max, $sum_min. Though not easy to consistency implementation, we must cope for minimization mistaken of naming.
Read More “Consistency” »»Monday, October 13, 2008
Sunday, October 12, 2008
Program Code Format
// not like it If ($letter == ‘a’ || $letter == ‘I’ || $letter == ‘u’ || $letter == ‘e’ || $ letter == ‘o’) {$vocal = true;} // like it If ($letter == ‘a’ || $letter == ‘I’ || $letter == ‘u’ || $letter == ‘e’ || $letter == ‘o’) { $vocal = true; }In addition, better always apply space for neatening program
$name = ‘php’; $category = ‘server-side’; $url = ‘http://www.php.net/’;
Friday, October 10, 2008
Standard coding
Every programming language always give standards rule for made reference programmer. This thing for created program are consistence and uniform. The example is standard name. In programming, a name is applied to relate identity which for declaration. Related/relevant this matter, there are some base order which truly hardly required to produce a program more interesting. Variable name better use a lower case. If the name consist of some words, disjointed with under line (underscore). For example $name or $name_user. Give name of Constanta is suggested to follow order variable except using all block letters. For Example MAX MAX_DATA or SUM_DATA. Name of function better also relate at naming of variable and hardly suggested that to express a verb or action, for example get_data(), set_data(), or print(data).
Read More “Standard coding” »»Thursday, October 9, 2008
What is PHP ?
PHP? Maybe many more question in friends of hearing word PHP. PHP is a script which one with HTML dan stay at server (server side HTML embedded scripting). With this PHP You can create immeasurable application base on the web, start from simple web page until the application of complicated requiring connection to database. Until now, many databases which have been supported by PHP and possibilities will continuously increase. the database is :
- dBase
- DBM
- FilePro
- mSQL
- MySQL
- ODBC
- Oracle
- Postgres
- Sybase
- Velocis