Common sense is 80 columns for prose, because anything longer makes it difficult to easily read from one line to the next.
Code, however, (a) does not fit into dense paragraphs, and (b) often comes with heavy indentation. I used to try and fit it into eighty columns, and ended up with the code more difficult to read, as a result. I'd say 132 columns is a reasonable optimum on this scale.
I don't have difficulty reading prose which is significantly wider than 80 characters, but I'm used to reading solid prose on a 1680x1050 screen with small fonts.
I disagree, but then my terminals and editors are typically around 140 columns wide.
Common sense is whatever is right for the project you're in. Some projects use tabs, define tabs to be eight characters, require 80 column limits, and complain when you use acronyms for your variable names because they're not clear enough.
Some projects you end up with huge lines like the example in the poll, and that sucks too.
Mostly I *try* to stick to around 80 columns, but I won't arbitrarily wrap something which would exceed that by less than 20 columns unless it doesn't affect readability to me.
no subject
Instead it should be "Common sense" wrt. line length IMO.
no subject
no subject
Code, however, (a) does not fit into dense paragraphs, and (b) often comes with heavy indentation. I used to try and fit it into eighty columns, and ended up with the code more difficult to read, as a result. I'd say 132 columns is a reasonable optimum on this scale.
no subject
If your code marches off the right of your screen then you're doing it wrong.
no subject
no subject
Common sense is whatever is right for the project you're in. Some projects use tabs, define tabs to be eight characters, require 80 column limits, and complain when you use acronyms for your variable names because they're not clear enough.
Some projects you end up with huge lines like the example in the poll, and that sucks too.
Mostly I *try* to stick to around 80 columns, but I won't arbitrarily wrap something which would exceed that by less than 20 columns unless it doesn't affect readability to me.