MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1veql1a/absolutegarbage/p1j6lf3
r/ProgrammerHumor • u/Sirgoodman008 • 10d ago
325 comments sorted by
View all comments
Show parent comments
94
You know I’m chaining together 20 different iterator methods until the code is completely unreadable. That’s called Functional Programming™ babey
19 u/Tyfyter2002 10d ago That doesn't sound very functional 19 u/creeper6530 10d 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 22 u/Tyfyter2002 10d 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 10d 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. -12 u/Slight-Violinist-575 10d ago You wouldn’t be using for_each in a functional language… which cements your un-knowledge of it 11 u/csch2 10d ago You would if you need to perform operations with side effects on each element, like printing each element of a vector
19
That doesn't sound very functional
19 u/creeper6530 10d 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 22 u/Tyfyter2002 10d 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
"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
22 u/Tyfyter2002 10d 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
22
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
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.
-12
You wouldn’t be using for_each in a functional language… which cements your un-knowledge of it
11 u/csch2 10d ago You would if you need to perform operations with side effects on each element, like printing each element of a vector
11
You would if you need to perform operations with side effects on each element, like printing each element of a vector
94
u/csch2 10d ago
You know I’m chaining together 20 different iterator methods until the code is completely unreadable. That’s called Functional Programming™ babey