r/Python • • Apr 29 '20

Discussion Tab vs Spaces

Post image
702 Upvotes

72 comments sorted by

View all comments

Show parent comments

4

u/[deleted] Apr 30 '20

I find it ironic that one comment you are defending personal choice, and the next you are saying you absolutely must not comment in this way

0

u/[deleted] Apr 30 '20

Personal choice is personal. Nobody else has to deal with it. The fact that I set my tabs to 20 for example will be unknown to anybody so it's no concern.

So why is it funny? Because the comments are NOT a personal choice, since a lot of people will be editing the same code and will be scratching their head because it will say

something += 1  # Increment something

and the reader will be "well thank you captain obvious!", and curse at the screen because he has no clue WHY that thing was necessary there.

3

u/[deleted] Apr 30 '20

So if someone wrote:

# Increment something
something += 1

You would be totally fine with that right? Since your disagreement was over the format of the comments, not the idea of commenting obvious code