DEV Community

Discussion on: Does Coding with a Column Width of 80 Make Sense in 2024?

Collapse
 
alexparra profile image
Alex Parra

Personally I completely disable forced wrapping and allow myself some long lines.
Scrolling horizontally on a Mac is a piece of cake and as natural as scrolling vertically.
I also feel it makes it much easier to scan the code.
Obviously this is a very personal preference and it should be a team decision as to what rules to abide by that suit everyone.

Collapse
 
mnayeem profile image
Nayeem Rahman

Are you sure it makes it easier to scan your code? We're not built to parse nested structures like AST's horizontally, especially when we can't look at it all at the same time. I think it helps to break lines at operators of lower precedence when it comes to readability.

Collapse
 
alexparra profile image
Alex Parra

Hi Nayeem!
I don’t mean i don’t break nested structures. I mean I don’t want to be pinned to a set length. Some lines make sense at 85 or 90 or whatever if it’s clear.
For example, I think blank lines are much more important at creating “separations” than imposing a strict line length.
And thorough indentation too.
Thanks for your reply.