Click here to Skip to main content
15,887,175 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: .NET and the nullable configuration Pin
raddevus3-Apr-23 3:58
mvaraddevus3-Apr-23 3:58 
GeneralRe: .NET and the nullable configuration Pin
PIEBALDconsult3-Apr-23 4:03
mvePIEBALDconsult3-Apr-23 4:03 
GeneralRe: .NET and the nullable configuration Pin
dandy723-Apr-23 4:05
dandy723-Apr-23 4:05 
GeneralRe: .NET and the nullable configuration Pin
Marc Clifton3-Apr-23 8:24
mvaMarc Clifton3-Apr-23 8:24 
GeneralRe: .NET and the nullable configuration Pin
dandy723-Apr-23 11:11
dandy723-Apr-23 11:11 
GeneralRe: .NET and the nullable configuration Pin
Paul Sanders (the other one)4-Apr-23 10:46
Paul Sanders (the other one)4-Apr-23 10:46 
GeneralRe: .NET and the nullable configuration Pin
lmoelleb3-Apr-23 4:10
lmoelleb3-Apr-23 4:10 
GeneralRe: .NET and the nullable configuration Pin
harold aptroot3-Apr-23 5:39
harold aptroot3-Apr-23 5:39 
I fix most of them, but I'm not afraid to use ! (even the phrase null!) or Debug.Assert(thing != null, "the thing") or some of the nullability-related attributes. I don't think we should drink too much of the Kool-Aid, I don't aim for perfectly "pure" use of Nullable. Using it doesn't really bother me in code that already makes use of it, there aren't tons of spurious warnings in that case, but converting a medium-size codebase to enable Nullable was a chore (that process did reveal a couple of bugs that were actually bad and had evaded detection up to then).

No doubt the main thing Nullable prevents is trivial mistakes that would be noticed immediately when pressing F5 anyway. (beginners seem to live in total fear and terror of the NullReferenceException, but let's be real, it's usually no big deal) But since converting a codebase to use Nullable revealed a couple of actual bugs too, well those bugs would never have existed if Nullable had been enabled all along, so maybe it's doing something serious too.

It's not effort-free to use, and the payoff is in something not happening, it's impossible to know what didn't happen, so who knows what the cost/benefit ratio is?
GeneralRe: .NET and the nullable configuration Pin
jschell3-Apr-23 7:02
jschell3-Apr-23 7:02 
GeneralRe: .NET and the nullable configuration Pin
lmoelleb3-Apr-23 8:55
lmoelleb3-Apr-23 8:55 
GeneralRe: .NET and the nullable configuration Pin
jschell4-Apr-23 5:31
jschell4-Apr-23 5:31 
GeneralRe: .NET and the nullable configuration Pin
lmoelleb4-Apr-23 9:19
lmoelleb4-Apr-23 9:19 
GeneralRe: .NET and the nullable configuration Pin
TNCaver3-Apr-23 7:05
TNCaver3-Apr-23 7:05 
GeneralRe: .NET and the nullable configuration Pin
Chris Maunder3-Apr-23 8:38
cofounderChris Maunder3-Apr-23 8:38 
GeneralRe: .NET and the nullable configuration Pin
Marc Clifton3-Apr-23 12:00
mvaMarc Clifton3-Apr-23 12:00 
GeneralRe: .NET and the nullable configuration Pin
Chris Maunder3-Apr-23 15:34
cofounderChris Maunder3-Apr-23 15:34 
GeneralRe: .NET and the nullable configuration Pin
dazfuller3-Apr-23 20:17
dazfuller3-Apr-23 20:17 
GeneralRe: .NET and the nullable configuration Pin
Vaso Elias4-Apr-23 0:00
Vaso Elias4-Apr-23 0:00 
GeneralRe: .NET and the nullable configuration Pin
Adam O'Neil (Travelers Rest, SC)4-Apr-23 0:22
Adam O'Neil (Travelers Rest, SC)4-Apr-23 0:22 
GeneralRe: .NET and the nullable configuration Pin
rallets4-Apr-23 1:24
rallets4-Apr-23 1:24 
GeneralRe: .NET and the nullable configuration Pin
jschell4-Apr-23 5:37
jschell4-Apr-23 5:37 
GeneralRe: .NET and the nullable configuration Pin
obermd4-Apr-23 4:16
obermd4-Apr-23 4:16 
GeneralRe: .NET and the nullable configuration Pin
jschell4-Apr-23 5:41
jschell4-Apr-23 5:41 
GeneralRe: .NET and the nullable configuration Pin
harold aptroot5-Apr-23 7:12
harold aptroot5-Apr-23 7:12 
GeneralRe: .NET and the nullable configuration Pin
Yortw4-Apr-23 10:30
Yortw4-Apr-23 10:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.