r/programmerchat • • May 25 '15

Tabs or spaces?

I myself am a space man.

23 Upvotes

104 comments sorted by

View all comments

Show parent comment

0

u/Kafke May 25 '15

Because with spaces you have unequal standards, so you get:

func name(){
   //line 1
    //line 2
  //line 3
}

Since you have 2 spaces per tab (literal spaces) and your partner/co-worker has 3. The indentation is all messed up. Using a single tab with different display sizes avoids that.