You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by Andy <an...@orprovision.com> on 2010/09/16 08:36:45 UTC

Code formatting

  Hi All,

Do we have any standard source code formatting rules anywhere?

I am using Netbeans default formatting, but this may not be to 
everyone's taste.

Regards,

Andy


Re: Code formatting

Posted by dsh <da...@googlemail.com>.
If you want Eclipse to not reformat the source code while saving a
file you have to de-activate Save Actions under Window > Preferences >
Java > Editor > Save Actions. Or just use a Eclipse code template that
matches the proposed style :)

Cheers
Daniel

On Fri, Sep 17, 2010 at 10:49 PM, David Blevins <da...@visi.com> wrote:
>
> On Sep 16, 2010, at 1:36 PM, Andy wrote:
>
>>>
>> Thanks people - I will go through and reformat anything I have touched.
>
> Cool.  Also an FYI that we use two spaces in the xml docs rather than 4.
>
> As a matter of style I tend to try not to reformat with actual code changes, just so people can actually see the real change.  Sometime's I'll quick reformat something and check it in with a simple "reformatted" comment before digging in and doing the real work.
>
> Love to see all the activity.  This is great!
>
>
> -David
>
>
>

Re: Code formatting

Posted by David Blevins <da...@visi.com>.
On Sep 16, 2010, at 1:36 PM, Andy wrote:

>> 
> Thanks people - I will go through and reformat anything I have touched.

Cool.  Also an FYI that we use two spaces in the xml docs rather than 4.

As a matter of style I tend to try not to reformat with actual code changes, just so people can actually see the real change.  Sometime's I'll quick reformat something and check it in with a simple "reformatted" comment before digging in and doing the real work.

Love to see all the activity.  This is great!


-David



Re: Code formatting

Posted by Andy <an...@orprovision.com>.
  On 16.09.2010 17:07, Karan Malhi wrote:
> Also discussed here
> http://www.mail-archive.com/openejb-dev@incubator.apache.org/msg01231.html
>
> On Thu, Sep 16, 2010 at 10:59 AM, Mohammad Nour El-Din<
> nour.mohammad@gmail.com>  wrote:
>
>> Hi Andy...
>>
>>    This issue has been discussed in this thread
>> http://marc.info/?l=openejb-development&m=122420938019348&w=2 .
>>
>> On Thu, Sep 16, 2010 at 9:36 AM, Andy<an...@orprovision.com>
>> wrote:
>>>   Hi All,
>>>
>>> Do we have any standard source code formatting rules anywhere?
>>>
>>> I am using Netbeans default formatting, but this may not be to everyone's
>>> taste.
>>>
>>> Regards,
>>>
>>> Andy
>>>
>>>
>>
>>
>> --
>> Thanks
>> - Mohammad Nour
>>    Author of (WebSphere Application Server Community Edition 2.0 User Guide)
>>    http://www.redbooks.ibm.com/abstracts/sg247585.html
>> - LinkedIn: http://www.linkedin.com/in/mnour
>> - Blog: http://tadabborat.blogspot.com
>> ----
>> "Life is like riding a bicycle. To keep your balance you must keep moving"
>> - Albert Einstein
>>
>> "Writing clean code is what you must do in order to call yourself a
>> professional. There is no reasonable excuse for doing anything less
>> than your best."
>> - Clean Code: A Handbook of Agile Software Craftsmanship
>>
>> "Stay hungry, stay foolish."
>> - Steve Jobs
>>
>
>
Thanks people - I will go through and reformat anything I have touched.


Re: Code formatting

Posted by Karan Malhi <ka...@gmail.com>.
Also discussed here
http://www.mail-archive.com/openejb-dev@incubator.apache.org/msg01231.html

On Thu, Sep 16, 2010 at 10:59 AM, Mohammad Nour El-Din <
nour.mohammad@gmail.com> wrote:

> Hi Andy...
>
>   This issue has been discussed in this thread
> http://marc.info/?l=openejb-development&m=122420938019348&w=2 .
>
> On Thu, Sep 16, 2010 at 9:36 AM, Andy <an...@orprovision.com>
> wrote:
> >  Hi All,
> >
> > Do we have any standard source code formatting rules anywhere?
> >
> > I am using Netbeans default formatting, but this may not be to everyone's
> > taste.
> >
> > Regards,
> >
> > Andy
> >
> >
>
>
>
> --
> Thanks
> - Mohammad Nour
>   Author of (WebSphere Application Server Community Edition 2.0 User Guide)
>   http://www.redbooks.ibm.com/abstracts/sg247585.html
> - LinkedIn: http://www.linkedin.com/in/mnour
> - Blog: http://tadabborat.blogspot.com
> ----
> "Life is like riding a bicycle. To keep your balance you must keep moving"
> - Albert Einstein
>
> "Writing clean code is what you must do in order to call yourself a
> professional. There is no reasonable excuse for doing anything less
> than your best."
> - Clean Code: A Handbook of Agile Software Craftsmanship
>
> "Stay hungry, stay foolish."
> - Steve Jobs
>



-- 
Karan Singh Malhi

Re: Code formatting

Posted by Mohammad Nour El-Din <no...@gmail.com>.
Hi Andy...

   This issue has been discussed in this thread
http://marc.info/?l=openejb-development&m=122420938019348&w=2 .

On Thu, Sep 16, 2010 at 9:36 AM, Andy <an...@orprovision.com> wrote:
>  Hi All,
>
> Do we have any standard source code formatting rules anywhere?
>
> I am using Netbeans default formatting, but this may not be to everyone's
> taste.
>
> Regards,
>
> Andy
>
>



-- 
Thanks
- Mohammad Nour
  Author of (WebSphere Application Server Community Edition 2.0 User Guide)
  http://www.redbooks.ibm.com/abstracts/sg247585.html
- LinkedIn: http://www.linkedin.com/in/mnour
- Blog: http://tadabborat.blogspot.com
----
"Life is like riding a bicycle. To keep your balance you must keep moving"
- Albert Einstein

"Writing clean code is what you must do in order to call yourself a
professional. There is no reasonable excuse for doing anything less
than your best."
- Clean Code: A Handbook of Agile Software Craftsmanship

"Stay hungry, stay foolish."
- Steve Jobs