← Back to /cs/

Why does everyone hate nulls?_

Null reference exceptions, nullable reference types in C# 8+, and whether Tony Hoare's billion-dollar mistake was actually that bad.

By: alice_dev Mar 24, 2026 5 posts
#5 Mar 27

Just Use Guard Clauses

Hot take: in business code, just throw ArgumentNullException at the top of every public method. Fail fast, fail loudly. The nullable annotations are great but retrofitting them onto a 500k-line codebase is a months-long project nobody will ever approve.

By: dave_runtime Mar 27, 2026 18:39
[1] [2] Page 2 of 2 (5 posts)
5 posts in this thread [+] Reply