Carbon Five & Heroku

By on in Development, golang, Java


Check out the latest Heroku case study, featuring Carbon Five.

The article explains how we build 35+ Apps a year and use Heroku for 90% of our software projects for wide range of clients. Courtney, Erik, and David share their thoughts on the platform’s support for rapid deployment, language flexibility, and ease of use.

Find out more here.


Null-Pointer Exceptions Considered Annoying

By on in Development, Java


If computer programs have needs, data is one of them. Usually, this data is available, but sometimes it’s not. Why not? Who knows. It’s just not there. What’s worse, this situation is common and, when improperly handled, results in runtime exceptions.

To explore this problem, let’s contrive an example using Java 8. Suppose we want to save a record given some data provided by the user. Since humans are fallible, let’s express the data they provide in terms of the Optional type. Here is what we’ll start with:

Function<String, Integer> saveRecord = m -> {
    System.out.println(String.format("Saving record %s", m));
    // do something useful
    return 0;
Optional<String> message = Optional.of("Hello World");
// call saveRecord with the String in message?

Continue reading …