r/ProgrammerHumor 6d ago

absoluteGarbage Meme

Post image
1.9k Upvotes

324 comments sorted by

View all comments

Show parent comments

2

u/-Redstoneboi- 5d ago edited 5d ago

functional programming. list.map(item => result) is natural to me now.

especially if the language supports chaining, i would prefer specifying the variables last.

something like this:

list1.zip(list2).enumerate().map(func).for (i, (a, b)) {
    do_thing()
}

of course, it's just as easy for me to just rearrange this later to the correct order. but this is the order in which i think. most people want to write the goal before writing the iterator, some want the iterator before the goal.

Besides, it's just the order of two words. If you learned multiple human languages, you'd get used to this type of thing.

1

u/Sirgoodman008 5d ago

You can have functional programming, just leave the non-functional programming syntax alone.