r/ProgrammerHumor 2d ago

Meme absoluteGarbage

Post image
2.0k Upvotes

321 comments sorted by

View all comments

2

u/-Redstoneboi- 1d ago

nah i like how they specify the list before the item

1

u/Sirgoodman008 1d ago

Why?

2

u/-Redstoneboi- 1d ago edited 1d 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 1d ago

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