News for hackers. Stuff that matters.
Re:Teeing, a hidden gem in the Java API by chii on Monday May 10, 2021 @09:55AM (#27106003)
> you run into a problem it becomes a nightmare to debug.

this happens sometimes due to both java being a PITA to do functional programming with, and also partly due to the initial programmer of the streaming logic not breaking down into composable functions.

And with most people being more familiar with imperative style, it makes the functional style harder to maintain _for them_.

Re:Teeing, a hidden gem in the Java API by skohan on Monday May 10, 2021 @10:05AM (#27106085)
I'm not just talking about Java - I've also seen this in mobile projects in Swift for example.

> And with most people being more familiar with imperative style, it makes the functional style harder to maintain for them.

It has nothing to do with functional style. It's perfectly feasible to write functional code with minimal abstraction which is easy to trace and understand. The problem is in handing over your flow of control to an overly complex black box of an abstraction layer.