Tabs or Spaces

Tabs or Spaces

  • Tabs

    Votes: 32 61.5%
  • Spaces

    Votes: 20 38.5%

  • Total voters
    52
I use whatever is the standard for the project I am working on and I mimic the existing code structure to keep readability maximized.

When there are no pre-established guidelines or if its a personal project. I tend towards tabs set to 4 as most of my IDEs like it.

What will the next survey be? opening braces, end of line or new line?
if(braces){

or
if(braces)
{
 
the big issue with tab/spaces are the lines that use a mixture of them. with either/or the beginning indents will still line up regardless of your individual tab settings. When some have used tabs and others mixed in spaces it gets all jumbled up. And on an enterprise level it is impractical to adjust your editor each time to "figure" out the tab spacing. I mean small personal projects, yeah, whatever. large enterprise stuff, please leave the tabs at home.
 
If tabs are used properly there is no problem. This shouldn't be any more difficult in an enterprise setting than enforcing any other coding standard, and it gives the developers a bit more flexibility.
 
Back
Top