Oct 29, 2026 · 54 min · 11 segments
Object-Oriented Programming offers a lot of flexibility for modelling diverse domains but not all elements need that flexibility. Data, specifically, is often better modeled by simple, immutable types…
Nicolai ParlogHostSo a lot of records, for example, you can just write on a single line and that's all the information anybody needs.

My personal preference with records, as much as I love them, is that they are okay with null.

Because this is where I personally, as somebody who avoids null as a legal state wherever I can, which is surprisingly all of the places usually, That's the place where I try to spot nulls.

So that's the one place where I make sure that nulls indeed never crawled into anywhere.
Can I eliminate null from the domains where it doesn't make sense? And we've been exploring different features in the Valhalla project about how to do that.
But eliminate, yeah, the null checks is one thing that you have to do if you've got untrusted data coming in and you want to make sure that none of it is null.

It's not only the untrusted data, it's also like I'm the untrusted human in the room.
You invoke a method and you get a checkpoint and a null pointer exception happens there.
If we can add the checkpoints, make them more pervasive, then the nulls aren't going to flow as far in the accidental places.
So a lot of records, for example, you can just write on a single line and that's all the information anybody needs.

My personal preference with records, as much as I love them, is that they are okay with null.

Because this is where I personally, as somebody who avoids null as a legal state wherever I can, which is surprisingly all of the places usually, That's the place where I try to spot nulls.

So that's the one place where I make sure that nulls indeed never crawled into anywhere.
Can I eliminate null from the domains where it doesn't make sense? And we've been exploring different features in the Valhalla project about how to do that.
But eliminate, yeah, the null checks is one thing that you have to do if you've got untrusted data coming in and you want to make sure that none of it is null.

It's not only the untrusted data, it's also like I'm the untrusted human in the room.
You invoke a method and you get a checkpoint and a null pointer exception happens there.
If we can add the checkpoints, make them more pervasive, then the nulls aren't going to flow as far in the accidental places.
The rest of this transcript — segmented and speaker-labeled, so you land on the exact moment something was said
Search every transcript — by keyword, by phrase, or by meaning, across every show Radar indexes
Trends — what is surging across podcasts, measured against its own baseline
Alerts — when a name you follow appears in a newly indexed episode
No account is needed to search Radar.