Re: [PHP] Coding Style Question...

2006-10-03 Thread tedd
At 10:23 AM +0800 10/3/06, Glenn Richmond wrote: I'll probably get strong opposition for these comments, but in my opinion, there's nothing worse than mixing two different lanuages in a single file, not to mention mixing functional code with layout code. Glenn. Glenn: I agree with the

Re: [PHP] Coding Style Question...

2006-10-03 Thread Richard Lynch
On Mon, October 2, 2006 7:32 pm, Tony Di Croce wrote: I am relatively new to PHP... I have about 1.5 years of light PHP work under my belt... Over the past year or so my PHP coding style has evolved significantly and I'm curious as to how experienced programmers write PHP... Basically, here

[PHP] Coding Style Question...

2006-10-02 Thread Tony Di Croce
I am relatively new to PHP... I have about 1.5 years of light PHP work under my belt... Over the past year or so my PHP coding style has evolved significantly and I'm curious as to how experienced programmers write PHP... Basically, here is what I have evolved to: 1) ALL php code is at the top

RE: [PHP] Coding Style Question...

2006-10-02 Thread Jay Blanchard
[snip] What do you think? [/snip] I think I'd like an ice cold beer. I code PHP like I code C++, heavily commented with code designed to fit the needs of the application. There is a thing in PEAR concerning style (you can Google it pretty easily) and you will as many styles as you do PHP

Re: [PHP] Coding Style Question...

2006-10-02 Thread Glenn Richmond
Hi Tony, Sounds like a good start. I have to admit that one that I prefer is that HTML code should be completely separated from PHP via the use of a templating engine of some sort (I'm a fan of XTemplate). I'll probably get strong opposition for these comments, but in my opinion, there's nothing

Re: [PHP] Coding Style Question...

2006-10-02 Thread Larry Garfield
On Monday 02 October 2006 19:32, Tony Di Croce wrote: I am relatively new to PHP... I have about 1.5 years of light PHP work under my belt... Over the past year or so my PHP coding style has evolved significantly and I'm curious as to how experienced programmers write PHP... Basically, here