Thread: [Thinlet-development] Upcoming source code reformat.
Brought to you by:
bajzat
From: Andrzej B. <ab...@ge...> - 2004-08-15 22:48:48
|
Hi, Following an overall positive reaction to my proposal, I plan to reformat the source code of thinlet.* classes to use 2-space indent and no literal Tab (\t) character. From now on only such whitespace formatting will be allowed. This will hopefully help in readability of the source code, but unfortunately it will result in a massive whitespace-only diff. -- Best regards, Andrzej Bialecki ------------------------------------------------- Software Architect, System Integration Specialist CEN/ISSS EC Workshop, ECIMF project chair EU FP6 E-Commerce Expert/Evaluator ------------------------------------------------- FreeBSD developer (http://www.freebsd.org) |
From: Stephen C. <sco...@bt...> - 2004-08-15 23:05:09
|
Please, 4 spaces not 2. Please. Its just the standard in Java OSS. Stephen (Apache Jakarta Commons committer) ----- Original Message ----- From: "Andrzej Bialecki" <ab...@ge...> To: <th...@ya...> Cc: < > Sent: Sunday, August 15, 2004 11:48 PM Subject: [Thinlet-development] Upcoming source code reformat. > Hi, > > Following an overall positive reaction to my proposal, I plan to > reformat the source code of thinlet.* classes to use 2-space indent and > no literal Tab (\t) character. From now on only such whitespace > formatting will be allowed. > > This will hopefully help in readability of the source code, but > unfortunately it will result in a massive whitespace-only diff. > > -- > Best regards, > Andrzej Bialecki > > ------------------------------------------------- > Software Architect, System Integration Specialist > CEN/ISSS EC Workshop, ECIMF project chair > EU FP6 E-Commerce Expert/Evaluator > ------------------------------------------------- > FreeBSD developer (http://www.freebsd.org) > > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Thinlet-development mailing list > Thi...@li... > https://lists.sourceforge.net/lists/listinfo/thinlet-development |
From: Andrzej B. <ab...@ge...> - 2004-08-16 08:25:14
|
Stephen Colebourne wrote: > Please, 4 spaces not 2. Please. Its just the standard in Java OSS. > > Stephen > (Apache Jakarta Commons committer) Oops.. sorry for the confusion, I meant 4 spaces - I use this value myself. However, I use 2 spaces for secondary indents... :-) What's the practice in Commons? What's the e.g. line-wrap length? Any docs (in addition to the Sun's one) we might consult? -- Best regards, Andrzej Bialecki ------------------------------------------------- Software Architect, System Integration Specialist CEN/ISSS EC Workshop, ECIMF project chair EU FP6 E-Commerce Expert/Evaluator ------------------------------------------------- FreeBSD developer (http://www.freebsd.org) |
From: Stephen C. <sco...@bt...> - 2004-08-16 18:40:46
|
Commons uses 4 spaces for all indents. Line length is typically 80 characters, but allowing longer line to extend to 120 characters. The commons style is generally follow Sun coding style, brackets at end of line etc. if (a < b) { // do stuff } else { // do other stuff } There is no commons coding standards guide itself, just common practices, which I've tried to summarise above. The main thing is to go with the Sun Java defaults (and thus IDE and Java OSS) as much as possible. So, +1 to the reformat ;-) Stephen Stephen Colebourne wrote: > > > Please, 4 spaces not 2. Please. Its just the standard in Java OSS. > > > > Stephen > > (Apache Jakarta Commons committer) > > Oops.. sorry for the confusion, I meant 4 spaces - I use this value > myself. However, I use 2 spaces for secondary indents... :-) > > What's the practice in Commons? What's the e.g. line-wrap length? Any > docs (in addition to the Sun's one) we might consult? > > -- > Best regards, > Andrzej Bialecki |
From: Michael N. S. <mis...@ho...> - 2004-08-18 01:22:11
|
I am against it, but... Oh my God, it has already been commited ;-) Regards, Michael (sick for three days, couldn't even read email...) ----- Original Message ----- From: "Andrzej Bialecki" <ab...@ge...> To: "Stephen Colebourne" <sco...@bt...> Cc: <thi...@li...> Sent: Monday, August 16, 2004 5:25 AM Subject: Re: [Thinlet-development] Upcoming source code reformat. > Stephen Colebourne wrote: > > > Please, 4 spaces not 2. Please. Its just the standard in Java OSS. > > > > Stephen > > (Apache Jakarta Commons committer) > > Oops.. sorry for the confusion, I meant 4 spaces - I use this value > myself. However, I use 2 spaces for secondary indents... :-) > > What's the practice in Commons? What's the e.g. line-wrap length? Any > docs (in addition to the Sun's one) we might consult? > > -- > Best regards, > Andrzej Bialecki > > ------------------------------------------------- > Software Architect, System Integration Specialist > CEN/ISSS EC Workshop, ECIMF project chair > EU FP6 E-Commerce Expert/Evaluator > ------------------------------------------------- > FreeBSD developer (http://www.freebsd.org) > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Thinlet-development mailing list > Thi...@li... > https://lists.sourceforge.net/lists/listinfo/thinlet-development > |