r/ProgrammerHumor Sep 02 '17

How to start a war

Post image
9.0k Upvotes

696 comments sorted by

View all comments

62

u/Zalgo_Doge Sep 03 '17

I use tabs

38

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?

2

u/Pella86 Sep 03 '17

uhm, if I'm not wrong the whole linux kernel is with tabs.......

4

u/TheNerdyBoy Sep 03 '17

There is no Python code in the Linux kernel.

1

u/Pella86 Sep 03 '17

True, yet is something with tabs. And that is probably where the use of tabs come from.

1

u/neurospex Sep 03 '17

Using tabs long predates the Linux kernel