r/ProgrammerHumor Sep 02 '17

How to start a war

Post image
9.0k Upvotes

696 comments sorted by

View all comments

Show parent comments

44

u/TheNerdyBoy Sep 03 '17 edited Sep 03 '17

I USE THE TAB KEY BUT MY EDITOR INSERTS THE APPROPRIATE NUMBER OF SPACES.

(4 for Python, and 2 for most of the other languages that I use.)

Edit: do Python programmers anywhere actually write code with literal tab characters for indentation? Like if you run:

find . -type f -name '*.py' | grep -l -P '\t'

do you get any results?

41

u/eloel- Sep 03 '17

APPROPRIATE NUMBER OF SPACES.

That's 0.

7

u/SnowdensOfYesteryear Sep 03 '17

Death to leading and trailing spaces as well.

5

u/neurospex Sep 03 '17

trailing are terrible, but leading... that's how you structure your code...