2

Tabs vs spaces? Just use spaces so your code doesn't look like it's been tabbed out by a drunk monkey.

Comments
  • 5
    I'm fine w/ your preference, @princess.

    I do prefer the tabs, though.
  • 3
    I just use prettier to do everything
  • 1
    We can avoid having to make that decision, by coding everything in a single line
  • 1
    @cafecortado My programming teacher told me about such nightmare.

    He saw once a guy debugging such code...

    ...might've also mentioned the guy had been using Notepad since it was so long ago w/ little choice in IDEs at the time, but my memory might be misleading me about the Notepad thing.
  • 0
    You make zero sense.

    Tabs are indents. Is the code wrongfully indented? Than it's the case for both tabs and spaces. In fact you can mix up the width to make it worse with spaces. Just throw in some end of line whitespace and mixed new line characters to make it extra fun.

    Tabs are the best for indentation levels hands down. Always has been, somehow some idiots thought otherwise and it caught on.
    Alignment in text blocks is a different story and spaces are great in a monowidth font for that (don't use tabs please). But for indentation the tab character is the only correct solution.
  • -1
    @D-4got10-01 Your mentoin's emptier than a null pointer in a legacy codebase; go refactor your life before I debug it with fire. 😈
Add Comment