r/Python • • Apr 29 '20

Discussion Tab vs Spaces

Post image
702 Upvotes

72 comments sorted by

View all comments

51

u/zacharypamela Apr 29 '20

Those spaces must've gotten turned around on their way to the Pep 8 club. 😃

-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)

1

u/OldSchoolBBSer Apr 30 '20

Not for me. I've done both for a while, and really they both suck at some point. It depends so much on: 1) the type of programming and language, 2) the tools to be used, and 3) the team (if there ever will be one working on that code). Neither is better than the other and "most cases" has little meaning when you start to dig into it. I settled back on tabs for everything I do. I'm ok with spaces if it fits and number has been agreed on, but only when I'm in an IDE/ST3, otherwise annoys the piss outa me if I have to use a stock/simple editor.