Java API Design Best Practices Slide Deck Now Available

Important Note: Because I give this presentation every now and then, and therefore revise my advice, I’ve created a separate page with the download links. I suggest you download the latest slide deck on that page!

I spent a lot of time building a new slide deck for a few conferences I had coming up (JDK.io, Devoxx Poland, and JavaZone). The purpose of the presentation was to try to teach all attendees some new information about the process required to build API. Unfortunately, it’s impossible to dive too deeply in 50-60 minutes, and everyone has different levels of skills. My hope therefore is simply that all attendees leave the presentation with at least one new piece of insight. I hope that I’ve managed to achieve at least that 🙂

Since I’ve now presented this session at JDK.io, I’ve been asked to share this content more widely, and I’m happy to do so. It is now available on the presentation overview page.

2 thoughts on “Java API Design Best Practices Slide Deck Now Available”

  1. Hi,
    I think following will give compile time error-

    public RandomIntGenerator(int min) {
    this(min, Integer.MAX_VALUE);
    }

    public RandomIntGenerator(int max) { // Duplicate Method
    this(Integer.MIN_VALUE, max);
    }

    1. You’re right – that is why I say // duplicate method. The point I’m making is that constructors don’t work well, because they can’t be named, so we can’t have duplicate constructors like this, but static factories will work.

Leave a Reply