<mentorHatOff> My 2 cents that can be totally ignored. :) Tab based formatting falls apart when you have statements that continue on the next line. It is those kinds of statements where it's very important to keep the formatting to efficiently convey the logic and intention of what the statement is meant to do. With that said, I've always been against tabs.
Another personal preference, I hate 2-space tabs. It makes it difficult for me to easily see the logic in nested statements. The argument that the code veers too much to the right does not hold water to my mind with my reply being that it's an indication that the code logic is too convoluted and needs to be simplified. </mentorHatOff> Regards, Alan On Oct 17, 2011, at 10:08 AM, Adam Fuchs wrote: > I concede that spaces are more consistent across tools, although I stand by > my assertion that tabs can be more customizable to individual preferences. > Thus, I withdraw my previous vote and replace it with: > > +1 tabs > +1 spaces > +1 consistent formatting > > Adam > > > On Mon, Oct 17, 2011 at 10:56 AM, Keith Turner <[email protected]> wrote: > >> On Thu, Oct 13, 2011 at 4:36 PM, Adam Fuchs <[email protected]> wrote: >>> +1 for consistent formatting. >>> +1 for tabs. >>> -1 for spaces. >>> >>> Tabs are nice because everyone can choose their own look and feel (i.e. I >>> don't have to look at 2-space indenting!). >>> >> >> I would like to get to make a decision and reformat the existing code >> ASAP. I was undecided this morning, I did not think there was a clear >> advantage to one or the other. We were discussing the pros and cons. >> It seems the main pro w/ spaces, is consistency. The code looks the >> same everywhere (in less, vim, eclipse, code coverage tool, notepad, >> etc). With tabs, each one of these tools would need to be configured >> by the user to achieve consistency. The pro w/ tabs is that each user >> can make the code look how they like. I like the idea of a consistent >> look in all tools and being able to modify the tab stop is not >> important to me, I will get used to whatever we decide to go with. >> >> +1 for spaces (using hadoop formatting style) >> -1 for tabs >> >> Keith >>
