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

Samuel Folkes' Blog:
17 PHP Practices That Should Be Banished Forever
Aug 05, 2009 @ 18:37:17

Samuel Folkes has posted a few practices (seventeen, to be exact) that PHP developers should "banish forever" from their development habits.

The following is a list of 17 PHP programming practices that in my opinion should be banished into oblivion. Forever and ever. Amen. Please note that this list is in no particular order.

Some of the practices include:

  • Relying on Magic Quotes
  • Mixing HTML, PHP, SQL, JS, CSS, Etc, Etc
  • Not Documenting Code
  • Using Regex Functions for Basic String Manipulation.
  • Unquoted Array Keys
  • Using Uninitialized Variables

There's lots more where those came from so check out the rest of the list here.

tagged: practices bad development banish

Link:


Trending Topics: