Java 25 (the new Long Term Support version) was released on September 18th 2025, and with it, some new cool features have been released.
Which features are available to help improve my code? In this blog, I will give you a brief introduction to the released features which you can use directly as a developer (previews, experimentals and incubators are not included).
Continue reading →
Sometimes you want to transform a string value into a URL encoded value, so it can be used as part of a valid URL. For example a string with spaces or special characters can not be used in a URL as is, but needs to be URL encoded. Nushell has the url encode
command to achieve this. You can simple run this command on a string value and the result is a URL encoded value. With the option --all
or -a
even more special characters like a dot (.
) are encoded. The input of the command can be a string value or a list of string values. But it is also possible to use a record or table structure, but then you need to add as extra argument the name or names of the keys or columns of which the string values should be encoded.
Oppossed to URL encoding a value you can also decode a URL encoded value using the url decode
command. This command doesn’t have a special option to run. Just like with the url encode
command the url decode
command works on strings, list of strings, records and tables. If the input is a record or table the name of key or column of which the values must be decoded must be passed as extra arguments.
Continue reading →
Groovy supports operator overloading since the start. Operator overloading is implemented by an actual method signature that maps to an operator. For example an object with a plus
method can be used with the +
operator. There is a list of methods and operators available on the Groovy website.
As long as an object has a method with a name that Groovy understands the corresponding operator can be used in Groovy code. This is even true for Java objects. Since Groovy 5 you can use the groovy.transform.OperatorRename
annotation on classes, methods or constructors to map other method names to the Groovy operator overloading method names. This is very useful for third-party classes that you cannot change, but still want to use simple operators in Groovy code. You can reassign a method name to the following methods so an operator can be used: plus
, minus
, multiply
, div
, remainder
, power
, leftShift
, rightShift
, rightShiftUnassigned
, and
, or
, xor
, compareTo
. Suppose you use a class with an add
method and want to use the +
operator for this method. The following annotation can be used @OperatorRename(plus = 'add')
for a method and inside the method you can use the +
operator instead of the add
method of the class.
Continue reading →
You’re coding late at night. The lights are low.
Your favorite playlist is playing, maybe something only you would call “focus music.”
Your IDE is set to a theme that feels just right.
You’re not rushing.
You’re not distracted. You’re in the zone.
Continue reading →
Kotlin is null-safe, a quote I hear often from Kotlin developers.
And yet, I still managed to get a NullPointerException while converting a java.util.Optional
to a nullable Kotlin value…
Continue reading →
Early on in their career, most software developers develop a muscle memory for writing efficient code and avoiding code duplication.
It’s unfortunate that in modular architectures, this practice can seep through into data modelling without context awareness, leading to tight coupling and constraining the software’s ability to be changed.
Continue reading →
AsciiDoc and UML are two well known technologies for software design.
A very nice way of creating beautiful PDF documents is to combine both by embedding PlantUML in your AsciiDoc.
Generating the PDF can be a bit cumbersome, but with the following Maven setup it is quick and easy.
Continue reading →