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!
Comments
clickz replied ago:
# 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?
jawngee replied ago:
These are php's best features.
tamrix replied ago:
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!
EllisGL replied ago:
In a later article about how to spot a lousy PHP programmer it said "they don't magic functions"...
BTM replied ago:
Yest ... "dzone - fresh news for developers ... FROM 2007!",
Voters For This Link (13)
Voters Against This Link (6)