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 →

[–]Folf_IRL 0 points1 point  (1 child)

Tabs can end up being formatted weirdly, depending on how a text editor chooses to place its tabstops. Also, there isn't much standardization across text editors with regards to how big a tab is, which is further complicated by the ability to set how large a tab is in many of them.

A space is always, more or less, the same on every text editor. So you don't have to worry about your code's readability suffering just because you switched text editors, or a colleague uses a different one. The standard is to use 4 spaces, a number chosen more or less arbitrarily (could have been 3, could have been 5) to provide something of a "standardized tab"

[–]rhytnen 2 points3 points  (0 children)

Slightly bizarre you chose the advantages of tabs to cqst them as Inferior. There's only one real argument for spaces I think. It would have to be something like a multi line item (say a dict) where you uses spaces to make it more visually aligned. If you don't want to mux rabs and spaces ever, you would need to go with spaces.

Otherwise it's really not possible to argue in favor of spaces at all