You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Leszek Gawron <lg...@mobilebox.pl> on 2005/05/11 11:17:44 UTC

code formatting issue

is there a common line width to be kept? 78 characters in one line is 
hell of a readability problem and a little bit archaic.
WDYT?

-- 
Leszek Gawron                                      lgawron@mobilebox.pl
IT Manager                                         MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

Re: code formatting issue

Posted by Leszek Gawron <lg...@mobilebox.pl>.
Ralph Goers wrote:
> Leszek Gawron wrote:
> 
>> Sylvain Wallez wrote:
>>
>>> Leszek Gawron wrote:
>>>
>>>> is there a common line width to be kept? 78 characters in one line 
>>>> is hell of a readability problem and a little bit archaic.
>>>> WDYT?
>>>
>>>
>>>
>>>
>>>
>>> +1, I use 150 :-)
>>
>>
>> me too :) eclipse creates a total mess when formatting the code with 
>> 78 characters per line. Can we establish some project standard?
>>
> 150 seems too long (I'm past 40 and use a larger font so unless I buy a 
> 32 inch monitor 150 means a lot of scrolling).  I normally use 100, but 
> 120 would be OK by me.
I checked my settings: 120.

-- 
Leszek Gawron                                      lgawron@mobilebox.pl
IT Manager                                         MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

Re: code formatting issue

Posted by Ralph Goers <Ra...@dslextreme.com>.
Leszek Gawron wrote:

> Sylvain Wallez wrote:
>
>> Leszek Gawron wrote:
>>
>>> is there a common line width to be kept? 78 characters in one line 
>>> is hell of a readability problem and a little bit archaic.
>>> WDYT?
>>
>>
>>
>>
>> +1, I use 150 :-)
>
> me too :) eclipse creates a total mess when formatting the code with 
> 78 characters per line. Can we establish some project standard?
>
150 seems too long (I'm past 40 and use a larger font so unless I buy a 
32 inch monitor 150 means a lot of scrolling).  I normally use 100, but 
120 would be OK by me.

Ralph

Re: code formatting issue

Posted by Jorg Heymans <jh...@domek.be>.
Leszek Gawron wrote:

> me too :) eclipse creates a total mess when formatting the code with 78
> characters per line. Can we establish some project standard?

FYI, the code formatter in eclipse can be exported as xml. It could be
included in the repository allowing developers to switch to this
formatter at will. This would make it easier (for eclipse users) to
enforce some sort of project formatting standard.


Now discussing formatting standards itself is a religious thing which i
ofcourse happily ignore in this post.


Regards
Jorg



Re: code formatting issue

Posted by Leszek Gawron <lg...@mobilebox.pl>.
Sylvain Wallez wrote:
> Leszek Gawron wrote:
> 
>> is there a common line width to be kept? 78 characters in one line is 
>> hell of a readability problem and a little bit archaic.
>> WDYT?
> 
> 
> 
> +1, I use 150 :-)
me too :) eclipse creates a total mess when formatting the code with 78 
characters per line. Can we establish some project standard?

-- 
Leszek Gawron                                      lgawron@mobilebox.pl
IT Manager                                         MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

Re: code formatting issue

Posted by Vadim Gritsenko <va...@reverycodes.com>.
Sylvain Wallez wrote:
> Leszek Gawron wrote:
> 
>> is there a common line width to be kept? 78 characters in one line is 
>> hell of a readability problem and a little bit archaic.

Use your judgement.


> +1, I use 150 :-)

I use 120 or so for code and 80 or so for javadoc.

Vadim

Re: code formatting issue

Posted by Sylvain Wallez <sy...@apache.org>.
Leszek Gawron wrote:

> is there a common line width to be kept? 78 characters in one line is 
> hell of a readability problem and a little bit archaic.
> WDYT?


+1, I use 150 :-)

Sylvain

-- 
Sylvain Wallez                        Anyware Technologies
http://apache.org/~sylvain            http://anyware-tech.com
Apache Software Foundation Member     Research & Technology Director