News for hackers. Stuff that matters.
Re:Teeing, a hidden gem in the Java API by agilob on Monday May 10, 2021 @09:15AM (#27105631)
Fluent interfaces spread complexity of reading complex operations into multiple lines, you're squeezing everything into one line where tracking few characters change will be difficult to review, difficult to compare changes, bisect bugs (change in a complex line vs addition of a new simple line).

Adding new line is simple change with no increased reading complexity. Modifying already complex line to add new operation will only increase complexity, change log of this line, making it all harder. That's all I'm saying, I'd rather read 11 simple lines, than 4 complex lines.

Re:Teeing, a hidden gem in the Java API by watwut on Monday May 10, 2021 @01:02PM (#27108205)
I can add one new line into procedural code that does exact same thing.

It wont increase reading complexity either. It wont even force me to think about what hidden map parameters. It will all be visible directly.