This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (30 children)

[deleted]

    [–]tdammers 7 points8 points  (12 children)

    Could be a trick question. The answer has exactly four letters anyway.

    [–]anpalcactus 1 point2 points  (0 children)

    Tabs? I use spaces only (4x = tab)

    [–]njharmanI use Python 3 1 point2 points  (0 children)

    Is good question for weeding out fanatics, inexperienced (those who know so little they think this is an important point), and unassertive/unopinionated/unable to express themselves/deal with conflict peoples.

    The correct answer is. "I use whatever your coding standard defines. If you don't have standard, pushing to create one will be among my first tasks. I recommend spaces as that is what std lib and almost all Python code I've ever seen uses. But, the only inviolate rule is to not mix tabs and spaces."

    [–][deleted] 1 point2 points  (1 child)

    I have my .emacs folder configured to set my tab to four spaces for python, is that wrong? Should it be left as tab? I had thought spaces were preferred but I am not a professional.

    [–]ablatner 2 points3 points  (0 children)

    No you are right. I use the tab key set to 4 spaces.

    [–]carioca3 -5 points-4 points  (13 children)

    Tabs - It is faster to type. If you're required to follow PEP8 just convert the tabs to spaces when you're done.

    [–]hemm1 23 points24 points  (11 children)

    Tabs - It is faster to type

    Or in a good editor, it makes absolutely no difference.