Showing posts with label Foundation. Show all posts
Showing posts with label Foundation. Show all posts

Monday, October 13, 2008

Consistency

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”  »»

Sunday, October 12, 2008

Program Code Format

To make easier program code scanning, do not writing of long code in a line. As solution, program code format by elaborating the parts.
// 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/’;

Read More “Program Code Format”  »»

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
Besides of that, PHP also support connection with protocol IMAP, SNMP, NNTP dan POP3. History PHP PHP first time made by Rasmus Lerdorf in the year 1995. At the moment called FI (Form Interpreted). PHP is a group of script which applied to data form processing from the web. Growth from here Rasmus discharge the source of code and give a name him PHP/FI, at the time elongation from PHP/FI is Personal Home Page/Form Interpreter. With this release of source code become open source, many programmers interesting to follow develop PHP. At November 1997, release PHP/FI 2.0. At this release, implementation on C. On this release also figured extensions modules increasing ability of PHP/FI. In the year 1997, a company called Zend, rewrite PHP become more clean, quick and better. Then at June 1998 the company release new of PHP and give a name PHP 3.0. in the middle of the of 1999, Zend release PHP 4.0. PHP 4.0 is PHP version which at most weared. This version many weared because this versions can be use to build the web application are complex but remain to have a speed of high stabilities and processes. At June 2004, Zend release PHP 5.0. This version is recent version from PHP. In this version, core from PHP experience change of large. In this version also defined by new object-oriented programming model.

Read More “What is PHP ?”  »»