1
Pro tip: I used to hate Python indentation rules, now I get why they matter
I spent like 3 months fighting Python's strict indentation when I moved from JavaScript. Kept getting errors and thought it was dumb. But after debugging a messy JS callback chain for 2 hours last week where braces were all over the place, I realized Python's indentation actually forced me to write cleaner code. Has anyone else had a language feature click for them after hating it at first?
2 comments
Log in to join the discussion
Log In2 Comments
jake_chen1d ago
My buddy said the same thing after fixing someone's horrible C++ code.
3
ruby2901d ago
Back in 2018, I saw a startup lose three months because their lead dev kept writing everything in a single 5,000 line function. Nobody ever thinks about how messy code affects the next person's sleep schedule. What is it about our own code that makes us blind to its problems?
6