Page 2 of 2

Posted: Fri Aug 19, 2005 3:14 pm
by nielsene
Well I suspect that aspect is getting into personal preference. But I detest collections of static methods. There are a few times when its appropriate, but generally its a code stench.

Posted: Fri Aug 19, 2005 6:04 pm
by timvw
The following seems to be the new trend in PHP (Which i hate): Creating functionality through functions / classes that do exactly the same. An example: the new date handling..

Code: Select all

$tz = timezone_open('Asia/Singapore');
echo $timezone_name_get($tz);
VS

Code: Select all

$tz = timezone_open('CEST');
echo $tz->getName();

Posted: Fri Aug 19, 2005 6:10 pm
by feyd
annoying yes, but allows people who do not understand/like/whatever OOP, the ability to perform the actions. Granted, I find it a bit lazy, but that's me.

Posted: Fri Aug 26, 2005 12:47 pm
by bg
feyd wrote:annoying yes, but allows people who do not understand/like/whatever OOP, the ability to perform the actions. Granted, I find it a bit lazy, but that's me.
I suppose anyone who doesn't like it could switch to jsp where you dont have much of a choice.