clean-codeshare & followShare this post with your community:I'm active on various platforms. Watch this space or follow me there to get notified when I publish new content:▼s+fShare this post with your community:I'm active on various platforms. Watch this space or follow me there to get notified when I publish new content:(Dirty?) Tricks in Java 22 - Inside Java Newscast #64#video#pattern‑matching #optional #clean‑codePattern matching Optional, expanding sealed type hierarchies, nesting switches, reverting instanceof, and more - so many (dirty) tricks to play around with in modern Java2024-02-29Repackaging Exceptions In Streams#post#clean‑code #java‑8 #lambda #streamsHow to repackage checked exceptions that get thrown in a Java stream pipeline so that they can be thrown without the compiler complaining about it.2017-02-13Why Elvis Should Not Visit Java#post#clean‑code #optional #rantThe 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!2017-01-31Thoughts On Comments#post#clean‑code #clean‑comments #documentationMy rant to comment your fucking code sparked some interesting conversations. Here we discuss some of your and my thoughts on the topic of comments.2015-07-31Comment Your Fucking Code!#post#clean‑code #clean‑comments #documentation #rantYou think your code is so clean that it doesn't need comments? Then this rant is just for you!2015-07-15Multiple Return Statements#post#clean‑code #java‑basicsAn argument for using multiple return statements in a method (as opposed to adhering to the single return myth).2014-12-03Don't Remove Listeners - Use ListenerHandles#post#clean‑code #javafx #libfxKeeping references around to remove listeners is a hazard. ListenerHandles encapsulate the complexity and LibFX has an implementation.2014-11-28The Serialization Proxy Pattern#post#clean‑code #patterns #serializationA presentation of the Serialization Proxy Pattern as defined in Effective Java. It defines the pattern, describes its implementation and gives examples.2014-10-29Intention Revealing Code With Optional#post#clean‑code #java‑8 #optionalWrite intention revealing code with Java 8's new type Optional and prevent most NPEs. This is not optional!2014-10-07The Decorator Pattern With Default Methods#post#clean‑code #patterns #default‑methods #java‑8Use Java 8's default methods to make the decorator pattern even more beautiful, which results in more concise and readable code.2014-09-30How The Decorator Pattern Saved My Day#post#clean ‑code #patternsA real-life example how the decorator pattern enables future changes and improves code quality by upholding the Single Responsibility Principle.2014-09-22