Everything about

#clean‑code

Image with slug inside-java-newscast-64
(Dirty?) Tricks in Java 22 - Inside Java Newscast #64#video#pattern‑matching #optional #clean‑code
Pattern matching Optional, expanding sealed type hierarchies, nesting switches, reverting instanceof, and more - so many (dirty) tricks to play around with in modern Java
Image with slug java-repackaging-exceptions-streams
Repackaging Exceptions In Streams#post#clean‑code #java‑8 #lambda #streams
How to repackage checked exceptions that get thrown in a Java stream pipeline so that they can be thrown without the compiler complaining about it.
Image with slug why-elvis-should-not-visit-java
Why Elvis Should Not Visit Java#post#clean‑code #optional #rant
The desire for the Elvis operator for easier null-handling echoes through the Java community. But due to Java's type system, it should never be introduced!
Image with slug thoughts-on-comments
Thoughts On Comments#post#clean‑code #clean‑comments #documentation
My rant to comment your fucking code sparked some interesting conversations. Here we discuss some of your and my thoughts on the topic of comments.
Image with slug comment-your-fucking-code
Comment Your Fucking Code!#post#clean‑code #clean‑comments #documentation #rant
You think your code is so clean that it doesn't need comments? Then this rant is just for you!
Image with slug java-multiple-return-statements
Multiple Return Statements#post#clean‑code #java‑basics
An argument for using multiple return statements in a method (as opposed to adhering to the single return myth).
Image with slug java-listenerhandles
Don't Remove Listeners - Use ListenerHandles#post#clean‑code #javafx #libfx
Keeping references around to remove listeners is a hazard. ListenerHandles encapsulate the complexity and LibFX has an implementation.
Image with slug java-serialization-proxy-pattern
The Serialization Proxy Pattern#post#clean‑code #patterns #serialization
A presentation of the Serialization Proxy Pattern as defined in Effective Java. It defines the pattern, describes its implementation and gives examples.
Image with slug intention-revealing-code-java-8-optional
Intention Revealing Code With Optional#post#clean‑code #java‑8 #optional
Write intention revealing code with Java 8's new type Optional and prevent most NPEs. This is not optional!
Image with slug decorator-pattern-default-methods
The Decorator Pattern With Default Methods#post#clean‑code #patterns #default‑methods #java‑8
Use Java 8's default methods to make the decorator pattern even more beautiful, which results in more concise and readable code.
Image with slug decorator-pattern-saved-my-day
How The Decorator Pattern Saved My Day#post#clean‑code #patterns
A real-life example how the decorator pattern enables future changes and improves code quality by upholding the Single Responsibility Principle.