Java keeps getting called old, but the truth is it keeps shipping. If you are choosing a language to learn right now, there is a quiet power in picking the one that runs banks, brokers, search engines, and most of the boring but essential stuff that moves the world. Java…
Tag: coding-practices
The Future of the JVM
I keep wondering where the JVM goes next while I stare at yet another stack trace. The near future reads cleaner Short releases keep dropping and the JVM feels fresh again. Java 14 is on my machine and Java 15 sits on the runway. The previews are more than toys….
When are Partial Classes comming to java?
If you write Java and hang around friends who use C sharp, you have probably heard about partial classes and wondered why we do not have the same thing. The pitch is simple. split a class into multiple files, let the compiler stitch them together, and keep generated code away…
Goodbye Boilerplate: Text Blocks Finally
Today I am saying goodbye to a pile of backslashes and hello to Java text blocks. For years I treated Java strings like a minefield. Quotes everywhere. Backslashes on every other character. Newlines that read like ransom notes. Every time I pasted a bit of JSON or SQL into a…
Text Blocks in Java 15
Text Blocks in Java 15 feel like a breath of fresh air if you write code that touches JSON, HTML, or SQL on a daily basis. We have early access builds of Java 15 and the feature that keeps pulling me back is Text Blocks. The official tag is JEP…
Java 14 Records and Sealed Classes
Java 14 just landed on my desk and the two features that keep popping up in code reviews are Records and Sealed Classes. One is already in our hands as a preview and the other is peeking from early builds, and both point to a cleaner way to say what…
Java 11 HTTP Client Is Here
The Java 11 HTTP Client finally ships in the JDK and it changes how I write network code. Remember the years of HttpURLConnection gymnastics and third party clients glued on top of it. Apache HttpClient and OkHttp saved many of us, but the standard library felt stuck. JEP 321 landed…
How to Write Cleaner Java
Clean Java is not magic, it is a pile of small choices you make every day. With Java 11 now the long term release, teams are juggling upgrades while still living with code born in Java 8. Nothing wrong with that. The point is the same. Readability wins. Name things…
Functional Thinking in Java
I have been writing Java long enough to remember when anonymous classes felt new, and tonight I want to share how I think about functional code in Java without losing readability. Lambdas landed a while ago and streams are everywhere in code reviews. With Java 11 out this fall and…
AEM Environments with Docker
Local AEM that starts fast, feels clean, and does not cling to your laptop is a dream many of us share. I have been spinning Adobe Experience Manager on laptops for years and I keep coming back to the same wish list. I want a repeatable AEM environment, I want…