Click here to Skip to main content
15,500,218 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: When to check for null ? Pin
Paul Conrad11-Jul-12 12:37
professionalPaul Conrad11-Jul-12 12:37 
GeneralRe: When to check for null ? Pin
Sasha Laurel11-Jul-12 13:16
MemberSasha Laurel11-Jul-12 13:16 
GeneralRe: When to check for null ? Pin
Paul Conrad11-Jul-12 18:45
professionalPaul Conrad11-Jul-12 18:45 
GeneralRe: When to check for null ? Pin
KP Lee11-Jul-12 20:27
MemberKP Lee11-Jul-12 20:27 
GeneralRe: When to check for null ? Pin
SortaCore12-Jul-12 3:37
MemberSortaCore12-Jul-12 3:37 
GeneralRe: When to check for null ? Pin
KP Lee11-Jul-12 20:21
MemberKP Lee11-Jul-12 20:21 
GeneralRe: When to check for null ? Pin
Sasha Laurel12-Jul-12 6:00
MemberSasha Laurel12-Jul-12 6:00 
GeneralRe: When to check for null ? Pin
KP Lee12-Jul-12 16:21
MemberKP Lee12-Jul-12 16:21 
Sasha Laurel wrote:
you really are suicidal
That threw me for a bit. What did I say to make you think I was suicidal? Then because of context I realized "you" should have been "who". Smile | :)
Today I'm following a bug, no real detail on how to get there so I "best guess" it.

This it a multiple pull-down app. Pick something at random. Code blows up, try-catch retrieves the error. Tried to retrieve a value from a nullable datetime field. Threw the error because the field was null. Looks like 94% of the choices leads to that. Start a SQL trace, it goes there when it starts up, but doesn't when I make my pick and blows up.

So the code should be able to know what it can allow and modify the pull-downs to match. It's doing it elsewhere in the same pull-downs. Just one more area where the code isn't helpful. (Especially when I'm fairly new and don't really know what is meant by "2012-01-23-D2302-Private-Repro-Attempt-7-v-brleon")

OK, it's dated, by a specific person, created while looking into something. But what's really important is that I've picked a type of report that should have allowed me to pick 26 of the 428 selections that should work. That or replace the null date with today's date in the other 400 possibles.
GeneralRe: When to check for null ? Pin
Sasha Laurel12-Jul-12 17:03
MemberSasha Laurel12-Jul-12 17:03 
GeneralRe: When to check for null ? Pin
Sasha Laurel12-Jul-12 17:08
MemberSasha Laurel12-Jul-12 17:08 
GeneralRe: When to check for null ? Pin
KP Lee12-Jul-12 17:46
MemberKP Lee12-Jul-12 17:46 
GeneralRateOfInterest... Pin
Sandeep Mewara10-Jul-12 6:04
mveSandeep Mewara10-Jul-12 6:04 
GeneralRe: RateOfInterest... Pin
PIEBALDconsult10-Jul-12 12:05
professionalPIEBALDconsult10-Jul-12 12:05 
AnswerRe: RateOfInterest... Pin
Sandeep Mewara10-Jul-12 20:46
mveSandeep Mewara10-Jul-12 20:46 
GeneralRe: RateOfInterest... Pin
PIEBALDconsult11-Jul-12 4:42
professionalPIEBALDconsult11-Jul-12 4:42 
QuestionRe: RateOfInterest... Pin
Sandeep Mewara10-Jul-12 20:49
mveSandeep Mewara10-Jul-12 20:49 
AnswerRe: RateOfInterest... Pin
PIEBALDconsult11-Jul-12 4:47
professionalPIEBALDconsult11-Jul-12 4:47 
GeneralRe: RateOfInterest... Pin
BobJanova11-Jul-12 1:44
MemberBobJanova11-Jul-12 1:44 
GeneralRe: RateOfInterest... Pin
PIEBALDconsult11-Jul-12 4:50
professionalPIEBALDconsult11-Jul-12 4:50 
GeneralRe: RateOfInterest... Pin
BobJanova11-Jul-12 5:38
MemberBobJanova11-Jul-12 5:38 
GeneralRe: RateOfInterest... Pin
Sandeep Mewara11-Jul-12 8:14
mveSandeep Mewara11-Jul-12 8:14 
GeneralRe: RateOfInterest... Pin
PIEBALDconsult11-Jul-12 9:37
professionalPIEBALDconsult11-Jul-12 9:37 
JokeRe: RateOfInterest... Pin
S Houghtelin10-Jul-12 12:21
professionalS Houghtelin10-Jul-12 12:21 
GeneralRe: RateOfInterest... Pin
greldak10-Jul-12 23:07
Membergreldak10-Jul-12 23:07 
GeneralDating Pin
V.10-Jul-12 4:56
professionalV.10-Jul-12 4:56 

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.