Re: standard line length in java source

From: batman1990 (ignore_at_me.org)
Date: 10/05/03


Date: Sun, 05 Oct 2003 14:55:19 GMT

Since I use emacs, I try to stay at 80 lines. Emacs properly intents the
next line so it makes thins easy (emacs is life!!!)
Jimbo wrote:

> wasn't sure i should put this here or in comp.lang.java.misc (or even
> comp.lang.misc) but I was wondering what is the consensus for line
> length for java code?
>
> i always thought 80 chars/line was proper, since it handles printing
> to a printer so well. however, i find myself having to break up lines
> of code a bit too much with that number. and with today's printers,
> that's not nearly as true as it was with the dot-matrix.
>
> so, i did some "research" (ie: web searches) for proper or standard
> line lengths for source code and found 3 different "standards", 80,
> 100, and 120.
>
> 120 would be great (plenty of room) but then I wonder if that might be
> a bit to long (150% longer then what I am used to) and if other
> programmers saw it they would freak out.
>
> Yes, not really java-specific (though since that's what I code in now,
> it's java specific for myself), but thought I'd try to get some
> opinions.