Welcome to Dead Code Rising

Dive into a wide range of advice, tips, and in-depth tutorials on software development

6 actions that made 2017 my most productive year ever

The amount of things some people get done seems endless. You start to calculate the hours and it doesn't add up. What is their secret? How are they getting so much done? We all got the same 24 hours a day limitation. I've always been fascinated by productive people. I've…


React: Improve the performance by using PureComponents

In this post we're going to look at PureComponents in React. So what is a PureComponent? A PureComponent is just the same as a normal react component except for one thing — the implementation of shouldComponentUpdate. A PureComponent only does a shallow comparison of the props and state to decide if…


How to generate a stream of random numbers in Java

From time to time you end up with the need of generating some random numbers. In Java, the Random class has been the go-to solution for this type of work. Random serves several helpful methods for creating random ints, doubles and longs. However, if you wanted a sequence of random…


Java 9: Cleaning up your default methods using private interface methods

Java 8 brought huge changes — one of them being the default interface methods. These methods changed interfaces as we knew them — we could now define default implementations in the interface itself. If you use these default methods heavily in your applications, you'll quickly figure out one thing — it doesn't really…


ES6: Working with Sets in JavaScript

In this post we're continuing to look at features introduced in ES6. Amongst all the cool things happening in ES6, we find a few new data structures — one of them being the Set. So what is actually a Set? A Set is a data structure that store unique values of…


Java 9 - Making the Stream API even better

One of the first things I check out when looking at a new language is if it got a good collection API. I find that a good way of working with collections usually result in cleaner code that is easier to understand and reason about. That's why I was glad…