33
Took 2 years to see my indentation habit was killing me
I used to write all my Python with 2 spaces because it looked clean on my screen. Then I shared a script with a friend in Seattle and he couldn't run it without reformatting the whole thing. That's when I realized every tutorial and editor I used had 4 spaces, I just never paid attention. Switched to 4 spaces last month and now my code reads way easier in shared projects. Anyone else hardcode their own style and then regret it when you work with others?
0 comments
Log in to join the discussion
Log In0 Comments
No comments yet
Be the first to share your thoughts on this discussion.