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

8

u/hey--canyounot_ May 01 '22

It is so confusing to me what kind of coding job people work where you aren't using those frequently, outside of 'pure front-end' positions that are essentially designers. In web dev (and when I did QA) I feel like I use them somewhere in most solutions.

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.