https://github.com/IRS-Public/direct-file/blob/9dd76a786ea69...
https://github.com/IRS-Public/direct-file/blob/9dd76a786ea69...
The giveaway is the Mono<T> return type.
I see the most of it stems from reactive-style programming (reactor.core.publisher.Mono).
Maybe they just tried to fit into one screen? Anyway I'd ask to simplify it, if I was a their team lead.
But no, I don't think this would faze most Java devs. It's ugly and bad practice, but more or less acceptable depending on personal taste. It works, at least.
Point of interest: LLMs tend to go too far in the opposite direction with code like this. They will break everything apart into functions or classes, even trivial one-line lambdas. I find that even more obnoxious than the monstrosity you linked.
My experience with pretty much any Java framework ... It's sad because I do think (especially since Java 8) that Java is a great language for many things. But the community as this insane tendency to create incredibly convoluted pattern-on-top-of-pattern tooling.
The C# query syntax
from x in xs
from y in GetYs(x)
from z in GetZs(y) ...
is equivalent to xs.SelectMany(x => GetYs(x).SelectMany(y => GetZs(y).SelectMany(z => ...)))
which is similar to monadic do-notation in Haskell.So since there is monadic Scala code elsewhere in the project, I wonder if this is a result of someone thinking in Scala and translating it into Java in their head.
Or if you’re in the business of selling extremely wide aspect ratio monitors.
After staring at code for 12 hours a day for a few decades my zoom is 125% by default.
I dislike Java but if it can get me back to the On Error Resume Next days I might reconsider.
Just another shitty Java middleware that never amounted to anything, 200000 lines of code that don't express even a handful of ideas.