Re: Howdy (new in here)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/18/11 8:39 AM, Kirk Bailey wrote:
Oh hey, that's a good point. All the stuff i saw so far indented 2
spaces. WHY?
Can I just indent a TAB if my editor permits this? indenting 4 spaces (2
nests) is easy, but suppose I hit one extra space- not enough difference
to be really noticeable. Let's talk about indentation in php for a
moment, could we?

I use PHPEclipse for an editor. It has the best code beautifier I've used for PHP class editing. I hit Ctrl+Shift+F and the whole file jumps into the format I have predefined. It handles indentation, curly braces up or down, spacing, etc.

I can take code snippets from anywhere and with a couple keystrokes, the format adheres to my preferences and is readable.

-- Dante




On 2/16/2011 6:36 PM, Tamara Temple wrote:

On Feb 15, 2011, at 11:23 PM, Brian Waters wrote:

On Tue, Feb 15, 2011 at 11:46 PM, Tamara Temple
<tamouse.lists@xxxxxxxxx> wrote:

I was unlucky enough to find someone who coded a
function that went on for 30 pages one (this was in C, not PHP) and
*that*
was hard to untangle.

Why!?!?!?!?!?!?!

- BW

(un?)fortunately, he was no longer with the company, which was why I
got to take it over. It wasn't the oddest thing, by far. His designs
were hugely complex (way overengineered for the task at hand, plus
they didn't work), and he didn't use any consistent indenting style.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux