3 ms·
That's for books. When reading code, I'd rather see a single statement on one line, rather that break it at 2 lines because it passed some ancient 80 char limi
by coldtea 5y ago
That's for books.
When reading code, I'd rather see a single statement on one line, rather that break it at 2 lines because it passed some ancient 80 char limit...
- d0mine 5y ago"ancient" doesn't mean wrong. Round wheels are ancient, it doesn't mean we should switch to the square wheels.
- cortesoft 5y agoIt doesn't mean right either, and the person you are responding to gave specific reasons why they prefer longer.
- kortilla 5y agoSo it’s almost as if the “ancient” qualifier was useless.
- coldtea 5y ago>Round wheels are ancient, it doesn't mean we should switch to the square wheels. No, but it means we better use rubber wheels, not stone ones...
- hsbauauvhabzb 5y agoWe also shouldn’t burn people deemed witches at the stake. Being ancient doesn’t make it right, either.
- mayoff 5y agoAnd we all use 80-column wheels because that's what the ancients used, by Zeus! Oh wait, we use wheels sized for their use cases…
- jlarocco 5y agoDo we, though? http://www.naciente.com/essay94.htm http://www.naciente.com/essay94.htm
- nomercy400 5y agoThank you. I was looking for this. I don't care if a line needs to be 180 chars if it starts with log.debug. Just like searching, I read my code globally based on the first 10-20 chars. If I need details on a line, I'll read the whole line. I do however put chained methods on new lines, because they are often a new statement. And I use 4 spaces for indent, because my IDE is smart enough, it is in my programming language guidelines, and that's what my comapny uses.
- thow_away_soon 5y agoI'd rather not have that statement more than 80 char long; that might be a one liner where many things are happening, in case there _is_ value is breaking it up, or maybe the variable names are too long, not helping readability.
- rocqua 5y agoLong variable names can cause long lines. So can simple arithmetic that would be worse with intermediate values.