Being asynchronous in JavaScript using Promises

This post is long overdue. Promises are something I've enjoyed working with the last couple of months. Not only is it a simple way of working asynchronously, but with the increasing amount of frameworks embracing it, it becomes easy to benefit from in your projects. So what is a Promise?…


ES6: 3 new ways of defining object properties in JavaScript

Repetitive boilerplate code is something that haunts most developers to some degree. It’s like an itch that can’t be scratched. It drags you away from the flow, it messes up your code, and it blurs away the important parts. What I love about ES6 is that it takes…






Java 8: Creating a custom Collector for your Stream

In the previous post we looked at different implementations of the Collector interface. As you saw, there is a wide range of collectors available out of the box. However — sometimes you need something special that you simply have to make yourself. So today we’re going to look at how…


Java 8: Accumulate the elements of a Stream using Collectors

I’ve earlier written about the Stream API and how you can write more declarative code by using it. In this article I want to focus on the different ways of accumulating the elements of a Stream using Collectors. This is made possible by using collect — a method in the…