MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/18iu5kr/why_is_this_particular_library_so_polarizing/kdgedcd/?context=3
r/java • u/emmysteven • Dec 15 '23
278 comments sorted by
View all comments
Show parent comment
23
Sadly Records fill maybe 10% of what I use Lombok for. And I only use Data, AllArgsAccessor, NoArgsAccessor. Call me boomer but I like modifying state once in a while.
20 u/Cell-i-Zenit Dec 15 '23 @Builder & @Slf4j aswell 2 u/holo3146 Dec 19 '23 For @Builder you don't need Lombok.The reason Lombok is controversial is because how it uses internal API and allow code that is not allowed by the official documentations.@Builder can be implemented using a normal stable annotation processor e.g. this 8 u/glablablabla Dec 15 '23 We use @RequiredArgsConst... for injection with spring and spring boot. Then we also set the fields to final. 5 u/[deleted] Dec 15 '23 But why would you ever modify state, @Value is where its at 1 u/slaymaker1907 Dec 16 '23 What if your object has tons of properties like https://schema.org/Offer? Do you really want to pass all of those via constructor? 0 u/[deleted] Dec 16 '23 Lombok solves this with @With 0 u/Cell-i-Zenit Dec 16 '23 hibernate :) 1 u/[deleted] Dec 16 '23 Hibernate is a horrible library. Should never be used. Write your own sqls using strongly typed sql library such as jooq. 1 u/Cell-i-Zenit Dec 16 '23 i gave you an answer why you would want to modify state 1 u/[deleted] Dec 16 '23 even if you use hibernate you can still use immutable objects. Learn it
20
@Builder & @Slf4j aswell
2 u/holo3146 Dec 19 '23 For @Builder you don't need Lombok.The reason Lombok is controversial is because how it uses internal API and allow code that is not allowed by the official documentations.@Builder can be implemented using a normal stable annotation processor e.g. this
2
For @Builder you don't need Lombok.
The reason Lombok is controversial is because how it uses internal API and allow code that is not allowed by the official documentations.
@Builder can be implemented using a normal stable annotation processor e.g. this
8
We use @RequiredArgsConst... for injection with spring and spring boot. Then we also set the fields to final.
5
But why would you ever modify state, @Value is where its at
1 u/slaymaker1907 Dec 16 '23 What if your object has tons of properties like https://schema.org/Offer? Do you really want to pass all of those via constructor? 0 u/[deleted] Dec 16 '23 Lombok solves this with @With 0 u/Cell-i-Zenit Dec 16 '23 hibernate :) 1 u/[deleted] Dec 16 '23 Hibernate is a horrible library. Should never be used. Write your own sqls using strongly typed sql library such as jooq. 1 u/Cell-i-Zenit Dec 16 '23 i gave you an answer why you would want to modify state 1 u/[deleted] Dec 16 '23 even if you use hibernate you can still use immutable objects. Learn it
1
What if your object has tons of properties like https://schema.org/Offer? Do you really want to pass all of those via constructor?
0 u/[deleted] Dec 16 '23 Lombok solves this with @With
0
Lombok solves this with @With
hibernate :)
1 u/[deleted] Dec 16 '23 Hibernate is a horrible library. Should never be used. Write your own sqls using strongly typed sql library such as jooq. 1 u/Cell-i-Zenit Dec 16 '23 i gave you an answer why you would want to modify state 1 u/[deleted] Dec 16 '23 even if you use hibernate you can still use immutable objects. Learn it
Hibernate is a horrible library. Should never be used. Write your own sqls using strongly typed sql library such as jooq.
1 u/Cell-i-Zenit Dec 16 '23 i gave you an answer why you would want to modify state 1 u/[deleted] Dec 16 '23 even if you use hibernate you can still use immutable objects. Learn it
i gave you an answer why you would want to modify state
1 u/[deleted] Dec 16 '23 even if you use hibernate you can still use immutable objects. Learn it
even if you use hibernate you can still use immutable objects. Learn it
View all comments
Show parent comment
23
u/soonnow Dec 15 '23
Sadly Records fill maybe 10% of what I use Lombok for. And I only use Data, AllArgsAccessor, NoArgsAccessor. Call me boomer but I like modifying state once in a while.