News

In this, my 500th blog post, I look at how and why I changed from loathing the Java ternary operator to embracing it. Just five years ago, I absolutely despised the ternary operator and wondered ...
The code above shows traditional Java without ternary, traditional Java with ternary, and the Groovy Elvis operator. The Elvis operator makes the ternary operator even more concise.