Click here to Skip to main content
15,885,546 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 11:37
professionalPaul Conrad11-Jul-12 11:37 
GeneralRe: When to check for null ? Pin
Sasha Laurel11-Jul-12 12:16
Sasha Laurel11-Jul-12 12:16 
GeneralRe: When to check for null ? Pin
Paul Conrad11-Jul-12 17:45
professionalPaul Conrad11-Jul-12 17:45 
GeneralRe: When to check for null ? Pin
KP Lee11-Jul-12 19:27
KP Lee11-Jul-12 19:27 
GeneralRe: When to check for null ? Pin
SortaCore12-Jul-12 2:37
SortaCore12-Jul-12 2:37 
GeneralRe: When to check for null ? Pin
KP Lee11-Jul-12 19:21
KP Lee11-Jul-12 19:21 
GeneralRe: When to check for null ? Pin
Sasha Laurel12-Jul-12 5:00
Sasha Laurel12-Jul-12 5:00 
GeneralRe: When to check for null ? Pin
KP Lee12-Jul-12 15:21
KP Lee12-Jul-12 15: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 16:03
Sasha Laurel12-Jul-12 16:03 
GeneralRe: When to check for null ? Pin
Sasha Laurel12-Jul-12 16:08
Sasha Laurel12-Jul-12 16:08 
GeneralRe: When to check for null ? Pin
KP Lee12-Jul-12 16:46
KP Lee12-Jul-12 16:46 
GeneralRateOfInterest... Pin
Sandeep Mewara10-Jul-12 5:04
mveSandeep Mewara10-Jul-12 5:04 
GeneralRe: RateOfInterest... Pin
PIEBALDconsult10-Jul-12 11:05
mvePIEBALDconsult10-Jul-12 11:05 
AnswerRe: RateOfInterest... Pin
Sandeep Mewara10-Jul-12 19:46
mveSandeep Mewara10-Jul-12 19:46 
GeneralRe: RateOfInterest... Pin
PIEBALDconsult11-Jul-12 3:42
mvePIEBALDconsult11-Jul-12 3:42 
QuestionRe: RateOfInterest... Pin
Sandeep Mewara10-Jul-12 19:49
mveSandeep Mewara10-Jul-12 19:49 
AnswerRe: RateOfInterest... Pin
PIEBALDconsult11-Jul-12 3:47
mvePIEBALDconsult11-Jul-12 3:47 
GeneralRe: RateOfInterest... Pin
BobJanova11-Jul-12 0:44
BobJanova11-Jul-12 0:44 
GeneralRe: RateOfInterest... Pin
PIEBALDconsult11-Jul-12 3:50
mvePIEBALDconsult11-Jul-12 3:50 
GeneralRe: RateOfInterest... Pin
BobJanova11-Jul-12 4:38
BobJanova11-Jul-12 4:38 
GeneralRe: RateOfInterest... Pin
Sandeep Mewara11-Jul-12 7:14
mveSandeep Mewara11-Jul-12 7:14 
GeneralRe: RateOfInterest... Pin
PIEBALDconsult11-Jul-12 8:37
mvePIEBALDconsult11-Jul-12 8:37 
JokeRe: RateOfInterest... PinPopular
S Houghtelin10-Jul-12 11:21
professionalS Houghtelin10-Jul-12 11:21 
GeneralRe: RateOfInterest... Pin
greldak10-Jul-12 22:07
greldak10-Jul-12 22:07 
GeneralDating PinPopular
V.10-Jul-12 3:56
professionalV.10-Jul-12 3: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.