6 ms·
I hope this gets added to the language, we use Lombok heavily where I work and find it pretty great with it's val class that allows type inference, although it
by scalesolved 11y ago
I hope this gets added to the language, we use Lombok heavily where I work and find it pretty great with it's val class that allows type inference, although it requires an explicit import and can't be used within Lambdas.
The website isn't the prettiest but Lombok is a fantastic addition to a Java codebase and massively reduces the amount of boiler plate often associated with Java. A list of Lombok features https://projectlombok.org/features/index.html https://projectlombok.org/features/index.html
Java 8 + Lombok + Guava == happy developers (well at least in my case :) ).
- seanjensengrey 11y agoIf you have an opinionated style guide, I would love to read it. Something like this [0] but for Java. [0] https://gist.github.com/seanjensengrey/a08910b0d204b037c2ba https://gist.github.com/seanjensengrey/a08910b0d204b037c2ba
- javaq 11y agoAre there any repos you can point to that make idiomatic use of J8 + Lombok + Guava as an example for people interested?
- biehl 11y agoMy experience is similar, however more like: Groovy === happy developers
- vorg 11y agoApache Groovy used to have the === operator in its earliest versions, but dropped it in favor of using a custom .is() method. The meaning of == is different to its use in Java, catching out many -- "happy" is not the word I'd use.
- mindcrime 11y agoSame here. Groovy rocks my world and is the main reason I've barely even looked at Java 8.
- incepted 11y agoIf Groovy rocks your world, wait until you meet Kotlin...
- skippytheroo 11y agoIf Kotlin rocks your world, wait until you meet the Scala.
- incepted 11y agoI met Scala a few years ago, we had some fun together but she's way too high maintenance.
- vorg 11y agoApache Groovy has some long-standing governance issues, e.g. the groovy-lang.org DNS is owned by a single individual. Other languages such as Kotlin and Scala have more, er, responsible governance.
- skippytheroo 11y agoLombok has always been a hacky set of language extentions. It says a lot about the need for more language features in Java that developers have been willing to resort to using it. Adding val and var to Java will be a big step forward.
- scalesolved 11y agoSure, no language is perfect but I've never ran into problems using Lombok in production. I'd gladly welcome the majority of its features being part of the core language though! :)