News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SellMix Blog:
PHP mistakes, misconceptions, bad practices and blatant no nos.
January 25, 2010 @ 11:05:34

From the SellMix blog today there's a new post with a few "no-nos" and misconceptions when it comes to working with PHP in your applications.

We have all had that moment where we looked back on a script that we wrote years ago and thought "what the hell was I thinking?'". But it is a process. You make mistakes, you learn from those mistakes and then you move on. From my experiences of modifying other people's code, helping people on PHP help forums and making my own (many) mistakes, I hereby present this list.

There's eleven points included in the list, touching on things like:

  • Superglobals being referred to inside class functions
  • MySQL queries inside loops
  • Brackets '" use them.
  • Indent, indent, indent!
  • Why are you using mysql_fetch_array?

Check out the rest of the post for more tips.

1 comment voice your opinion now!
mistake misconception badpractice opinion


blog comments powered by Disqus

Similar Posts

Community News: Kohana Community Responds to PSR-1 & PSR-2

Web Builder Zone: What paradigm should PHP applications embrace?

Marco Tabini's Blog: PHP 5.2 support ends just as its adoption begins

Zend: Zend Reveals What Music Will Keep Developers Productive (and Happy) This Holiday

LinkedIn.com: Dev Recruiting 101: 10 Ways NOT to Interview a Candidate


Community Events





Don't see your event here?
Let us know!


interview laravel code conference development zendserver release podcast application tips framework series introduction deployment language threedevsandamaybe list community api developer

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework