30 Jul 2025
DZone Java Zone
Immutable Objects Using Record in Java
It is often useful to have objects that, once created, don't change their content. To see a complete description on how to build such class, you can read my previous article "Immutable Objects in Java".
Let's imagine we want to build a PersonClass
with two fields: firstName
and lastName
. To create immutable instances, this class must:
30 Jul 2025 8:00pm GMT
25 Jul 2025
DZone Java Zone
Smart-Doc: Generating gRPC API Documentation in Java Projects
Foreword
In modern Java microservices, gRPC simplifies inter-service communication with its efficient binary protocol and multi-language support. However, maintaining gRPC API documentation can be challenging as projects grow. Among various AI tools, smart-doc stands out as the optimal solution for generating gRPC API documentation in Java projects.
Advantages of Smart-Doc in Java Projects
1. Fast Speed
Smart-doc is designed to quickly scan code and generate documentation without additional runtime dependencies. It directly extracts .proto
files, compiles them into Java code using protoc
, and then generates documentation by parsing the Java code and comments. This process is much faster than AI tools.
25 Jul 2025 1:00pm GMT
23 Jul 2025
DZone Java Zone
Undocumented Java 16 Feature: The End-of-File Comment
While working on some code where I wanted to obscure parts of it using Unicode escapes instead of the actual source, I accidentally stumbled upon an undocumented feature that's been around since Java 16: what I call the end-of-file comment.
In Java, we typically have three types of comments:
23 Jul 2025 6:00pm GMT
30 Jun 2025
Lua: news
Lua 5.5.0 (beta) released
Lua 5.5.0 (beta) released The beta version of Lua 5.5 has been released for testing.
30 Jun 2025 1:07pm GMT
04 Jun 2025
Lua: news
Lua 5.4.8 released
Lua 5.4.8 has been released. It fixes all known bugs in Lua 5.4.7.
04 Jun 2025 10:34am GMT
25 Jun 2024
Lua: news
Lua 5.4.7 released
Lua 5.4.7 has been released. It fixes all known bugs in Lua 5.4.6.
25 Jun 2024 1:01pm GMT