you are viewing a single comment's thread
view the rest of the comments
[–] 24 points 2 years ago* (last edited 2 years ago) (1 child)

Tabs should be 4 spaces because it can be replaced 1:1 with "tabs".

For example...

def foo():
    if bar:
        foobar()

vs...

def foo():
tabsif bar:
tabstabsfoobar()

Put that in your code review, cowards!

  • source
  • parent
  • hideshow 2 child comments
  • [–] 6 points 2 years ago (2 children)

    Only if a person's machine is set to a tab size of four spaces. By this logic, we would need eight spaces for the people with a larger tab size of eight on their machines so they could be 1:1. Minimizing horizontal space is ideal as not everyone has huge horizontal monitor space to work with. But, everyone has infinite vertical space with scrolling.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 4 points 2 years ago (2 children)

    If your code takes up so much horizontal space with 4-space tabs, you're putting too much on one line or indenting too deep. 4-space tabs keeps your line length manageable.

  • source
  • parent
  • hideshow 4 child comments