Poll: Do You Code w/ Wordwrap On or Off?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply

Do you code with wordwrap on or off

On
2
17%
Off
10
83%
 
Total votes: 12

User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Poll: Do You Code w/ Wordwrap On or Off?

Post by Jonah Bron »

Well?

warning: this is a trick question
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: Poll: Do You Code w/ Wordwrap On or Off?

Post by McInfo »

NetBeans doesn't have wordwrap. :(
Jonah Bron wrote:warning: this is a trick question
What's the trick?
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: Poll: Do You Code w/ Wordwrap On or Off?

Post 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.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Poll: Do You Code w/ Wordwrap On or Off?

Post 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.
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: Poll: Do You Code w/ Wordwrap On or Off?

Post 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.
Post Reply