Java API Design Best Practices Slide Deck Now Available

I spent a lot of time building a new slide deck for a few conferences I had coming up (, 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, I’ve been asked to share this content more widely, and I’m happy to do so. It is now available on the presentations page, and it’s also available as a direct link.

I will probably post updated versions of this slide deck as I refine it for upcoming conferences.

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