Lombok
jstachio
Lombok | jstachio | |
---|---|---|
94 | 27 | |
12,605 | 213 | |
0.5% | 4.7% | |
8.9 | 9.3 | |
29 days ago | 7 days ago | |
Java | Java | |
GNU General Public License v3.0 or later | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Lombok
-
Consuming and Testing third party API's using Spring Webclient
The above class maps the json data to a java object we can work with. We use Lombok to generate constructors, getters and setters for our code and the Jackson Project to handle serialization and deserialization of json to pojo . We know the response is an array of objects representing the coffee and so above data structure is fit for this.
-
š» 7 Open-Source DevTools That Save Time You Didn't Know to Exist āš
Almost a decade ago, I started reducing my boilerplate (and saving time with Lombok. It made my life much easier, simple as that. Ever since I've been looking into finding the smoothest solutions for saving time rather than handling all of it myself.
-
How to prevent NullPointerExceptions in Java
Lombok is a widely used library that simplifies Java code. The @NonNull annotation helps enforce non-null parameters, generating appropriate null checks:
-
How to implement GZIP decompression for incoming HTTP requests on the Netty server
Project Lombok
-
Feedback on a new annotation processor api
I gotta agree with /u/rzwitserloot I don't see anything in the lombok repo that indicates they have their "own compiler". I see the "reaching into javac internals" but that's it.
-
Does any tooling exist for Java to add @NotNull to every parameter, return type, field, etc. by default?
i looked into that and found this: https://github.com/projectlombok/lombok/issues/2310
-
Would this OpenJDK proposal make Java easier to learn?
Funny enough; /u/rzwitserloot is the author of Lombok, one of the most widely used Java libraries in the world. So it's not really some kind of random-ass Redditor they're having a discussion with either.
-
Kotlin : A Java developer's perspective
This removes the need to add the 'Project Lombok' library (and going through a phase of installing it in your Eclipse IDE; old school devs know what I am talking about) and speeds up development time. Java 14 added a new feature of 'Records' which allows you to do the same, but it doesn't offer a 'copy' method to ease your object creation and also enforces the 'final' keyword for variables making them immutable.
-
X-Pipe - A connection manager and remote file explorer. Let me know what you think!
I get the main criticisms of Java, i.e. its verbosity and the requirement for a lot of boilerplate code, and understand why some people switched to Kotlin. But by using libraries such as lombok you can get rid of most of it and suddenly the incentives for switching aren't that big anymore. And in the end it's all JVM bytecode anyways.
-
How often do you do/use this in your job?
I usually use this... https://projectlombok.org/
jstachio
-
Full stack web development in a single Java file: An intro to Javalin and htmx
Anyway it was one of the reasons we (my company) went with Mustache and why I wrote JStachio.
-
HTML template languages?
I don't know Dart that well (only experimented with simple apps) and just kind of lurk on this sub but I am the author of a HTML templating language (Mustache) in Java that uses annotations and code generation: https://github.com/jstachio/jstachio
- Show HN: JStachio a type-safe Mustache engine that is incredible fast
-
Feedback on a new annotation processor api
Things like this https://github.com/jstachio/jstachio (author) would not be possibly with just an include like preprocessor.
- Interpolating Strings Like a King in Java 21
-
Hey guys, just wanted to let you know that JStachio v0.9.0 is now out and it even comes with Spring support! So go ahead and give it a try if you're into that kind of thing!
Hey guys, wanted to share my project JStachio with you all. It's a java templating engine that's like Mustache.java and Handlebars.java in syntax but also compile time type safe like JTE, Rocker, and Qute.
-
Introducing Bld: A New Pure Java Build System
On a related note I have been really liking the newer Java feature of being able to execute .java files directly. I have been using them frequently to execute what would normally be a Bash or Python script. I actually have a Java .java script that mimics some parts of the Maven release plugin and because Java speaks XML really well it was easier to implement it in Java than Bash or some other scripting language which makes me think /u/bowbahdoe point on including a JSON parser with the standard lib would be very useful.
-
Modern frontends using Spring Boot and Thymeleaf (yes, modern, you read it right, as in SPA)
I plan on releasing an unpoly (htmx like library) petclinic using my templating library https://github.com/jstachio/jstachio (superior to thymeleaf but Iām biased) and some avaje + Jooby. Hopefully next month.
-
What's the point of autogenerating DTOs from entities?
But going back to they can generate whatever they want they could even make an expression or template language that is type safe (and I know this is possible as an author of such a library).
-
JEP 430: String Templates (Preview) Proposed to Target Java 21
For those that do not like the syntax and still want compile time string interpolation check out my library: https://github.com/jstachio/jstachio
What are some alternatives?
JHipster - JHipster, much like Spring initializr, is a generator to create a boilerplate backend application, but also with an integrated front end implementation in React, Vue or Angular. In their own words, it "Is a development platform to quickly generate, develop, & deploy modern web applications & microservice architectures."
jte - Secure and speedy templates for Java and Kotlin.
Immutables - Annotation processor to create immutable objects and builders. Feels like Guava's immutable collections but for regular value objects. JSON, Jackson, Gson, JAX-RS integrations included
quarkus-qute
manifold - Manifold is a Java compiler plugin, its features include Metaprogramming, Properties, Extension Methods, Operator Overloading, Templates, a Preprocessor, and more.
savant-core - This is the main project for the Savant build tool
Auto - A collection of source code generators for Java.
jamal - Jamal is document maintenance automation
record-builder - Record builder generator for Java records
stringtemplate4 - StringTemplate 4
AspectJ
Mustache.java - Implementation of mustache.js for Java