Core Java
-
Testing with files and directories in JUnit with @Rule
Testing with Files and directories in JUnit is easy thanks to TemporaryFolder @Rule. In JUnit rules (@Rule) can be used…
Read More » -
Instances of Non-Capturing Lambdas
Roughly a month ago, I summarized Brian Goetz’ peek under the hood of lambda expressions in Java 8. Currently I’m…
Read More » -
Java8 Sorting – Performance Pitfall
Java 8 brings all the goodness of lambdas to enable us to program using a declarative style. But is it…
Read More » -
Unit Testing in AEM (thinking loud)
This is not a recommendation of any sorts but a culmination of ideas and a few options that are available…
Read More » -
My favourite Java puzzler 2 + 1 = 4
Here’s my current favourite Java puzzler. How can you get your code to do this? …
Read More » -
Fail-fast validations using Java 8 streams
I’ve lost count of the number of times I’ve seen code which fail-fast validates the state of something, using an…
Read More » -
Why Now is the Perfect Time to Upgrade to Java 8
Interested to see how you can get the most out of the new Java 8 features with AppDynamics? Start a…
Read More » -
Working with GZIP and compressed data
Abstract We all know what it means to zip a file with zip or gzip. But using zipped files in…
Read More » -
Make agents, not frameworks
Ever since their introduction, Java annotations have become an integral part of the APIs of larger application frameworks. Good examples…
Read More »