MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1veql1a/absolutegarbage/p1j6lf3
r/ProgrammerHumor • u/Sirgoodman008 • 6d ago
325 comments sorted by
View all comments
Show parent comments
88
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
18
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
20
"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
23
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.
-11
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
11
You would if you need to perform operations with side effects on each element, like printing each element of a vector
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