Re: Proper code formatting
| From: | Michael A. Peters | Date: | Mon, 23 Mar 2009 13:31:36 +0000 |
| Subject: | Re: Proper code formatting | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-290581@lists.php.net to get a copy of this message | ||
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 McConnellI just remembered why I started doing it the way I currently do it (earlier thread on this I had forgotten) - my desktop monitor went south, so I ended up using my laptop exclusively for a few months (money was tight) - an old Thinkpad with low ram, so X11 really taxes it, worked in console a lot. Work in a console and vertical space is of viewing value, hence putting the opening { at the end and not on new line of it's own, and it has stuck with me ever since.