Re:Ask HN: Why PEP8 favors using spaces over tabs for code i...
by tyger11 on Friday August 10, 2012 @12:48PM
(#4366991)
Using tabs over spaces is a catastrophic misunderstanding of modern text editors. Spaces are the ONLY one-size-fits-all solution for a multi-developer environment. Text editors can be configured to SHOW a tab character visually as any number of spaces you want - without changing the code. If someone likes 3 spaces, they can see a tab character as 3 spaces; if someone else likes 8 spaces, they can show each tab as 8 spaces. Treating a tab as a "tab stop" is the mindset of a typewriter user.
[ Parent
| on HN ]
Re:Ask HN: Why PEP8 favors using spaces over tabs for code i...
by codegeek on Friday August 10, 2012 @01:04PM
(#4367079)
Not sure if I followed what you said. What I mean is that isnt hitting the spacebar 4 times more difficult and annoying than hitting the tab key once ? Yes you can configure tab key for any number of spaces but still the point being about hitting spacebar multiple times.
Re:Ask HN: Why PEP8 favors using spaces over tabs for code i...
by kudakeru on Friday August 10, 2012 @02:43PM
(#4367566)
Modern editors generally don't require you to hit space four times. There's a "convert tabs to spaces" option so you can hit the tab key, and most of them do auto-indenting anyway.