DEV Community

Discussion on: Maximum line length in your code

Collapse
 
xowap profile image
Rémy 🤖

I noticed that code is much easier to read if it's less than 80 characters wide, so I stick very strictly to that.

I see a lot of 120 in the comments, that's just too wide for my brain to read at once.

Collapse
 
moopet profile image
Ben Sinclair

I know that, like you, I don't like reading overly-long lines.

There's been a lot written about the readability of lines < 60 or > 100 (approximately) in things like blog posts and newspapers and I think that it makes sense to apply the same knowledge to code too.