How to become a PHP Geek?
Kazi Mohammad EkramWeb Developer
13th November 2009
Introduction
Presentation Focus:
- Increase Efficient Development- Personal Improvement
Increase Efficient Development
Focus:
1. Follow Coding Standards2. Don’t Reinvent the wheel3. Maintain The Code Quality4. Use Framework5. Use CMS6. PHP IDE
1. Follow Coding Standards
- Code Formatting (Readable)- Comment your code- Make a documentation- Make Versions
Code Formatting(Not Readable)
<?PHPFunction temp($a){If($a==0) return 1; Else return $a*test($a - 1);}?>
Code Formatting(Readable)
<?PHPFunction factorial($n){
If($n == 0){
return 1;} Else {
return $a*test($a - 1);}
}
?>
Standards
PEAR Coding Standardhttp://pear.php.net/manual/en/standards.php
Zend Coding Standardhttp://framework.zend.com/manual/en/coding-standard.html
Comment Your Code
<?php echo "Hello World!"; // This will print out Hello World! $age = 52; //Assigning age
?>
Make A Documentation
<?php /** * Sample File 2, phpDocumentor Quickstart * * This file demonstrates the rich information that can be included in * in-code documentation through DocBlocks and tags. * @author Greg Beaver <[email protected]> * @version 1.0 * @package sample */?>
Documentation Software
phpDocumentor - http://www.phpdoc.org
Make Versions
- Keep track of each versions- Back up the files
2. Don’t Reinvent the wheel
- Don’t write the class or function that already build- Don’t repeat yourself- Try to use Class and functions
Source Forgehttp://sourceforge.net/
PHP Classeshttp://www.phpclasses.org/
3. Maintain the Code Quality
- Simple Code- Scalable Code- Maintainable Code
4. Use Framework
- Simple To Update- Lots of libraries- Maintainable Code- Solved Most real life problems
Code Igniterhttp://codeigniter.com/
Zend Frameworkhttp://framework.zend.com/
Cake PHPhttp://cakephp.org/
5. Use CMS
- Content Management System(CMS)- Lots of Plug-in- Maintainable Code- Most of the project requirement fulfilled
Joomlahttp://www.joomla.org/
Drupalhttp://drupal.org/
Wordpresshttp://wordpress.org/
6. PHP IDE
- Increase Development Efficiency- Save your time- Debug your code
Netbeans IDEhttp://netbeans.org/
Eclipse IDEhttp://www.eclipse.org/
Zend Studiohttp://www.zend.com/en/
Personal Improvement
- Communicate with Other developers- Read Blogs- Write Blogs- Before writing code search for existing one- Contribute in Open Source Projects- Read Some PHP website RSS Feed everyday- Learn JavaScript Frameworks (Jquery, Motools etc.)- Learn Different Database (Mysql, PostgreSQL, SQLite etc).- Share Your Thoughts and Experience with others.
Some Useful Links
-http://ajaxian.com/-http://kore-nordmann.de/blog/-http://www.ibm.com/developerworks/-http://mashable.com/-http://tech.groups.yahoo.com/group/phpexperts/-http://www.phpdeveloper.org/-http://blog.programmableweb.com/-http://www.techcrunch.com/-http://derickrethans.nl/-http://www.sitepoint.com/blogs/-http://www.smashingmagazine.com/
Questions
Kazi Mohammad Ekram
Email: [email protected]: +966-558066327Website: http://www.ekram.infoBlog: http://kaziekram.wordpress.com
Top Related