-
Core Java
Java 8 pitfall – Beware of Files.lines()
There’s a really nice new feature in Java8 which allows you to get a stream of Strings from a file…
Read More » -
Enterprise Java
Calculate PageRanks with Apache Hadoop
Currently I am following the Coursera training ‘Mining Massive Datasets‘. I have been interested in MapReduce and Apache Hadoop for…
Read More » -
Enterprise Java
Database Migrations in Java EE using Flyway
Database schema of any Java EE application evolves along with business logic. This makes database migrations an important of any…
Read More » -
Software Development
TDD Against the Clock
A couple of weeks ago I ran a “TDD Against the Clock” session. The format is simple: working in pairs…
Read More » -
Core Java
Determining File Types in Java
Programmatically determining the type of a file can be surprisingly tricky and there have been many content-based file identification approaches…
Read More » -
Core Java
Using JDK 8 Streams to Convert Between Collections of Wrapped Objects and Collections of Wrapper Objects
I have found Decorators and Adapters to be useful from time to time as I have worked with Java-based applications.…
Read More » -
Software Development
Even Doctors Will Be Data Scientists
We all know how it works. You walk into a doctor’s office complaining about some pain in your leg or…
Read More » -
Enterprise Java
JBoss Fuse – Some less known trick
TL;DR expose java static calls as Karaf shell native commands override OSGi Headers at deploy time override OSGi Headers after…
Read More » -
Core Java
The Optimum Method to Concatenate Strings in Java
Recently I was asked this question – Is it bad for performance to use the + operator to concatenate Strings in…
Read More »