DDD Adelaide 2026

On Saturday DDD Adelaide 2026 happened! A conference for the software developer community of Adelaide, South Australia. It was the result of a lot of planning and preparation from the organising team (Andrew, Claire, Harnoor, Ryan, Joel, Will and myself).

DDD Adelaide 2026 logo

A fantastic bunch of local and interstate speakers joined us at Adelaide University to share their knowledge and experience.

The turnout again was overwhelming. We sold out a few days early, and there was a wait-list (but I think most of those people got in).

Special thanks to the tireless group of volunteers (including my wife and daughter) who helped the day run smoothly.

Attendees milling around the atrium

People seated in a lecture theatre listening to a presentation

The food continues to amaze me. Cargo Catering knocked it out of the park again. Yummo is all I can say!

Morning tea ready to be consumed

I was a room host for 3 of the sessions:

Callum Whyte - Designed To Fail: Building Resilient Applications (which was a nice refresher as I’d also caught his talk at DDD Melbourne earlier in the year)

Callum presenting in a lecture theatre with two large screens behind showing his talk’s title slide

Tom Tuddenham - AI, Agile and the Collapse of Meaning: Why Modern Development Sucks and How We Can Fix It. I really appreciated Tom’s presentation and the different perspectives he brought.

Tom speaking

Alex Corcoran - The Beautiful Mess of Humans @ Work. Another really interesting talk, and I liked the ‘Winnipeg’ reference. I was not expecting quilting to be a presentation topic at DDD but it worked.

Alex speaking behind a lectern

The day ended with our traditional thank-yous and prize draws. I got right into the spirit!

David with one of the prizes

(This photo was taken by frankie the creative)

As an organiser it’s an intense day. You’re focused almost entirely on making the day an enjoyable one for all those who have attended. Even so, I did manage to catch myself later in the day and think “We did this”. But it’s really often a few days later when you’ve had time to process what happened and reflect back to appreciate that yes, it was a good thing we did.

We hope to be back again for 2027!

C# 15 - Closed hierarchies

C# logo

‘Hierarchy’ is one of those words that for some reason I need to stop and think about how it is spelled - does it follow the “i after e except after c” or is it an exception? I think I got it right this time.

C# logo

So enough of spelling, let’s look at another new language feature introduced in C# 15 - Closed Hierarchies. By using the closed modifier, we can now indicate that a class (including record classes) is a “closed hierarchy”. Given this closed type:

public closed record Season
{
    public virtual int Rainfall { get; set; }
}

We can then declare other subtypes of that class in the same assembly in the usual way:

public record Winter : Season;
public record Summer(int BushfireRisk) : Season;
public record Spring(int PollenCount) : Season;
public record Autumn : Season;

If we use these types in a switch expression, then the compiler knows all the possible types and can tell if the expression covers all the direct descendants.

static string SummariseSeason(Season season) => season switch
{
    Summer s => $"It's summer. Bushfire alert level {s.BushfireRisk}",
    Winter w => "It's winter",
    Spring sp => $"It's spring. Pollen count {sp.PollenCount}",
    Autumn a => "It's autumn",
};

The above code doesn’t need a default case. Creating a Summer instance of Season and calling that method like this:

Season season = new Summer(5);
Console.WriteLine(SummariseSeason(season));

Outputs: It's summer. Bushfire alert level 5

Note that if Season was nullable, then you would need to handle the null case.

Implications of closed types

You can’t inherit from that type in another assembly

If this code was declared in a different assembly to the closed type, it will not compile:

// Invalid code
public record ChickenSalt : closed_base.Season
{
}

Fails with compiler error:

error CS9382: 'ChickenSalt': cannot use a closed type 'Season' from another assembly as a base type.

The closed class is implicitly abstract

You can’t instantiate a closed type directly:

// Invalid code
var class1 = new Season();

Fails with:

error CS0144: Cannot create an instance of the abstract type or interface 'Season'

Closed is different to sealed

The sealed modifier can be applied to a class, or a method or property that overrides a base class’s virtual method or property.

Once something is sealed, it cannot be inherited from or overridden in a subtype.

A subtype of a closed type defaults to being open

A subtype of a closed type is not also closed automatically. This means you can inherit from the subtype in another assembly. This code is valid if it was in another assembly:

public record BushfireRisk : closed_base.Summer
{
}

A subtype can be closed only if you also add the closed modifier to it.

The compiler will warn you about incomplete switch expressions

If you had the following code:

static string IncompleteSummariseSeason(Season season) => season switch
{
    Summer s => $"It's summer. Bushfire alert level {s.BushfireRisk}",
    Winter w => "It's winter",
    Spring sp => $"It's spring. Pollen count {sp.PollenCount}"
};

The compiler will emit the following warning:

warning CS8509: The switch expression does not handle all possible values of its input type (it is not exhaustive). For example, the pattern 'closed_base.Autumn' is not covered

Using closed can be a breaking change

Adding closed to an existing class makes it implicitly abstract. This could break code that instantiates it or inherits from it in another assembly.

Adding a new subtype to an existing closed hierarchy could also impact downstream consumers; For example, any existing switch expressions they had could now be non-exhaustive and will emit compiler warnings.

Conclusion

Using closed hierarchies allows the compiler to reason about switch expressions and generate warnings if you’ve missed a case.

Full code samples can be found in this repo.

Also, I think after writing this post, I’m getting better at spelling ‘hierarchy’ 😀

More recent posts

Older posts

All posts (currently 1201) can be found in the archive. Jump to recent years in 2026 , 2025 and 2024 .