Re: [PHP] Re: Where To Find Resources About Programming Style (my bleedin' code is so darn ugly)

2002-02-19 Thread Frank Joerdens
On Sun, Feb 17, 2002 at 12:39:49PM -0800, Lars Torben Wilson wrote: [ . . . ] > An excellent book on coding practices is 'Code Complete', by Steve C > McConnell. > > >http://www.amazon.com/exec/obidos/ASIN/1556154844/qid=1013978113/sr=8-1/ref=sr_8_67_1/102-2030399-6728144 > > There is also the

Re: [PHP] Re: Where To Find Resources About Programming Style (my bleedin' code is so darn ugly)

2002-02-19 Thread Frank Joerdens
On Sun, Feb 17, 2002 at 08:05:17PM +0100, Christian Blichmann wrote: [ . . . ] > P.S.: Your code _always_ works? -Wow... I was trying to say that I usually get things to work at the end of the day, when I have enough time to tweak the code, but that my code at some point tends to become unreadabl

[PHP] Re: Where To Find Resources About Programming Style (my bleedin' code is so darn ugly)

2002-02-17 Thread Christian Blichmann
Hi there! This is my suggestion for code formatting/commenting/etc.: if ($var > 0 && ( // Shortcut, since your're not calling anything // that "does stuff" in the conditional. strlen($var) == strlen(intval($var)) ||