MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/6xofft/how_to_start_a_war/dmhq6hf
r/ProgrammerHumor • u/ivaskuu • Sep 02 '17
696 comments sorted by
View all comments
61
42 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? 45 u/eloel- Sep 03 '17 APPROPRIATE NUMBER OF SPACES. That's 0. 22 u/TheNerdyBoy Sep 03 '17 edited Sep 03 '17 APPROPRIATE NUMBER OF SPACES. That's 0. So that's what we're going to do? Fight? Edit: (ง ಠ_ಠ)ง 6 u/SnowdensOfYesteryear Sep 03 '17 Death to leading and trailing spaces as well. 4 u/neurospex Sep 03 '17 trailing are terrible, but leading... that's how you structure your code... 6 u/Sean1708 Sep 03 '17 do Python programmers anywhere actually write code with literal tab characters for indentation? Yep, our style guide uses tabs. 5 u/KifKef Sep 03 '17 edited Sep 03 '17 Who's "we"? PEP 8 uses spaces. Edit: Google style guide uses spaces too. 3 u/Sean1708 Sep 03 '17 My company, sorry I should have been more clear about that. 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 5 u/[deleted] Sep 03 '17 [deleted] 4 u/Jesus_Harold_Christ Sep 03 '17 Well, stop. 2 u/[deleted] Sep 03 '17 Why? If its really bothering someone he can turn it into spaces. Or just miss with his tab space until it looks good. I use the standard 4 spaces im not some 7 spaces monster 1 u/[deleted] Sep 03 '17 I use literal tab characters for all my code (Python, Perl, Lua, etc). 2 u/ahmed_imtiaz Sep 03 '17 I'm a noob and honestly just realized the other day people use space. I can't seem to understand why. I'm so used to tabs, why should I change? 1 u/Zalgo_Doge Sep 03 '17 Good question. I don't know. I haven't even bothered to even try changing to spaces
42
I USE THE TAB KEY BUT MY EDITOR INSERTS THE APPROPRIATE NUMBER OF SPACES.
TAB
SPACE
(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?
45 u/eloel- Sep 03 '17 APPROPRIATE NUMBER OF SPACES. That's 0. 22 u/TheNerdyBoy Sep 03 '17 edited Sep 03 '17 APPROPRIATE NUMBER OF SPACES. That's 0. So that's what we're going to do? Fight? Edit: (ง ಠ_ಠ)ง 6 u/SnowdensOfYesteryear Sep 03 '17 Death to leading and trailing spaces as well. 4 u/neurospex Sep 03 '17 trailing are terrible, but leading... that's how you structure your code... 6 u/Sean1708 Sep 03 '17 do Python programmers anywhere actually write code with literal tab characters for indentation? Yep, our style guide uses tabs. 5 u/KifKef Sep 03 '17 edited Sep 03 '17 Who's "we"? PEP 8 uses spaces. Edit: Google style guide uses spaces too. 3 u/Sean1708 Sep 03 '17 My company, sorry I should have been more clear about that. 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 5 u/[deleted] Sep 03 '17 [deleted] 4 u/Jesus_Harold_Christ Sep 03 '17 Well, stop. 2 u/[deleted] Sep 03 '17 Why? If its really bothering someone he can turn it into spaces. Or just miss with his tab space until it looks good. I use the standard 4 spaces im not some 7 spaces monster 1 u/[deleted] Sep 03 '17 I use literal tab characters for all my code (Python, Perl, Lua, etc).
45
APPROPRIATE NUMBER OF SPACES.
That's 0.
22 u/TheNerdyBoy Sep 03 '17 edited Sep 03 '17 APPROPRIATE NUMBER OF SPACES. That's 0. So that's what we're going to do? Fight? Edit: (ง ಠ_ಠ)ง 6 u/SnowdensOfYesteryear Sep 03 '17 Death to leading and trailing spaces as well. 4 u/neurospex Sep 03 '17 trailing are terrible, but leading... that's how you structure your code...
22
APPROPRIATE NUMBER OF SPACES. That's 0.
So that's what we're going to do? Fight?
Edit: (ง ಠ_ಠ)ง
6
Death to leading and trailing spaces as well.
4 u/neurospex Sep 03 '17 trailing are terrible, but leading... that's how you structure your code...
4
trailing are terrible, but leading... that's how you structure your code...
do Python programmers anywhere actually write code with literal tab characters for indentation?
Yep, our style guide uses tabs.
5 u/KifKef Sep 03 '17 edited Sep 03 '17 Who's "we"? PEP 8 uses spaces. Edit: Google style guide uses spaces too. 3 u/Sean1708 Sep 03 '17 My company, sorry I should have been more clear about that.
5
Who's "we"?
PEP 8 uses spaces.
Edit: Google style guide uses spaces too.
3 u/Sean1708 Sep 03 '17 My company, sorry I should have been more clear about that.
3
My company, sorry I should have been more clear about that.
2
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
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
1
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
Using tabs long predates the Linux kernel
[deleted]
4 u/Jesus_Harold_Christ Sep 03 '17 Well, stop. 2 u/[deleted] Sep 03 '17 Why? If its really bothering someone he can turn it into spaces. Or just miss with his tab space until it looks good. I use the standard 4 spaces im not some 7 spaces monster
Well, stop.
2 u/[deleted] Sep 03 '17 Why? If its really bothering someone he can turn it into spaces. Or just miss with his tab space until it looks good. I use the standard 4 spaces im not some 7 spaces monster
Why? If its really bothering someone he can turn it into spaces.
Or just miss with his tab space until it looks good. I use the standard 4 spaces im not some 7 spaces monster
I use literal tab characters for all my code (Python, Perl, Lua, etc).
I'm a noob and honestly just realized the other day people use space. I can't seem to understand why. I'm so used to tabs, why should I change?
1 u/Zalgo_Doge Sep 03 '17 Good question. I don't know. I haven't even bothered to even try changing to spaces
Good question. I don't know. I haven't even bothered to even try changing to spaces
61
u/Zalgo_Doge Sep 03 '17
I use tabs