PHP
  Home arrow PHP arrow Page 2 - Best PHP Practices
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

Best PHP Practices
By: James Murray
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 223
    2004-09-20


    Table of Contents:
  • Best PHP Practices
  • It’s like Typing, only with a Pencil
  • What You See is… Well, You Know
  • Get your Hands off MySQL!
  • PHP Time, YAA!
  • Where Do I Start?
  • Loose Ends

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Best PHP Practices - It’s like Typing, only with a Pencil
    ( Page 2 of 7 )

    If you’ve read any of my other articles, you’ll know what’s coming at this point. That’s right, grab your paper and pencil. It’s time to be a little old school. I’ve always found that if I draw out my plan on paper that it’s easier to code because I know what goes where how it all links together and what type of structure I’m working with. Also, it’s nice once you’ve been working on your project for some length of time to be able to look back on what you’ve already done so that you can easily remember things about your project that you may have forgotten.

    Writing down things like declared class names, global variables, function names, and so on really can give you an edge if you get right down to it. Let’s say you have two classes, one named load_interface and one named load_ini, or something, then let’s say you're one of those type of people who will declare a class with a two-letter variable (and I know there are those of you who do it). Well, if you made load_interface three weeks earlier in the same project, and you didn’t use it for all that much, are you really going to remember that you’ve used the $li variable already.. really?

    Some people may not. Or, let’s say that you start a project and then you get someone else to help you out after about a week or two. Wouldn’t it be useful to them to know what’s already been used? And would it not help speed up the time it takes them to actually get into the project to start programming?

    That just goes to show you -- “paper isn’t just for breakfast anymore” --well, it never was, but I’m just saying there’s more use for paper than letting it jam your printer.



     
     
    >>> More PHP Articles          >>> More By James Murray
     

       

    PHP ARTICLES

    - Building Dynamic Queries with Chainable Meth...
    - PHP Encryption and Decryption Methods
    - Building a MySQL Abstraction Class with Meth...
    - Completing a Sample String Processor with Me...
    - Mastering WHILE Loops for PHP and MySQL
    - Method Chaining: Adding More Methods to the ...
    - Method Chaining in PHP 5
    - The Role of Interfaces in Applying the Depen...
    - Dependency Injection: Using a Setter Method ...
    - Using a Model Class with the Dependency Inje...
    - Injecting Objects Using Setter Methods with ...
    - Injecting Objects by Constructor with the De...
    - The Dependency Injection Design Pattern in P...
    - Performing Inferential Statistical Analysis ...
    - Performing Descriptive Statistical Analysis ...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    Stay green...Green IT