2 ms·
Me. When I bring up the Netbeans editor, there is a red line down the right margin at column 80, and I'm not inclined to change that setting, although I someti
by Roboprog 14y ago
Me. When I bring up the Netbeans editor, there is a red line down the right margin at column 80, and I'm not inclined to change that setting, although I sometimes type a few characters past it. This is a wise tradition, handed down from the tribal elders :-) I sometimes need to see at least a little bit of something else on screen besides your hideously wide code.
If you ever have to print out code, it makes a nice line size convention as well. Printing is becoming less common, unless you publish books, but it's still worth considering that it might be easier for the reader if the lines aren't mind-numbingly long.
Why do newspapers have multiple columns of text, when clearly they have space to go 14 inches or more across?
- Roboprog 14y agoAlmost forgot: if you need more than 80 columns, your routine is probably too long. Indicated by deep nesting, and/or variable names that need to be more than one or two English words because the scope and intent of the variables is not obvious.
- ThePherocity 14y agoYou don't write in Objective-C for an Apple then, eh?
- Roboprog 14y agoNot much, no. (for a few weeks, 2 years ago, so literally, some, but not bloody much) Can the args to messages not be put on a continuation line?
- ThePherocity 14y agoYea, they can, but some of the names are overly verbose.
- deleted 14y ago[deleted]