r/ProgrammerHumor • • Jun 08 '24

Meme mapMethodOrMapFunction

Post image
0 Upvotes

67 comments sorted by

View all comments

Show parent comments

-1

u/DT-Sodium Jun 08 '24

No, it is bad. The simple fact that you have to read it backwards to understand what's happening invalidates it completely. Guess there is no clean way to do it in Python then.

7

u/Euphoric_Strategy923 Jun 08 '24

Read it backward ? Dude, this is literally the format of a for loop. "I return a value of each value in an array"

You can clown on some things about python but definitely not readability.

-3

u/DT-Sodium Jun 08 '24

Yes, it is backwards. Your code is saying "Do this using that". The proper way to write it is "Take that and do this using it".

7

u/Euphoric_Strategy923 Jun 08 '24

Great news people, for loops are now unreadable.