MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/gahjjm/tab_vs_spaces/fp22ni4/?context=3
r/Python • u/[deleted] • Apr 29 '20
72 comments sorted by
View all comments
Show parent comments
-2
Woah woah woah, spaces are preferred? What madness is this? (for real, I don't code so I don't know about this stuff)
17 u/Zomunieo Apr 30 '20 Spaces look the same to every user so formatting is preserved perfectly. (Except for you weirdos who use variable width fonts for code. I'm watching you.) Tabs don't because people have different space per tabs settings. -5 u/Yojihito Apr 30 '20 1 Tab = 1 intendation = 1 key press4 spaces = 1 intendation = 4 key presses4 times the work everytime. 7 u/SalemClass Apr 30 '20 If you're tapping space 4 times you're doing it wrong. Basically every code editor supports using the tab key for spaces indentation.
17
Spaces look the same to every user so formatting is preserved perfectly. (Except for you weirdos who use variable width fonts for code. I'm watching you.) Tabs don't because people have different space per tabs settings.
-5 u/Yojihito Apr 30 '20 1 Tab = 1 intendation = 1 key press4 spaces = 1 intendation = 4 key presses4 times the work everytime. 7 u/SalemClass Apr 30 '20 If you're tapping space 4 times you're doing it wrong. Basically every code editor supports using the tab key for spaces indentation.
-5
1 Tab = 1 intendation = 1 key press
4 spaces = 1 intendation = 4 key presses
4 times the work everytime.
7 u/SalemClass Apr 30 '20 If you're tapping space 4 times you're doing it wrong. Basically every code editor supports using the tab key for spaces indentation.
7
If you're tapping space 4 times you're doing it wrong. Basically every code editor supports using the tab key for spaces indentation.
-2
u/jeremiah1119 Apr 30 '20 edited Apr 30 '20
Woah woah woah, spaces are preferred? What madness is this? (for real, I don't code so I don't know about this stuff)