Page 1 of 1
Poll: Do You Code w/ Wordwrap On or Off?
Posted: Tue Sep 07, 2010 12:14 pm
by Jonah Bron
Well?
warning: this is a trick question
Re: Poll: Do You Code w/ Wordwrap On or Off?
Posted: Wed Sep 08, 2010 2:05 pm
by McInfo
NetBeans doesn't have wordwrap.
Jonah Bron wrote:warning: this is a trick question
What's the trick?
Re: Poll: Do You Code w/ Wordwrap On or Off?
Posted: Wed Sep 08, 2010 3:28 pm
by Jonah Bron
The trick is that you shouldn't have lines long enough to need word wrap. At least, that's what the ZEND coding standards state.
Re: Poll: Do You Code w/ Wordwrap On or Off?
Posted: Fri Sep 10, 2010 1:39 am
by Benjamin
There's really not a whole lot of folks coding in 80 character width terminals any more. Writing PHP in one of those wouldn't make sense because if you were running a GUI you could use a decent editor and if you weren't running a GUI you couldn't test the web output anyway, except in text mode.
Re: Poll: Do You Code w/ Wordwrap On or Off?
Posted: Sun Sep 12, 2010 9:39 pm
by Jonah Bron
Seems to me like long lines really ugly-up the code and make it difficult to read. Most of the time, the only reason a line is long is because there are several levels of function hierarchy, or just a bunch of arguments for a function. I feel like it really keeps thing tidy to keep lines under about 80 chars.