S
24

Chose tabs over spaces after a week of chaos, big mistake?

I switched my whole Python project from tabs to spaces because a tutorial said so, then spent 3 hours at 2 AM hunting an IndentationError that turned out to be a mix of both. My buddy swears tabs are the only way and now I'm doubting everything I learned in that $40 Udemy course. Anyone else flip sides and immediately regret it, or am I just cursed by bad habits?
2 comments

Log in to join the discussion

Log In
2 Comments
tara_jones94
Tabs are just spaces with commitment issues. You paid $40 to learn that mixing them is a crime against Python, so really you got your money's worth. The universe punishes indecision, and your 3 AM debugging session was the tax. Pick one, set your editor to convert the other, and never speak of this to your buddy again. Or just use a formatter and let the machine fight your religious wars for you. Either way, the real mistake was trusting a tutorial over your own sleep schedule.
5
the_thomas
the_thomas21d ago
Man, it's really just four characters in a text file, not a moral failing. I get it, @tara_jones94, the mix-up sucks, but calling it a "crime against Python" feels like a stretch when the real fix is a two-second find-and-replace. Sleep is more valuable than any formatting debate anyway.
4