loading...

Discussion on: What programming best practice do you disagree with?

Collapse
lietux profile image
Janne "Lietu" Enberg

I used to be strongly for tabs over spaces, nowadays I strongly prefer spaces over tabs, yet I am slightly annoyed by the fact that it's now more difficult for me to customize just how wide the indentation is.

Why I now prefer spaces, is that once the indentation is in place, it won't just go haywire on different machines. E.g.:

def some_func_name(value, use_default_args=True, whatever_other_args=None,
                   foobar=False):
    pass

This kind of a thing would be regularly painful with tabs.

Collapse
jonrandy profile image
Thread Thread
lietux profile image
Janne "Lietu" Enberg

It's quite annoying when people just reply with a link instead of even sharing the gist of it and then the link for additional reference.

Tell this information to people writing PEP-8, black, gofmt and other such things. It's valuable feedback, but since fighting about formatting is not worth the time I use tools to auto-format everything and they will force the codebases to use spaces.