1,795 karma · joined Sep 13, 2012 (14y ago) · 645 submissions
comment 15h ago · link · parent
[1] https://kotlinlang.org/docs/multiplatform/compose-multiplatf...
comment 1mo ago · link · parent
Annotations like @RequiredArgsConstructor also encourage poor style, because there is no room for validation inside the constructor. At most, @NonNull adds null checks, and that is all. Lombok still offers many annotations that promote bad practice or have been superseded by the language itself, e.g. @Setter (mutability without protecting invariants), @Value (records) or @Cleanup (try-with-resources).
@Slf4j can easily be replaced by a single line of code (with the Log4j 2 API, even without specifying the class name).
Lombok's builders are actually useful, since Java has no named parameters with default values (as Kotlin does).
Regarding the "Dark Magic" section: just because other frameworks like Hibernate apply their own flavour of dark magic doesn't make it any better. Such magic should be kept out of the functional core of application code. The more magic is applied, the more problems can occur (e.g., the correct order in which tools apply their magic). This is essentially accidental complexity introduced to improve developer experience, but in the age of AI this may be the wrong optimization.
If you write modern Java, Lombok really doesn't add much.
comment 1mo ago · link · parent
comment 1mo ago · link · parent
Does anyone remember all these web portals from 2000? What people mostly wanted was a search engine but they added everything else and lost focus.
comment 3mo ago · link · parent
comment 3mo ago · link · parent
comment 3mo ago · link · parent
comment 4mo ago · link · parent
comment 4mo ago · link · parent
comment 5mo ago · link · parent
comment 6mo ago · link · parent
comment 6mo ago · link · parent
comment 7mo ago · link · parent
https://docs.oracle.com/en/java/javase/21/core/virtual-threa...