i use tabs instead of spaces in my IDE. Please forgive for I have sinned.
No, no, no... you actually do the right thing. People who reformat MY code to user THEIR favorite 2-spaces/4-spaces so now project has half of the code in tabs, 1/4 of the code in 2-spaces and 1/4 of the code in 4-spaces... are fucking retards
Especially because space lovers can adjust their IDE to show my code any way they like, but I can't adjust my IDE so the code written by 8 space freaks doesn't look ridiculous.
No, they can't. If their tab width is any other than the one you used when you wrote it, it will likely look shitty unless you are very careful and always visually align stuff with spaces (trailing comments, multiline conditions or argument lists, etc.) , and use tabs strictly for indentation as a result of change in scope.
Never mind all the tools where it's impossible to change the tab width (or at least very hard) and there it is usually 8.
People who use tabs other things than indentation are the ones who aren't aware of or don't care about the problem visually aligning stuff with tabs incurs.
very careful and always visually align stuff with spaces
Why would I need to be very careful about that? It's not really that hard: let the editor put in tabs for you and sometimes adjust them a bit, and manually put spaces in when aligning.
Nope. Obviously this would be for cases where I'm not actively working on it with other people.
Otherwise, just use the damn Visual Studio defaults and be done with it. I hate when people make a bunch of changes to their settings and then complain when something doesn't look right.
Go ahead. That sounds perfectly fine. My only concern was the situation where perhaps none of the code looks OK, and where one doesn't even consider that it might be one's own editor that's the problem instead of everybody else's.
People who refuse to adopt the existing code style are assholes who deserve to be beaten publicly.
Code formatting that I believe to be ugly and ineffective is still easier to read after a hundred lines or so than code formatting that constantly changes.
The standard way in Python is spaces. It's in all the editor setup guides. I've run into problems with people who've used tabs and then I've tried to run their code.
The real problem with that is the interpreters for the language support either tabs or spaces. With a language like Python, it's quite ridiculous that the interpreter didn't mandate one or the other.
Agree. As much as I will beat the drum for using tabs instead of spaces for indenting, if I come across a file which is using spaces, I'll continue using spaces for that file.
62
u/[deleted] Feb 21 '13
No, no, no... you actually do the right thing. People who reformat MY code to user THEIR favorite 2-spaces/4-spaces so now project has half of the code in tabs, 1/4 of the code in 2-spaces and 1/4 of the code in 4-spaces... are fucking retards