Java 8: Take your abstractions to the next level

One of the many reasons I enjoy working with functional programming, is the high level of abstraction. You'll end up with more readable and concise code that is closer to the business logic. In this post I'll look at four things that will help you get your abstractions to the…



Concurrency made easy with Scala and Akka

A few posts ago I looked at Erlang and how it solves concurrency using the actor model. I truly enjoyed playing with this strategy and found the concept intriguing. That's why i decided to look into how concurrency using actors is solved in other languages as well. In this post…


Execute code on webapp startup and shutdown using ServletContextListener

Sometimes you are in need of invoking some code during startup and shutdown of your web application. There are several ways to achieve this, but in this post I'm going to take a look at the ServletContextListener. How it works ServletContextListener is an interface that gets notified about ServletContext lifecycle…


Jenkins monitor in terminal

We use jenkins for our builds and it works great. However, a year ago I was just fed up with going to the browser everytime I wanted to get a quick update on how things where going. As the terminal freak I am, I created a simple jenkins monitor for…


Try something different with Erlang

The last week, I've been playing around with Erlang and I've really enjoyed it. It was first released in 1986, so it's definitely not a new language. However, I'm pretty sure that working with Erlang would give a lot of the programmers out there a new experience. Erlang is a…


Scala Collections: Part 3 - Exploring more operations

In the final post of this series, we're going to continue to look at the variety of operations in the Scala Collection API. Let’s start with a few operations that builds on ideas we've already looked at. TakeWhile def takeWhile(p: (A) ⇒ Boolean): Traversable[A] Takes the longest prefix…


Timeout support using ExecutorService and Futures

The other day, I was in need of a way to timeout a third-party service that started to freeze from time to time. After looking around a bit, I ended up using ExecutorService and Future from the concurrent package. What I liked about this solution was that it made the…