📢
19
c/coding-for-beginners•abbyk10abbyk10•24d ago

TIL I was indenting my Python loops with tabs while my team used spaces - broke the whole build and got called out in standup.

My coworker pulled me aside after 3 months and showed me PEP 8, so now I always run flake8 before pushing - any of you guys have a similar coding style wake-up call?
2 comments

Log in to join the discussion

Log In
2 Comments
troy_ross
troy_ross24d ago
Funny enough I had almost the EXACT same thing happen but with JavaScript semicolons. I came from Python where you don't need them and spent two months writing JS without any semicolons. Boss finally showed me what happened when the minifier ran and my code turned into a garbage pile. Now I run prettier on save without even thinking about it.
8
roseb62
roseb6224d ago
Ha! That minifier moment is brutal... I bet your boss was trying not to laugh while showing you the wreckage. Prettier on save is basically a survival instinct at this point. I'll never forget watching a coworker's semicolon-less code turn into one giant mess of "return" statements that just broke everything...
6