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.
| | Discuss Best PHP Practices | | | | | | | I was expecting this professional, anal retentive article and instead I get this... | | | | | | Enough would be to say, that any pro project that gets started, first off lands on... | | | | | | Your articles are almost always enjoyable to read and this one was probably one of... | | | | | | I completely agree! this article was amazingly helpful.
But who the heck is... | | | | | | I disagree with your choice of PHP Editors, while you say Zend is a Good editor,... | | | | | | I think there's an editor which is simple to the extreme but is very nice for php,... | | | | | | What a waste of time this article was. Give me my money back! | | | | | | Ok, here's your $0 back.. | | | | | | There are some good tips in this article but there is a lot more you can do to save... | | | | | | I should have mentioned this in the 'Purity Balance.' Why not use HTML generated by... | | | | | | I read it and thought, "wtf is this shit?" Dreamweaver/GoLive + MySQL GUI = PHP... | | | | | | i agree on what you have said that the command line is still the best... but i guess... | | | | | | In my opinion it had its good points. My biggest problem with it is the title of... | | | | | | I developing Web applications in PHP since last two years, and i am VERY VERY... | | | | | | I have heard this argument before regarding the apparent slowness of Zend Studio. I... | | | | | | If the text does not need additional formatting, then block quote it with <PRE>... | | | | | | I can code in Assembler; but why would I? Farmers could plant corn by hand; but why... | | | | | | http://www.sextoyssexvideos.com | | | | | | Thanks. Regardless of what people say it was useful. In a way it was a source of... | | | | | | Regardless of what these other people are saying- thank you for helping n00bs like... | | | | | | <a href="http://sextoyssexvideos.com/" title="Sex Toys">Sex Toys</a> | | | | | | You compare a farmer using a WYSIWIG instead of his hands... The only comparable... | | | | | | <a href="http://sextoyssexvideos.com/" title="Sex Toys">Sex... | | | | | | 500 words about nothing. | | | | | | 500 words about nothing. | | | | | | [url=]http://www.sextoyssexvideos.com[/url] | | | | | | [url=http://www.sextoyssexvideos.com/]sex toys[/url]
| | | | | | Crap article. What a waste of my time. The author has no idea what "best practices"... | | | | | | I am not new to programming, but I haven't been in the game for about 5 years... | | | | | | Me reading your reply to this article makes me wander a) if you are totaly ignorant... | | | | | | I rarely post anything anywhere but I was so annoyed by this article so I had to... | | | | | | The article wasn't bad, but has absolutely nothing to do with "PHP Best Practice."... | | | | | | just surfin the web and got here with that nice-titled-article of yours. are you... | | | | | | I have to say I was not impressed by this "Best PHP Practices" article at all. In... | | | | | | >>> Post your comment now! | | | | | |
|
 |