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.
You think your code is so clean that it doesn’t need comments? Then this rant is just for you!
An argument for using multiple return statements in a method (as opposed to adhering to the single return myth).
Keeping references around to remove listeners is a hazard. ListenerHandles encapsulate the complexity and LibFX has an implementation.
A presentation of the Serialization Proxy Pattern as defined in Effective Java. It defines the pattern, describes its implementation and gives examples.
Write intention revealing code with Java 8’s new type Optional and prevent most NPEs. This is not optional!
Use Java 8’s default methods to make the decorator pattern even more beautiful, which results in more concise and readable code.
A real-life example how the decorator pattern enables future changes and improves code quality by upholding the Single Responsibility Principle.