4 ms·
I've noticed this a lot in LLM generated Java. Since it doesn't know what can or can't be null it tends to wrap everything in Optional<T>. Super strong type sys
by vips7L 4mo ago
I've noticed this a lot in LLM generated Java. Since it doesn't know what can or can't be null it tends to wrap everything in Optional<T>. Super strong type systems are becoming even more important.
- hedora 4mo agoYou probably need to tell it to rip as many of those out as possible (and replace them with null annotations). I've noticed LLMs sometimes pick a documented anti-pattern (passing Optional around in Java is not recommended), then amplify it (like a human might).
- vips7L 4mo agoThat's because LLMs suck.