r/java • u/Rough_Acanthaceae_29 • Sep 29 '24
Lombok in 2024
Say there are two teams working on the same project (3 months to MVP, the deadline should be manageable). The only difference is Team A will use Lombok, and Team B won’t
Given you can choose any java version/dependencies and all other things being the same, which team would you join, and why?
79
u/_predator_ Sep 29 '24
I would join team A and spend all three months making passive-aggressive comments about Lombok. I just love complaining and Lombok is such an easy target.
26
u/agentoutlier Sep 29 '24
This guy reddits
15
u/_predator_ Sep 29 '24
OP woke up today and chose violence by asking people about their opinion on Lombok, only to fight them in the comments about it. I wasn't aware Lombok has a `@Balls` annotation now.
5
6
-9
u/Rough_Acanthaceae_29 Sep 29 '24
Other team would complain too, but they are too busy generating, adjusting and reading boilerplate core :)
40
u/Ewig_luftenglanz Sep 29 '24
Nowadays I only use Lombok for @Entity classes. So for me it's irrelevant, the overhead of writing a couple of getters and setters (that the IDE writes for me anyways) makes it trivial.
I would actually prefer the non-lombok team since I think one should use as little third party dependencies, libraries and plugins as possible and only use the minimum needed, this way you avoid problems in the futuro with updates and maintenance.
4
u/Rough_Acanthaceae_29 Sep 29 '24
I agree it’s fast enough to write/generate bunch of getters/setters, but what about code readability? Don’t you find it more readable/cleaner when lombok is used?
10
u/mauhumor Sep 29 '24
Have been on medium sized projects with and without Lombok, I rather prefer with it.
Code reading is exactly the reason.
Less cluttering for your brain to parse, it's really useful.
But I would only use the getter and setter on entities or the equivalent if not JPA, also DTOs, constructors are also very useful on those. The @Slf4 I would use everywhere.
But as someone else said, using or not might not be the ideal deciding factor to select a team.
1
u/Ewig_luftenglanz Sep 29 '24 edited Sep 29 '24
These are @Entities. They are not supposed to get anything more than fields and dumb getters and setters.
1
u/Rough_Acanthaceae_29 Sep 29 '24
Isn’t that the recipe for anemic domain model?
0
u/Ewig_luftenglanz Sep 29 '24 edited Sep 29 '24
It depends, if you use these entities as DTOs then yes because classes are mutable.
If you use records, that happens to be immutable) then you are sticking to Data Oriented Programming, that's actually what the language developers has been pushing in the last 5 years or so (and that started to take shape after Java 17 when records entered GA). If all or most of your objects are immutable then there is less need for encapsulation (you would still be able to create methods if you want to keep the logic of managing the data inside the record itself, but that would kinda break the point of records as simple named tuples.
1
u/Rough_Acanthaceae_29 Sep 29 '24
Not sure we’re on the same page here… Just to clarify, you should never return entities directly from a controller, but I won’t dive into that discussion right now. What I was referring to is the anemic domain model problem, where instead of:
1. Having a method like user.changeEmail(email) that handles validations and internal logic (making the domain object rich with behavior), 2. You end up with a service that just calls user.setEmail(email) and user.setUpdatedAt(now), meaning all the knowledge is outside the domain class and sitting in the service.You mentioned entities should only have getters and setters, but that leads to an anemic model because the core business logic and rules are outside the domain object, not encapsulated within it.
4
u/Ewig_luftenglanz Sep 30 '24 edited Sep 30 '24
We are in the same page. What I am saying is that not encapsultate the code in the domain object and instead do it in utility classes (separate Data and logic) to validate and transform the data with intermediate immutable objects (records) that acts as DTO is a deliberate design choice called "Data oriented programming" it's similar to anemic domain model BUT in DOP it's a deliberate choice, not an anti pattern.
https://www.baeldung.com/java-dop-oop-principles-differences
You are right, you should never expose @Entity classes to the controller directly, it's better to use intermediate DTOs (and that's what records are for, they are simple to create so it doesn't bother anyone if you have to create many to model the data flow.
DOP is usually better suited for small programs that only makes some "basic" validation and transformation, for example Crud Micro-Services. Because there is no need to do all the coding gymnastics you usually do in OOP to keep you code decoupled although all the inheritance (inversion, dependency injections, builders, etc) you also have less levels of abstraction and inheritance, so the code is "flatter", short and easy to write, read and understand.
15
u/hwaite Sep 29 '24
Accessors and mutators are convenient, but builders are where the real savings are at. Without lombok, you're stuck choosing between mutable objects, [massively overloaded] constructors with too many arguments or lengthy handwritten builders.
9
u/pron98 Sep 30 '24
You don't need Lombok to automatically generate builders. You can use a Java annotation processor to do that. (Despite superficial similarities, Lombok is not an annotation processor, nor is it Java)
1
u/zappini Oct 03 '24
Yeoman's work here. Thank you.
As often as you point this out, I'm thinking of the meme about "tapping the sign" (with the correct answer).
Maybe we petition the mods to amend the sidebar. Or create a bot.
1
u/OwnBreakfast1114 Sep 30 '24
Builders are where the real savings are at
Bad builders turn possible compile time issues into runtime issues. If you don't add mandatory parameters to the builder function if you add a new field to class, you won't get any warning about the myriad of places you're using this class. Why would you want to remove that easy warning that you're doing something wrong? How many places are you truly constructing objects? Is it really that bad to use the full constructor in all places? Just based on my personal anecdotes, my money is on no.
Am I crazy? Are people really saving a huge amount of time because they didn't have to write 30 parameters to a constructor? It takes like 20 seconds to write, ctrl/cmd + p has intellij list all the arguments for you, and you usually aren't doing this very often. Idk about other people, but I feel like the actual typing is the least time intensive part of software development in general. Why is typing the right part of optimizing over future code maintenance and evolution?
2
u/hwaite Oct 01 '24
Whether you're writing or maintaining, LOC is the enemy. Lombok builders can enforce most validations with less boilerplate. In the worst case, builders can leverage custom constructors. In the rare situation where you're doing something special, just don't use Lombok for that particular class.
2
u/OwnBreakfast1114 Oct 01 '24 edited Oct 15 '24
Poor abstractions are much worse for codebases than LOC, ex: sharing 1 object for domain/db/web layer vs different objects actually holding things that make sense (ex: dto in, domain object, db object, dto out for complex web services). There's a lot of very boring copying fields code in this model, but different objects perform a single function.
If you don't have so many partially constructible objects, there's very little difference LOC difference between a builder and a full constructor. If all fields are mandatory then there's not much of a problem, but I'm also the type of person that's fine with `Optional<T>` fields as a collection of 0 or 1 object (after all, you take in Lists don't you), so I tend to view all fields as mandatory.
With sealed classes, you should be able to make more of a class per usecase instead of a bunch of optional fields.
1
u/Ewig_luftenglanz Sep 29 '24
Yes but nowadays I only use Lombok for @Entity clases and almost everything else are DTOs or utility classes full of functions that only do data validation and transformation full of functions (that's actually what the Java dev team calls "Data oriented programming) so I have immutability without the need to create any handmade builder or fluent accessors- mutators.
The few times I have felt I would solve a problem better by using a builder I don't mind to write it myself (and it's mostly to make my APIs more functional friendly). I know Lombok exist to solve someone needs, I just say that nowadays most of the code is to create Micro-Services that validates and transform data, for this records work just fine without Lombok. There are still some sharp corners (copy-on-read records easily) but these will be eventually be fixed, specially when derived records creation enters GA
0
u/No-Debate-3403 Sep 30 '24
“IntelliJ, give me a builder for this class”, or more modern “Copilot, generate a builder please”
8
41
u/kevinb9n Sep 29 '24
For crying out loud, it's a tool, not a ritual blood sacrifice. It has pros and cons.
19
u/agentoutlier Sep 29 '24
I’m sorry we are going to have to ban you for that. Didn’t you read the sidebar?
/s
In all honesty I find it funny folks can embrace Spring Java config which clearly violates Java semantics yet has serious issue with Lombok.
One of them breaks syntax sort of but the other does technically even more magic.
Maybe they should call it springbok and have it happen at runtime.
-6
u/Rough_Acanthaceae_29 Sep 29 '24
Sure, you can say “it depends”, but which team would you personally pick (given all the other stuff is equal)?
16
u/Rough_Acanthaceae_29 Sep 29 '24
It’s definitely team A for me. It clears the noise. It’s like when you’re talking about a solution and say: “just add getters and setters bc of ….” - I do not need/want to scroll trough 3(lines)x10(fields)x2(one for getters and one for setters) LOC just to see if there’s actually some logic in the entity…
Also, I’ve never been bitten by it soo…
16
u/EirikurErnir Sep 29 '24
If I had to choose based on this information, I'd stay away from Lombok. It's 2024, just use records
But... Lombok would never make it to my list of top 100 things to check during team choice, this is a weirdly specific question premise
2
u/Rough_Acanthaceae_29 Sep 29 '24
Stumbled upon some discussion on whether or not what lombok is doing is “java legal” (it’s not) but i still wanted to probe people’s opinion. It’s clear for me to use records for dtos and whatnot, but using the JPA how do you handle Entity classes? Also if you have to do some manual mapping to a record(s) do you just create a new object using constructor with 5-10 args or?
1
u/EirikurErnir Sep 29 '24
Whether Lombok is "legal" is just a technical risk assessment question because it could get frozen out at some point I guess.
As for how I deal with Entity classes... it so happens I don't use JPA either myself, at work I use jOOQ (without JPA). Loading object graphs with it is easy enough, especially in its modern versions.
Again (but perhaps more softly phrased this time), I think the question is assuming a quite specific, if popular, setup of technologies. There's a lot of ways to do things differently.
2
3
u/Mikusch Oct 07 '24
records aren't mutable which is required in a lot of cases
1
u/EirikurErnir Oct 07 '24
Hmm, what cases specifically?
My company uses immutable value classes for pretty much everything, and I can't say I miss mutability. It has come up in the hypothetical scenario where you need an object with a circular reference, but that hasn't happened to me yet
15
u/AntKinski Sep 29 '24
Definitely Team B, because I don't want to sit all night before release and finding a solution, why lombok doesn't work right with Jackson or spring data.
16
u/Rough_Acanthaceae_29 Sep 29 '24
Never (5y) had any issues with lombok&jackson. Wanna share what was the issue you encountered ? I’m genuinely interested so thanks for sharing:)
8
u/repeating_bears Sep 29 '24
I had one issue which was that I globally configured Lombok to not use a get prefix (so foo() instead of getFoo()), then Jackson started to include hashCode and toString as if they were properties (since now those method names were indistinguishable from properties).
It was an easy fix to configure the mapper to ignore them, but still a bit of a footgun. Having extra properties in your JSON is something that even your tests might miss.
Both libraries were doing the right thing, but using them both together made it easy to write code that did the wrong thing.
1
u/NovaX Sep 30 '24
If you haven't tried it, I've been using jsonschema2pojo for over a decade. I prefer writing the data format in its preferred schema and generating the code so I know its exact shape. tbh, though, for me AutoValue and similar filled the needs of Lombok so I never found a good reason to use it.
0
u/Swamplord42 Oct 03 '24
I had one issue which was that I globally configured Lombok to not use a get prefix (so foo() instead of getFoo()), then Jackson started to include hashCode and toString as if they were properties (since now those method names were indistinguishable from properties).
And how exactly is this the fault of lombok? Wouldn't you have the exact same issue if you wrote these getters by hand?
2
u/repeating_bears Oct 03 '24
See practically the only part of that comment you didn't quote
3
u/Swamplord42 Oct 03 '24
But I fail to see how lombok changed anything? What makes you think that you wouldn't have written the same getters manually?
The default behavior of lombok wouldn't have caused this, so you made a conscious decision to change getter generation, presumably for a good reason that would have applied without lombok.
-1
u/AntKinski Sep 30 '24
With annotations `@Value` and `@Builder`, or `@Value` and `@AllArgsConstructor` I have error from Jackson - "No default creator...".
Lombok version - 1.18.20, jackson - 2.11.4
3
u/Swamplord42 Oct 03 '24
The issue is with Jackson not Lombok. The proof is that if you de-lombok the code, you'll have the same error.
5
u/nitkonigdje Sep 30 '24 edited Sep 30 '24
It works just fine. The fault lies within you.
1
u/AntKinski Sep 30 '24
Yes, problem is between keyboard and chair always)
But sometimes it’s cheaper to change a Lombok than a programmer)
4
u/nitkonigdje Sep 30 '24 edited Sep 30 '24
Aha but your SData and Jackson usage is not affected by Lombok..
If you remove Lombok the problem is still there...
So I don't see an argument..2
u/Asapin_r Sep 30 '24
I encountered issues with Jackson even without Lombok. Here's the latest I found https://github.com/FasterXML/jackson-databind/issues/4441
10
u/Goatfryed Sep 29 '24
For me it's team A. I like Lombok, but I don't do any complex stuff with it. My most used Lombok Annotation is `@RequiredArgsConstructor` below every Spring `@Component`
It's not even about speed. The ide can update the required args constructor, that's half a second. But just the fact that I don't see a constructor that is just visual spam in my services is such a huge blessing.
Also I like `@SneakyThrows` in Tests. I avoid it in production code though.
I'd like to say that `@Value` / `@Data` is obsolete thanks to Records, but there are still to many tools that don't support Records properly yet and then it becomes a huge timesaver again.
I don't like thinks like `@Builder` though. Even though it's not to complex, it's still complex enough that they should have just made 0815 java code generation like e.g. mapstruct that you can inspect, verify, debug.
Also if you use `val` I'll put you down like the mad dog you are.
4
u/Rough_Acanthaceae_29 Sep 29 '24
I would add @Slf4J to the list. Withers could possibly solve the reason why people love Builders (naming the args).
2
u/pgris Sep 30 '24
It's not even about speed. The ide can update the required args constructor, that's half a second. But just the fact that I don't see a constructor that is just visual spam in my services is such a huge blessing.
If the IDE keept the generated code automatically in sync, and hide it by default, I'll think about letting lombok go.
0
u/ggeldenhuys Sep 29 '24
Java records, auto generated code from IDE shortcuts (can even be automated these days) and code folding makes Lombok pretty redundant these days. Java and IDEs are not anymore what they were when Lombok was first created.
And yes, fully agree with your 'val' comment. 😂
28
29
u/CaptainApollo86 Sep 29 '24
Jesus, some people really hate lombok. I've used it for years, it's fine. What kind of shit code are people writing where lombok actually causes problems 🤔
3
u/k-mcm Sep 30 '24
Historically, the maintainer hasn't been good about picking version numbers. A 0.0.n increment shouldn't require everything to be rewritten, but that was done.
1
u/wildjokers Sep 30 '24
I don't want to guess what the code will look like based on some magic annotations. I just want to see the code.
5
u/CaptainApollo86 Sep 30 '24
"magic annotations" - you probably don't like Spring so 😂
1
u/wildjokers Oct 01 '24
That is different, Spring annotations pull in behavior.
4
u/CaptainApollo86 Oct 01 '24
Honestly, this is a stupid thing to have a vendetta against. The generated getters/setters/etc, will look like getters and setters. There is nothing magical or mysterious about them. It's a generated pojo
1
u/wildjokers Oct 01 '24
"Vendetta" is a strong word. I don't have any kind of vendetta against lombok. I use it, I just use it very sparingly. And Lombok does much more than just produce getters/setters.
0
u/CaptainApollo86 Oct 01 '24
Really, I never knew it did more than just setters and getters
1
0
u/IntelHDGraphics Sep 29 '24
where lombok actually causes problems 🤔
https://www.reddit.com/r/java/comments/1fseitf/comment/lpk7crg/
10
u/PartOfTheBotnet Sep 30 '24
I ran into this exact same issue about name inference in Jackson without Lombok.
The long and short of it is to use:
@JsonAutoDetect(isGetterVisibility = NONE, getterVisibility = NONE)to prevent any ambiguity.6
6
u/nitkonigdje Sep 30 '24 edited Sep 30 '24
That isn't a problem caused by Lombok. Software worked as designed and respected user choices. User however wasn't aware of consequences of his choices.. He would have same problems without lombok.
1
u/External_Mushroom115 Oct 04 '24
What kind of shit code are people writing where lombok actually solves problems
6
17
u/darkit1979 Sep 29 '24
I don’t understand why use lombok or not is such a big deal. It reduces amount of code significantly. My favorite is NonNull, Slf4j, Value and Builder. I laugh when people say - we don’t use Lombok because it’s an additional dependency and at the same time they have spring boot with hundreds dependencies and their docker image is about 1Gb.
8
2
u/nlisker Sep 30 '24
And the Lombok dependency is compile-time only, so it doesn't introduce vulnerabilities. No one who gets the binaries can tell if you used Lombok or not, just like they can't tell what build system you used.
4
u/pauloliver8620 Sep 29 '24
I am with lombok while heavily trying to produce a working solution when the models are subject to frequent change. Then I will delombok everything when stuff hits the legacy state…
1
u/HistoricalBlacksmith Sep 29 '24
Really? What a stupid question
-2
u/Rough_Acanthaceae_29 Sep 29 '24
I just wanted to probe people’s opinion and sentiment around it… so you won’t share your team?
16
u/antihemispherist Sep 29 '24
Lombok itself won't have much bearing on my decision, but, assuming I don't know the members of the team, I'd join team B. Because it takes many years of experience to decide to not to use Lombok. There is a reason why Brian Goetz is not a fan of it.
7
u/darkit1979 Sep 29 '24
It’s so stupid to be a fanatic and don’t use something without logical reason. The same stupid thing is Lombok team doesn’t want to add ability to generate getter which returns optional.
3
u/nitkonigdje Sep 30 '24 edited Sep 30 '24
Lombok discussion are always stuck on getters and builders and such trivial code examples. Lombok for me would have a value if only used for @Cleanup. It changes how I structure code.
8
u/age_of_empires Sep 29 '24
I don't like Lombok at all
It's auto populating things that I can just as easily right click and generate getters and setters
2
u/KefkaFollower Sep 30 '24
This.
And those who feel getters and setters add too many lines to a class just picked the wrong language. Java is verbose, has always been.
3
u/age_of_empires Sep 30 '24
To me getters and setters aren't even verbosity. When do you ever read getter and setter methods
1
u/rdoradus Feb 17 '25
That's not the main reason the generated boilerplate is bad, though. It's not people being lazy. The problem is that it's too easy to overlook bugs in there. Nobody will notice, in a code review, that one of the fields is missing from `equals`.
1
u/KefkaFollower Feb 18 '25
Boilerplate, generated or not, is necesary part of working in java. Some may be generated by the IDE, some may be hidden inside libraries. But it's there.
That's the way it is, unless you wanted to remove all boilerplate by messing with the syntax. Add to that the requierement of the language be retrocompatible and you'll end in a mess of alternative syntax to do the same thing. All in the name of keeping up current trends.
A bloated language is why people run away from c++ to java to begin with. Let's not repeat the mistakes of the past.
P.S.: in my experience, if you have automated tests and keep high the level of the coverage, a undetected error in the boilerplate is very rare.
1
u/rdoradus Mar 09 '25 edited Mar 09 '25
It is tautological that you can't know how many undetected errors there are in your code.
Java doesn't have much risk of following in the footsteps of C++; the languages evolve by completely different means. C++ is literally designed by a committee, and has acquired many features that don't work well with each other. Java has a single language architect, Brian Goetz, who prioritizes harmony between the features and community feedback (via preview features).
1
u/Alarming_Quarter671 Sep 29 '24
Idk, on my team I tell them to only use @Getter @Setter, @RequiredAllArgs and @ToString to debug mappings and responses, can you really do more? xD
3
u/Rough_Acanthaceae_29 Sep 29 '24
@Slf4j @Builder
2
u/rcunn87 Sep 30 '24
I've moved away from using builder outside of tests and Ill use it in a static factory within the type itself. Using everywhere makes it to easy to add a new field and miss updating it somewhere.
0
u/wildjokers Sep 30 '24
@Slf4j
An intellij live template makes short work of typing the logger declaration.
0
u/nitkonigdje Sep 30 '24
@Cleanup @Data
1
u/wildjokers Sep 30 '24
@Cleanup
Are you familiar with try-with-resources?
-1
u/nitkonigdje Sep 30 '24
It requires indentation for an accidental complexity, and it works only on AutoClosable. It is quite a poor solution for a problem it tried to fix.
1
u/rdoradus Feb 17 '25
`@Cleanup` would be more useful if it were equivalent to try-with-resources. What Lombok actually generates doesn't handle errors during `close()` very well.
2
u/RupertMaddenAbbott Sep 30 '24
I work on a large project that has invested significantly in Lombok. There is no way I would move this off Lombok at this stage as the solutions out there would be painful for us to migrate to for various reasons.
On a new project, and all other things being equal, I would pick without Lombok.
I think records are a better solution for immutable data holders than
@Value. I have encountered difficulties with using them with Jackson and other frameworks but these difficulties are surmountable and time-limited as the ecosystem moves on.I haven't yet found a decent builder library that works with records but I can see no reason why one wouldn't be possible and I think investing in creating one is worth it over being able to write in Java, over Lombok.
Java doesn't have a good answer for mutable data objects (yet), but I appreciate the pressure to prefer immutability and it may be that records and a builder is good enough for most cases. JPA feels like a key pain point where there is no good alternative to
@Getterand@Setter. I don't consider generating these using the IDE as a good alternative because the key benefit is about expressing developer intent and this is missing from such a solution.I am torn on
RequiredArgsConstructor. It might not be too painful to lose this but again, I like the fact that it prevents developers from putting complex logic into those classes constructors which I often find makes integration tests harder.
1
u/Yeah-Its-Me-777 Oct 13 '24
The second sentence is exactly why I would never introduce Lombok into a project. I know enough about it that it uses JVM/JDK internals, and if at some point it won't be able to and breaks, I'll be stuck on that Java version, or I'd have to remove all the Lombok-Stuff...
2
6
u/k-mcm Sep 29 '24
Is Lombok still relevant? Records and IDE tools are good enough and don't have any impact on long term stability.
3
u/darkit1979 Sep 29 '24
It’s not just because of or records which is only one Value annotation. NonNull is my best friend.
0
u/IntelHDGraphics Sep 29 '24
NonNull is my best friend.
I recommend JSpecify if you want an alternative
https://old.reddit.com/r/java/comments/1eqgj2j/jspecify_100_and_nullability_in_java/
4
u/darkit1979 Sep 29 '24
JSpecify does nothing. It provides a list of annotations and some other tool has to make a check, correct me if I’m wrong. Also, you have a lib which is used in other places. Lombok NonNull will be just a part of your code and it doesn’t matter which tool is used to build the service. You will still have the non null check. With JSpecify all parts should have the same checker tool like checker framework.
3
u/KefkaFollower Sep 30 '24
The question is truly about lombok.
Why all the circus about the teams, the projects and the dependencies? You only open the door to responses of the kind: "you don't choose projects just about lombok".
I like projects where every one can develop with its favorite IDE/toolset/whatever. Later, before you submit your code to whatever code repo you use, you can run formatters, linters and other analysis tools to the code so it archives the desired quality.
I don't like lombok 'cos it changes the language syntax. Then it needs to be integrated with each tool it will work with the code. I had trouble in the past with lombok after tool/IDE updates.
I think someone from IntelliJ or very close to the IntelliJ team maintains IntelliJ's lombok plugin. Others plugins/integrations are not updated that quickly. And even then if a member of your team needs to work with and old version of IntelliJ, but your project switched to the last version of lombok still can be troubles.
3
u/repeating_bears Sep 29 '24
I would rather join the one that uses it, but I've worked on plenty of projects that don't and it doesn't bother me.
I'd be most interested to listen to the team who don't use it explaining their reasoning. If they had a crap reason for not using it, then that might put me off.
One time a colleague of mine said "I don't like Lombok because it stresses the GC", which I initially thought sounded completely nonsensical because it's compile-time only, but turned out after some probing that he meant Builder specifically. For starters that's premature optimisation, but even then, I don't see why to throw out the baby with the bathwater. Just prohibit that one annotation.
There are some compelling reasons to avoid it, but there are also dogmatic idiots out there too.
4
2
u/Sollder1_ Sep 29 '24
The one with Lombok, because it makes many things easier... the question is rather odd though.
1
u/AnEmortalKid Sep 29 '24
It’s at most a 10s keystroke to generate these things, if my team needs it as a crutch I’d rather be on the other team tbh fam
1
u/danielm777 Sep 29 '24
you might as well piss in the wind and pick based on that. it's just as good as a criteria
1
1
u/qdolan Sep 30 '24
The team not using Lombok. Using Lombok will be fine (albeit unnecessary) for a while but down the track every time your JDK gets ahead with the Lombok version used by your project shit breaks.
-1
u/RICHUNCLEPENNYBAGS Sep 29 '24 edited Sep 29 '24
To be honest I feel like records answer like 85% of the reason I’d use Lombok and it’s not worth the headache anymore. If you’re stuck on Java 8 yeah definitely I’d use Lombok.
0
u/nitkonigdje Sep 30 '24 edited Sep 30 '24
So there is 15% reason to use it?
2
u/RICHUNCLEPENNYBAGS Sep 30 '24
Yes, sure, but I don’t think it actually saves enough time to warrant the inclusion for that 15%. Was that hard to understand?
1
-1
u/halfanothersdozen Sep 30 '24
If you're still developing in a way that it matters in 2024 then you're doing it wrong
3
0
Sep 29 '24
[deleted]
4
u/ggeldenhuys Sep 29 '24 edited Sep 30 '24
Fully agree. Java has also evolved so much, that nowadays Lombok is less needed, than when it was originally designed. It's not a deal-breaker using it or not though.
130
u/[deleted] Sep 29 '24
lombok has nothing to do with productivity at this point. Its just a crutch. Join the team with the smarter people.