[PHP] Proper code formatting

2009-03-23 Thread Angus Mann
Hi all, I'm fairly new to PHP so I don't have too many bad habits yet. I'm keen to make my code easy to read for me in the future, and for others as well. Are there any rules or advice I can use for formatting (especially indenting) code? for example how best to format / indent this ? if

Re: [PHP] Proper code formatting

2009-03-23 Thread Michael A. Peters
Angus Mann wrote: Hi all, I'm fairly new to PHP so I don't have too many bad habits yet. I'm keen to make my code easy to read for me in the future, and for others as well. Are there any rules or advice I can use for formatting (especially indenting) code? for example how best to format /

RE: [PHP] Proper code formatting

2009-03-23 Thread Bob McConnell
From: Michael A. Peters Angus Mann wrote: Hi all, I'm fairly new to PHP so I don't have too many bad habits yet. I'm keen to make my code easy to read for me in the future, and for others as well. Are there any rules or advice I can use for formatting (especially indenting) code?

Re: [PHP] Proper code formatting

2009-03-23 Thread Shawn McKenzie
Bob McConnell wrote: From: Michael A. Peters Angus Mann wrote: Hi all, I'm fairly new to PHP so I don't have too many bad habits yet. I'm keen to make my code easy to read for me in the future, and for others as well. Are there any rules or advice I can use for formatting (especially

Re: [PHP] Proper code formatting

2009-03-23 Thread George Larson
On Mon, Mar 23, 2009 at 8:23 AM, Shawn McKenzie nos...@mckenzies.netwrote: Bob McConnell wrote: From: Michael A. Peters Angus Mann wrote: Hi all, I'm fairly new to PHP so I don't have too many bad habits yet. I'm keen to make my code easy to read for me in the future, and for others

Re: [PHP] Proper code formatting

2009-03-23 Thread Jason Pruim
George Larson wrote: On Mon, Mar 23, 2009 at 8:23 AM, Shawn McKenzie nos...@mckenzies.netwrote: Bob McConnell wrote: From: Michael A. Peters Angus Mann wrote: Hi all, I'm fairly new to PHP so I don't have too many bad habits yet. I'm keen to make

Re: [PHP] Proper code formatting

2009-03-23 Thread Igor Escobar
Hi Angus, please, read this topic http://www.igorescobar.com/blog/2009/02/03/coding-standards/ I speak a little bit about Coding Standards. Igor Escobar systems analyst interface designer www . igorescobar . com On Mon, Mar 23, 2009 at 9:48 AM, Jason Pruim pru...@gmail.com wrote: George

Re: [PHP] Proper code formatting

2009-03-23 Thread George Larson
Well, I was pondering making a recommendation, of sorts. I work in an environment with various levels of coders, perhaps similar to your description. Currently, there are no standards that I have seen. We all are bringing our coding habits with us. I don't know if it is important that I like

Re: [PHP] Proper code formatting

2009-03-23 Thread tedd
At 4:19 PM +1000 3/23/09, Angus Mann wrote: Hi all, I'm fairly new to PHP so I don't have too many bad habits yet. I'm keen to make my code easy to read for me in the future, and for others as well. Are there any rules or advice I can use for formatting (especially indenting) code? for

Re: [PHP] Proper code formatting

2009-03-23 Thread Michael A. Peters
Bob McConnell wrote: To take this question a step further, is there a PHP best practices document available? I am looking for one that I can give to a new programmer and tell her do it this way until you can explain to me why you shouldn't. Bob McConnell I just remembered why I started

Re: [PHP] Proper code formatting

2009-03-23 Thread Michael A. Peters
George Larson wrote: Well, I was pondering making a recommendation, of sorts. I work in an environment with various levels of coders, perhaps similar to your description. Currently, there are no standards that I have seen. We all are bringing our coding habits with us. I don't know if it is

RE: [PHP] Proper code formatting

2009-03-23 Thread abdulazeez alugo
Date: Mon, 23 Mar 2009 09:52:21 -0300 From: titiolin...@gmail.com To: pru...@gmail.com CC: george.g.lar...@gmail.com; nos...@mckenzies.net; php-general@lists.php.net Subject: Re: [PHP] Proper code formatting Hi Angus, please, read this topic http://www.igorescobar.com/blog/2009/02

Re: [PHP] Proper code formatting

2009-03-23 Thread Igor Escobar
...@gmail.com To: pru...@gmail.com CC: george.g.lar...@gmail.com; nos...@mckenzies.net; php-general@lists.php.net Subject: Re: [PHP] Proper code formatting Hi Angus, please, read this topic *http://www.igorescobar.com/blog/2009/02/03/coding-standards/ * I speak a little bit about

RE: [PHP] Proper code formatting

2009-03-23 Thread abdulazeez alugo
Im brazilian, and i understand your language, why you dont undertand my ? Regards, Igor Escobar systems analyst interface designer www . igorescobar . com Well I guess the answer to that is obvious. I'm not brazilian and it would be so generous of you to use the most acceptable

Re: [PHP] Proper code formatting

2009-03-23 Thread Igor Escobar
Ok man, I'm sorry. This post i wrote in a few days ago in my native language. I dont have time enough to write in two languagesbut who knows in the future i can do it? I'm sorry about that man,but if you like the post anyway, try something like google translator. Regards, Igor Escobar

RE: [PHP] Proper code formatting

2009-03-23 Thread abdulazeez alugo
Ok man, I'm sorry. This post i wrote in a few days ago in my native language. I dont have time enough to write in two languagesbut who knows in the future i can do it? I'm sorry about that man,but if you like the post anyway, try something like google translator. Regards,Igor Escobar

Re: [PHP] Proper code formatting

2009-03-23 Thread Shawn McKenzie
George Larson wrote: On Mon, Mar 23, 2009 at 8:23 AM, Shawn McKenzie nos...@mckenzies.netwrote: Bob McConnell wrote: From: Michael A. Peters Angus Mann wrote: Hi all, I'm fairly new to PHP so I don't have too many bad habits yet. I'm keen to make my code easy to read for me in the future,

Re: [PHP] Proper code formatting

2009-03-23 Thread Igor Escobar
Thx ab. I'm did not to be rude ;) Have a nice day. Regards, Igor Escobar systems analyst interface designer www . igorescobar . com On Mon, Mar 23, 2009 at 12:05 PM, abdulazeez alugo defati...@hotmail.comwrote: Ok man, I'm sorry. This post i wrote in a few days ago in my native