Home arrow PHP arrow Page 2 - Best PHP Practices

It’s like Typing, only with a Pencil - PHP

One of the things I hear from people and my friends is questions about the best way to work with PHP. They always want to know how to get started on a project, what software to use, how to plan it successfully, and so on. In this article I plan on revealing the “magical secrets” about how I do my PHP programming so quickly with so few bugs.

TABLE OF CONTENTS:
  1. Best PHP Practices
  2. It’s like Typing, only with a Pencil
  3. What You See is… Well, You Know
  4. Get your Hands off MySQL!
  5. PHP Time, YAA!
  6. Where Do I Start?
  7. Loose Ends
By: James Murray
Rating: starstarstarstarstar / 225
September 20, 2004

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement

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
 

blog comments powered by Disqus
   

PHP ARTICLES

- Hackers Compromise PHP Sites to Launch Attac...
- Red Hat, Zend Form OpenShift PaaS Alliance
- PHP IDE News
- BCD, Zend Extend PHP Partnership
- PHP FAQ Highlight
- PHP Creator Didn't Set Out to Create a Langu...
- PHP Trends Revealed in Zend Study
- PHP: Best Methods for Running Scheduled Jobs
- PHP Array Functions: array_change_key_case
- PHP array_combine Function
- PHP array_chunk Function
- PHP Closures as View Helpers: Lazy-Loading F...
- Using PHP Closures as View Helpers
- PHP File and Operating System Program Execut...
- PHP: Effects of Wrapping Code in Class Const...

Developer Shed Affiliates

 



© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap

Dev Shed Tutorial Topics: