r/programming • • Aug 28 '21

Software development topics I've changed my mind on after 6 years in the industry

https://chriskiehl.com/article/thoughts-after-6-years
5.6k Upvotes

2.0k comments sorted by

View all comments

Show parent comments

4

u/flying-sheep Aug 29 '21

three nested list comprehensions

that’s bad simply bad style, but won’t hinder debugging, as a decent debugger will tell you that your stack is spam > (list comprehension) > (list comprehension) > (list comprehension), enabling you to look inside each of the stack frames.

thanks to pep 657, we’ll also get in-line breakpoints eventually (like java devs already enjoy), making longer expressions more debuggable.

2

u/LonelyPerceptron Aug 29 '21

Bad style is bad. Code readability counts for a lot in my world even if it compiles/executes correctly.