Link Details

Link 82945 thumbnail
User 1 avatar

By rick
via reinholdweber.com
Published: May 26 2008 / 11:09

Certainly the world would be a better place if more PHP code was optimized. Maybe some of these tips can help!
  • 13
  • 6
  • 1667
  • 806

Comments

Add your comment
User 229614 avatar

clickz replied ago:

0 votes Vote down Vote up Reply

# Avoid magic like __get, __set, __autoload

Lousy tips which seem to originate straight from the 80s, who in the world would still deny the usefullness of PHP's magic functions?

User 247828 avatar

jawngee replied ago:

0 votes Vote down Vote up Reply

These are php's best features.

User 291076 avatar

tamrix replied ago:

1 votes Vote down Vote up Reply

If you read the title of the article it says, "optimizing your php code". So obviously __get and __set magic methods are very cpu time intensive, thus avoid using them if you want the fastest php code you can get. If you find the usefulness outweighs the speed them of course use magic methods!

User 258461 avatar

EllisGL replied ago:

0 votes Vote down Vote up Reply

In a later article about how to spot a lousy PHP programmer it said "they don't magic functions"...

User 285811 avatar

BTM replied ago:

0 votes Vote down Vote up Reply

Yest ... "dzone - fresh news for developers ... FROM 2007!",

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.