Taming the Billion Dollar Mistake: Maarten Balliauw's Guide to C# Nullable Reference Types
This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).
Maarten Balliauw presents a practical guide to migrating C# codebases to nullable reference types, a compile-time safety feature introduced in C# 8. The session covers migration strategies like the Boy Scout Rule (enabling nullability file-by-file), warns against overusing the null-forgiving operator, and addresses gotchas like Entity Framework Core's automatic schema updates. The approach emphasizes gradual adoption starting from central classes with few dependencies, using IDE tools for flow analysis, and accepting null as part of the codebase rather than trying to eliminate it entirely.
Table of contents
Watch the full presentationIt’s not for runtime safetyThe Boy Scout Rule for migrationThe temptation of the dammit operatorEmbracing null, not fighting itEntity Framework’s surprisePractical tools for the journeyThe takeawaySort: