Well?
warning: this is a trick question
Poll: Do You Code w/ Wordwrap On or Off?
Moderator: General Moderators
- 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?
NetBeans doesn't have wordwrap.
What's the trick?Jonah Bron wrote:warning: this is a trick question
- 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?
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?
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.
- 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?
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.