Click here to Skip to main content
15,887,214 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.

 
General.Net 5 Freakin Annoying Pin
#realJSOP14-Feb-22 7:51
mve#realJSOP14-Feb-22 7:51 
GeneralRe: .Net 5 Freakin Annoying Pin
Slacker00714-Feb-22 8:05
professionalSlacker00714-Feb-22 8:05 
GeneralRe: .Net 5 Freakin Annoying Pin
#realJSOP14-Feb-22 23:15
mve#realJSOP14-Feb-22 23:15 
GeneralRe: .Net 5 Freakin Annoying Pin
Marc Clifton14-Feb-22 8:25
mvaMarc Clifton14-Feb-22 8:25 
GeneralRe: .Net 5 Freakin Annoying Pin
Luc Pattyn15-Feb-22 7:22
sitebuilderLuc Pattyn15-Feb-22 7:22 
GeneralRe: .Net 5 Freakin Annoying Pin
Eddy Vluggen14-Feb-22 11:58
professionalEddy Vluggen14-Feb-22 11:58 
GeneralRe: .Net 5 Freakin Annoying Pin
Gary R. Wheeler14-Feb-22 15:28
Gary R. Wheeler14-Feb-22 15:28 
GeneralRe: .Net 5 Freakin Annoying PinPopular
lmoelleb14-Feb-22 20:44
lmoelleb14-Feb-22 20:44 
Let me see.

I can enable null check - clearly advertising intent outside my method - make it very clear where I can ignore null check and get the compiler to tell me where I need it. Reference types and value types both able to advertise clearly if they are nullable or not.

Or I can disable nullable check and accept more null reference exceptions - often not telling you enough to easily tell what was null when all you have is a log file from a production server. When calling a method always having to wonder "hmm, can this return null or not" - and either forget to handle null in one or another edge case, or clutter the code with null handling code that will never execute. And have value types that can communicate if they can be null or not, while my reference types can't.
And in case you say "never happens to me". Well, congratulation for working on such a simple code base.

It is not exactly a hard choice for new code. I can't think of a single reason to disable it besides "I am not used to it".

For old code it is of course a question if it is worth the investment which will vary from project to project.

It is unfortunately not as good as it should be due to the requirement to link to libraries developed before null checks, but at least it is an attempt to fix one of the most serious design mistakes in the .NET type system.

Can we please get more "nanny state" to let the compiler deal with this trivial crap so I can concentrate on the domain.
GeneralRe: .Net 5 Freakin Annoying Pin
lmoelleb14-Feb-22 20:58
lmoelleb14-Feb-22 20:58 
GeneralRe: .Net 5 Freakin Annoying Pin
Richard Andrew x6415-Feb-22 8:24
professionalRichard Andrew x6415-Feb-22 8:24 
GeneralRe: .Net 5 Freakin Annoying Pin
lmoelleb15-Feb-22 21:02
lmoelleb15-Feb-22 21:02 
GeneralRe: .Net 5 Freakin Annoying Pin
Richard Deeming14-Feb-22 21:47
mveRichard Deeming14-Feb-22 21:47 
GeneralRe: .Net 5 Freakin Annoying Pin
lmoelleb14-Feb-22 22:21
lmoelleb14-Feb-22 22:21 
GeneralRe: .Net 5 Freakin Annoying Pin
Richard Deeming14-Feb-22 22:26
mveRichard Deeming14-Feb-22 22:26 
GeneralRe: .Net 5 Freakin Annoying Pin
lmoelleb14-Feb-22 23:01
lmoelleb14-Feb-22 23:01 
GeneralRe: .Net 5 Freakin Annoying Pin
den2k8814-Feb-22 23:16
professionalden2k8814-Feb-22 23:16 
GeneralRe: .Net 5 Freakin Annoying Pin
Peter Adam15-Feb-22 20:58
professionalPeter Adam15-Feb-22 20:58 
GeneralRe: .Net 5 Freakin Annoying Pin
den2k8815-Feb-22 22:14
professionalden2k8815-Feb-22 22:14 
GeneralRe: .Net 5 Freakin Annoying Pin
#realJSOP14-Feb-22 23:17
mve#realJSOP14-Feb-22 23:17 
GeneralRe: .Net 5 Freakin Annoying Pin
Richard Deeming15-Feb-22 0:32
mveRichard Deeming15-Feb-22 0:32 
GeneralRe: .Net 5 Freakin Annoying Pin
Jörgen Andersson15-Feb-22 0:21
professionalJörgen Andersson15-Feb-22 0:21 
GeneralRe: .Net 5 Freakin Annoying Pin
J. Frank Reeves16-Feb-22 1:51
J. Frank Reeves16-Feb-22 1:51 
GeneralRe: .Net 5 Freakin Annoying Pin
Steve Naidamast16-Feb-22 4:07
professionalSteve Naidamast16-Feb-22 4:07 
GeneralRe: .Net 5 Freakin Annoying Pin
#realJSOP16-Feb-22 23:50
mve#realJSOP16-Feb-22 23:50 
GeneralRe: .Net 5 Freakin Annoying Pin
Steve Naidamast17-Feb-22 3:43
professionalSteve Naidamast17-Feb-22 3:43 

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.