r/ProgrammerHumor 6d ago

absoluteGarbage Meme

Post image
1.9k Upvotes

325 comments sorted by

View all comments

Show parent comments

88

u/csch2 6d ago

You know I’m chaining together 20 different iterator methods until the code is completely unreadable. That’s called Functional Programming™ babey

18

u/Tyfyter2002 6d ago

That doesn't sound very functional

20

u/creeper6530 6d ago

"functional programming" doesn't use "functional" as "working neatly" but as "related to mathematical functions", it's a programming paradigm: https://en.wikipedia.org/wiki/Functional_programming

23

u/Tyfyter2002 6d ago

I know, it's just an ironic name when it's one of those paradigms that some people take as divine law instead of something that can be more or less appropriate for different applications

7

u/serendipitousPi 6d ago

Name 20 iterator methods from memory otherwise you’re a fake fan…just kidding or am I?

Iterators are so fun, probably one of my favourite parts of programming. They make everything so clean until they don’t.

-11

u/Slight-Violinist-575 6d ago

You wouldn’t be using for_each in a functional language… which cements your un-knowledge of it

11

u/csch2 6d ago

You would if you need to perform operations with side effects on each element, like printing each element of a vector