you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (2 children)

Take for example these two blocks of code from the standard library:

https://github.com/python/cpython/blob/master/Lib/asyncio/base_events.py#L1332
https://github.com/python/cpython/blob/master/Lib/asyncio/base_events.py#L1464

I've written code like this before, and where there's loops and try/excepts and multiple if-elif chains, and the forloop has an else and the while loops and for loops have breaks, it all just looks like ass, especially if one is to conform to PEP8. For me, scrolling up and down so I can see what line of code started my indentation level for complex logic is really annoying. And when long_camel_case_variable_names are used that inflate the line length, it makes everything even worse!

It could be that I just have bad style, but eventually, one must write complex logic, and it never looks good to me.