Click here to Skip to main content
15,917,177 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Is there an issue? Pin
honey the codewitch3-Jan-24 7:02
mvahoney the codewitch3-Jan-24 7:02 
GeneralRe: Is there an issue? Pin
glennPattonWork33-Jan-24 7:10
professionalglennPattonWork33-Jan-24 7:10 
GeneralRe: Is there an issue? Pin
honey the codewitch3-Jan-24 7:14
mvahoney the codewitch3-Jan-24 7:14 
GeneralRe: Is there an issue? Pin
Nelek4-Jan-24 7:31
protectorNelek4-Jan-24 7:31 
GeneralNo your line is too long. PinPopular
jschell3-Jan-24 5:06
jschell3-Jan-24 5:06 
GeneralRe: No your line is too long. Pin
Mike Hankey3-Jan-24 5:26
mveMike Hankey3-Jan-24 5:26 
GeneralRe: No your line is too long. Pin
PIEBALDconsult3-Jan-24 5:29
mvePIEBALDconsult3-Jan-24 5:29 
GeneralRe: No your line is too long. Pin
Member 118167764-Jan-24 6:52
Member 118167764-Jan-24 6:52 
With a readable size font, my maximum line length is 544 characters with 135 lines on the screen. I could do more with a slightly smaller font or perhaps a different font. That is not to say that I have written lines that long, I don't actually know how long that would be. We are not using punched cards anymore, we are not restricted to fan-fold paper -- who actually uses paper anymore? There is no unacceptable maximum for either the number of lines in a method / function or the length of a line. In both cases, I would expect the set of lengths to be a power distribution. Where the vast majority of function / line lengths are very short, and very long lengths would be extremely rare -- but no upper limit. The length of either a function or a line should be considered on a case by case basis.

There are many times that the most important information in a line of code occurs in the first 20 or 30 characters. The best readability may be a very, very long line because the majority of the time the remainder of the line is not of interest when reading code.

If there is a problem with lines that are too long, get a better monitor. My primary monitor is a 50" 4k monitor (actually TV, but that replaced a failed 48" 4k monitor because it was something like $200 instead of $2000). When available, and when I can afford it, my next monitor will be 55-65" and 8k. Even without a better monitor, just scroll left / right or up / down.
GeneralRe: No your line is too long. Pin
jschell5-Jan-24 6:04
jschell5-Jan-24 6:04 
GeneralRe: No your line is too long. Pin
Dave Kreskowiak3-Jan-24 5:56
mveDave Kreskowiak3-Jan-24 5:56 
GeneralRe: No your line is too long. Pin
dandy723-Jan-24 7:24
dandy723-Jan-24 7:24 
GeneralRe: No your line is too long. Pin
jschell4-Jan-24 3:57
jschell4-Jan-24 3:57 
GeneralRe: No your line is too long. Pin
k50543-Jan-24 6:21
mvek50543-Jan-24 6:21 
GeneralRe: No your line is too long. Pin
PIEBALDconsult3-Jan-24 6:36
mvePIEBALDconsult3-Jan-24 6:36 
GeneralRe: No your line is too long. Pin
obeobe4-Jan-24 1:27
obeobe4-Jan-24 1:27 
GeneralRe: No your line is too long. Pin
bryanren4-Jan-24 3:20
bryanren4-Jan-24 3:20 
GeneralRe: No your line is too long. Pin
jschell4-Jan-24 4:03
jschell4-Jan-24 4:03 
GeneralRe: No your line is too long. Pin
jschell4-Jan-24 3:58
jschell4-Jan-24 3:58 
GeneralRe: No your line is too long. Pin
trønderen3-Jan-24 6:29
trønderen3-Jan-24 6:29 
GeneralRe: No your line is too long. Pin
kmoorevs3-Jan-24 6:33
kmoorevs3-Jan-24 6:33 
GeneralRe: No your line is too long. Pin
trønderen3-Jan-24 7:12
trønderen3-Jan-24 7:12 
GeneralRe: No your line is too long. Pin
MarkTJohnson3-Jan-24 7:21
professionalMarkTJohnson3-Jan-24 7:21 
GeneralRe: No your line is too long. Pin
trønderen3-Jan-24 7:31
trønderen3-Jan-24 7:31 
GeneralRe: No your line is too long. Pin
MarkTJohnson3-Jan-24 8:01
professionalMarkTJohnson3-Jan-24 8:01 
GeneralRe: No your line is too long. Pin
trønderen3-Jan-24 8:34
trønderen3-Jan-24 8:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.