by globalnode · 1y ago · 0 comments
The more one-liners there are in the code base, the more impenetrable and harder to debug the code is. Unrolling nested functions and switching comprehensions to lists and if statements often make it cleaner and easier to write unit tests for.
If you rely upon code coverage for unit tests, a complex list comprehension won't help you see if you have hit the branch cases.
Static types + IDE features make it much easier to understand any codebase.