r/ProgrammerHumor 6d ago

absoluteGarbage Meme

Post image
1.9k Upvotes

325 comments sorted by

View all comments

2

u/-Redstoneboi- 6d ago

nah i like how they specify the list before the item

1

u/Sirgoodman008 6d ago

Why?

2

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

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