| Summary: | Coding conventions: Increase line length limit | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Ralf Sternberg <rsternberg> |
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | austin.riddle, fr.appel, holger.staudacher, ruediger.herrmann |
| Version: | 1.4 | ||
| Target Milestone: | 1.4 M6 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Ralf Sternberg
+1 +1. My preferred line length limit is 120. (In reply to comment #2) > +1. My preferred line length limit is 120. Even with a screen resolution of 1680px in width, I can't read 120 characters in the Eclipse editor area when package explorer and outline view are visible. And there are still some smaller screens around. Therefore I don't like to exceed 100 characters now. With this limit I guess, most of the reasonable statements will fit into one line. +1 It is my opinion that line length should be based on the screen real estate that a team works with. People don't print code anymore so they don't care that it fits nicely on a piece of paper and 80 character line length is based on the old Fortran days where column index was important and the max column was 80. However, I do think that setting the length too long will force people with lower resolutions to have to scroll horizontally, which is a mistake from a user interface perspective. I think that breaking up statements into multiple lines is in general preferable to long statements. There is some happy medium. 100 seems reasonable and equates to about 840 pixels on my monitor. There were no objections and my impression is that we're all happy with 100 characters per line - so I guess we have agreed on this. Let's use 100 characters per line from now on. I have changed the formatter settings in CVS HEAD and adapted the wiki page. |