3 ms·
Tabs 100%. Especially in cases with significant whitespace like Python. Personally, I don't get nor like the "just press the space bar 12 times when you want t
by mygo 8y ago
Tabs 100%. Especially in cases with significant whitespace like Python.
Personally, I don't get nor like the "just press the space bar 12 times when you want to indent to 3 levels“ argument. I routinely look at different code in the same editor. Someone’s Python code, another open source library’s Javascript code, some abandoned Wordpress theme.
Don't break my horizontal cadence. If I’m used to single-level indentations being 4 characters wide it really throws me off when I’m looking at indentations a single character wide. I have to refactor the entire code just for the step-indentations to be “normal” for me. A tab-indentation on my editor is as wide as I’m comfortable with.
I don’t care what form someone uses. I’m probably selecting all and converting spaces to tabs when I’m working with it. And maybe I’ll program my editor to automatically convert tabs to spaces when I’m uploading to GIT to make everyone happy. That's where it's at.
- antidesitter 8y ago> Personally, I don't get nor like the "just press the space bar 12 times when you want to indent to 3 levels“ argument. This sounds like a strawman. Most people who use spaces configure their editor so pressing tab inserts spaces. You don’t have to press space 12 times to indent to 3 levels.
- mygo 8y agothis sounds like a non-sequitor. most people complaining about tabs can also configure their editor to make it work for them. Why must I have to? I like my tab bar to actually create real tabs because I actually have my editor show space & tab characters and tabs tell me the intent of the programmer (to indent) better than spaces do.
- antidesitter 8y agoWhat’s the non-sequitur? I was simply addressing your comment that you must “press the space bar 12 times when you want to indent to 3 levels“.
- tarboreus 8y agoIf you're hitting the spacebar more than once, you're using the wrong IDE.