DEV Community

Discussion on: Maximum line length in your code

Collapse
 
dean profile image
dean

I use 120. I still try to keep it at 80 so that I can view it in a command prompt (if needed) without resizing, although sometimes for things like method declarations, deep indentation (especially in languages that don't have good error handling), and nested loops, the extra bump up to 120 is very convenient.

If your code is ever longer than 120, it's probably spaghetti and needs to be refactored.