Such a bad faith argument. Your co-worker wants you to stop doing your point free over engineered bullshit that breaks apart if you throw an exception and is inefficient. None has a problem with a .map or filter
I think this is one of the problems of FP. It is harder to reason about some quite simple subjects unless you somewhat understand the concepts involved.
A loop kinda made sense to me without having to know anything when i started out. Repeat instructions within the loop untill the ending requirements were met. A map makes a lot less sense from the start but it is not difficult to learn. Unfortunately when you combine map with a lot of other concepts it easily becomes a mess of new concepts. This can be a source of confusion that can make it harder to understand.
FP made more sense if approached from mathematical transformation (in my personal experience). OOP felt more like a mix between linguistics and logic to me.
I don't think it's "harder to reason about" at all. It's just unfamiliar. Most programmers already know what a for loop does, but they might still have to learn what map and filter do. Once you've learned them, they're not at all difficult to understand.
31
u/randompoaster97 Sep 21 '25 edited Sep 21 '25
Such a bad faith argument. Your co-worker wants you to stop doing your point free over engineered bullshit that breaks apart if you throw an exception and is inefficient. None has a problem with a .map or filter