News for hackers. Stuff that matters.
Re:Kernighan and Pike were right: Do one thing, and do it well by UltimateEdge on Saturday August 19, 2023 @03:47PM (#37192393)
Why did you include functional programming in that list? It seems like the odd one out to me.
Re:Kernighan and Pike were right: Do one thing, and do it well by zer8k on Saturday August 19, 2023 @10:51PM (#37195608)
It's over applied in almost every professional context. I've watched entire codebases go from reasonably tolerable OOP to FP and the subsequent fallout. Usually, it's because some unhinged programmer starts adding stuff they like to a language it doesn't fit with. Then, you bring new developers on and no one wants to wade through the several layers of map/flatten/reduce/etc. Worse, the bolted-on FP is not optimized well by the compiler leading to worse than usual benchmarks. It's almost always a lose-lose except when it's done with a functional-first language.

It has it's purpose. It's almost universally over-applied owing to the cargo cult and holier-than-thou attitude of a lot of functional programmers. I see it happen in Python where comprehensions are often replaced with maps. While it is nice, the comprehension is more idiomatic and far more widely understood.