Click here to Skip to main content
15,914,071 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: Now, granted, I don't always write "up to snuff" code... Pin
Marc Clifton2-Mar-17 3:54
mvaMarc Clifton2-Mar-17 3:54 
GeneralRe: Now, granted, I don't always write "up to snuff" code... Pin
Mark_Wallace1-Mar-17 9:36
Mark_Wallace1-Mar-17 9:36 
GeneralRe: Now, granted, I don't always write "up to snuff" code... Pin
BillW331-Mar-17 10:14
professionalBillW331-Mar-17 10:14 
GeneralRe: Now, granted, I don't always write "up to snuff" code... Pin
Marco Bertschi1-Mar-17 11:00
protectorMarco Bertschi1-Mar-17 11:00 
GeneralRe: Now, granted, I don't always write "up to snuff" code... Pin
Marc Clifton2-Mar-17 3:56
mvaMarc Clifton2-Mar-17 3:56 
GeneralRe: Now, granted, I don't always write "up to snuff" code... Pin
Marco Bertschi2-Mar-17 11:05
protectorMarco Bertschi2-Mar-17 11:05 
GeneralRe: Now, granted, I don't always write "up to snuff" code... Pin
Marco Bertschi2-Mar-17 11:07
protectorMarco Bertschi2-Mar-17 11:07 
GeneralRe: Now, granted, I don't always write "up to snuff" code... Pin
Marc Clifton3-Mar-17 4:19
mvaMarc Clifton3-Mar-17 4:19 
Marco Bertschi (SFC) wrote:
But let's agree on the fact that a nullable boolean is a stupid idea.


Well, given that a field in a DB record can be null (which in itself is a whole can of worms as to what null means in a field) it makes sense that the language supports nullable value types -- I thought it was a significant improvement in C# when that support was added. So, from that perspective, a nullable bool is just like any other nullable value type, and I don't have a problem with it.

What I do have a problem with is when the null state is used as a valid state. In my opinion, any nullable type that is null when you need to use it for something should result in an exception. By that definition, "nullable" to me (and when I design databases) means "it's OK if we don't know the value of this type right now, but when we use it for something, it darn well better not be null."

The exception to that might be business rules that handle "I don't know."

Marc
V.A.P.O.R.ware - Visual Assisted Programming / Organizational Representation

Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

Artificial intelligence is the only remedy for natural stupidity. - CDP1802

GeneralRe: Now, granted, I don't always write "up to snuff" code... Pin
Jeremy Falcon1-Mar-17 11:15
professionalJeremy Falcon1-Mar-17 11:15 
GeneralRe: Now, granted, I don't always write "up to snuff" code... Pin
David O'Neil1-Mar-17 16:51
professionalDavid O'Neil1-Mar-17 16:51 
GeneralRe: Now, granted, I don't always write "up to snuff" code... Pin
Jeremy Falcon2-Mar-17 5:49
professionalJeremy Falcon2-Mar-17 5:49 
GeneralRe: Now, granted, I don't always write "up to snuff" code... Pin
Foothill1-Mar-17 11:56
professionalFoothill1-Mar-17 11:56 
GeneralRe: Now, granted, I don't always write "up to snuff" code... Pin
CDP18021-Mar-17 12:11
CDP18021-Mar-17 12:11 
GeneralRe: Now, granted, I don't always write "up to snuff" code... Pin
Nathan Minier2-Mar-17 2:54
professionalNathan Minier2-Mar-17 2:54 
GeneralRe: Now, granted, I don't always write "up to snuff" code... Pin
Marc Clifton2-Mar-17 3:58
mvaMarc Clifton2-Mar-17 3:58 
GeneralRe: Now, granted, I don't always write "up to snuff" code... Pin
CDP18022-Mar-17 4:02
CDP18022-Mar-17 4:02 
GeneralRe: Now, granted, I don't always write "up to snuff" code... Pin
Ravi Bhavnani1-Mar-17 16:10
professionalRavi Bhavnani1-Mar-17 16:10 
GeneralRe: Now, granted, I don't always write "up to snuff" code... Pin
Jeremy Falcon2-Mar-17 5:50
professionalJeremy Falcon2-Mar-17 5:50 
GeneralRe: Now, granted, I don't always write "up to snuff" code... Pin
ClockMeister2-Mar-17 2:23
professionalClockMeister2-Mar-17 2:23 
GeneralRe: Now, granted, I don't always write "up to snuff" code... Pin
den2k882-Mar-17 2:47
professionalden2k882-Mar-17 2:47 
GeneralRe: Now, granted, I don't always write "up to snuff" code... Pin
ClockMeister2-Mar-17 4:08
professionalClockMeister2-Mar-17 4:08 
GeneralRe: Now, granted, I don't always write "up to snuff" code... Pin
Marc Clifton2-Mar-17 4:01
mvaMarc Clifton2-Mar-17 4:01 
GeneralRe: Now, granted, I don't always write "up to snuff" code... Pin
ClockMeister2-Mar-17 4:10
professionalClockMeister2-Mar-17 4:10 
GeneralRe: Now, granted, I don't always write "up to snuff" code... Pin
StarNamer@work2-Mar-17 4:58
professionalStarNamer@work2-Mar-17 4:58 
GeneralRe: Now, granted, I don't always write "up to snuff" code... Pin
Steve Naidamast2-Mar-17 3:48
professionalSteve Naidamast2-Mar-17 3:48 

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.