DEV Community

Discussion on: Maximum line length in your code

Collapse
 
moopet profile image
Ben Sinclair

80 is a guide. It's still used as a hard limit (sometimes 79) in a few places and there's no real reason not to use it where you can.

Sometimes languages are verbose, or variable names cumbersome, but that's why it's a guide rather than a rule. On the other hand, it's a small smell if you can't keep your lines to the same length as other developers on the same project...

I like splitting my logic up so that it's easier to remove a line at a time, and I dislike trying to read long, dense paragraphs of any text - let alone code.