java

Fluent Operations on Collections in Java

As far as language features go, collections are a basic necessity in Java. You can add, remove and retrieve elements, but it has always frustrated me that more complex operations, like filtering or mapping, require lines of grotesque boilerplate code with iterators. A library that you may already be using can help. It's called Guava. Before I go any further, I should mention that none of these problems exist in Java 8 with its shiny streams. Hence, this guide is only for the developers stuck in the yesteryear, because of either Android or some unupdatable legacy system.

Dagger 2: Even Sharper, Less Square

It was only a matter of time before version 2.0 of the well-known dependency injection library Dagger hit production and that seemed like a good reason to write an article about it. But first we'll spend some time looking at the original Dagger.

Java Dethroned by C

This year's Tiobe Index is out — an annual report gathered by the Dutch company TIOBE Software to measure the popularity of the major programming languages around the world — and this one packs a few headline-worthy stats.

What's so Good About Java 7 Anyway?

It is common knowledge that the new major release of the Java Development Kit came out a few months back — JDK 7 is here, ladies and gentlemen! Alright, the news itself is not exactly recent, however since the commercial adoption is traditionally going to range from slow to very slow, it's unlikely that developers will get to use 7-only features for the next six months at the very least. This gives us plenty of time to go through these new features below, ordered by the convenience they provide (code examples are adapted from Java documentation referenced in "Resources").