News for hackers. Stuff that matters.
Re:Google's Python style guide by toyg on Thursday April 19, 2012 @06:42AM (#3862287)
I used to prefer tabs (less bytes, better abstraction etc), but I've long given up on it. Most tools are not smart enough to switch mode when required, and reformatting entire files every time you want to make a small change on somebody else's code is a real pain (and dangerous).

Community consensus is 4-spaces and that's it.

Re:Google's Python style guide by raverbashing on Thursday April 19, 2012 @07:27AM (#3862409)
Yeah

I used to prefer tabs as well, and I still stand by it.

But you can always configure your editor to use 4 spaces. And 4 spaces looks like 'less wasted space'.

I'll keep using tabs for some things, and 4 spaces to most professional projects.

About 2 spaces I'll just say one thing: NO

Re:Google's Python style guide by sswezey on Thursday April 19, 2012 @11:01AM (#3863315)
Sublime text 2 can do it no problem, back and forth, and has visual indicators of tab levels regardless if it's spaces or tabs, 2 columns, 4 columns or 8 columns.