r/badcode • • Apr 30 '22

python Looks like Python List Comprehension-phobia is a thing. This is a real commit by a teammate.

Post image
1.2k Upvotes

125 comments sorted by

View all comments

Show parent comment

4

u/Cerus_Freedom May 01 '22

I think that depends largely on whether you have well structured code. I, for one, do not. I'm currently staring at 50 lines of purely mapping and filtering database results, none of which actually lends to using map or filter because of poor design decisions.

1

u/hey--canyounot_ May 01 '22

My sympathies, dude.