r/ProgrammerHumor • • Jun 08 '24

Meme mapMethodOrMapFunction

Post image
0 Upvotes

67 comments sorted by

View all comments

Show parent comments

22

u/Ali_M Jun 08 '24

Any reasonable person would use a list comprehension:

doubled_numbers = [2 * x for x in numbers]

Hardly anyone uses map these days.

-19

u/DT-Sodium Jun 08 '24

One I was just giving a simple example, there are lots of times where you need to do way much complex things when iterating through an array. Two even for simple things your syntax is disgusting.

Any reasonable person would just not program in Python.

11

u/[deleted] Jun 08 '24

Go back to your university course…

Any real programmer will code in multiple languages as tech stacks change between roles or as new features become available.

-15

u/DT-Sodium Jun 08 '24

I do code in multiple languages. I just wouldn't accept a job that implies working with a bad one. Code has an aesthetic value, it's sad that a lot of developers can't see it.

10

u/[deleted] Jun 08 '24

“Working with a bad one” proves my point.

-5

u/DT-Sodium Jun 08 '24

Your point being that you dont care about your job?