Click here to Skip to main content

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, embarrasing 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.

 
AnswerRe: How do you like your nulls PinmemberRobert Hoffmann8-Dec-12 23:55 
GeneralRe: How do you like your nulls Pinmemberlewax009-Dec-12 0:35 
GeneralRe: How do you like your nulls PinmemberRobert Hoffmann9-Dec-12 9:39 
GeneralRe: How do you like your nulls Pinmemberpatbob10-Dec-12 5:32 
Calling ToString() on a string is totally unexpected. Perfectly valid code, but I'd wonder about the programmer who wrote it.
 
How that line ever got written in the first place made a lot more sense when I was thinking User wasn't a string -- you can't pass a non-string to IsNullOrEmpty(). Still broke, but I can see someone making such a mistake if in a hurry. Any chance it wasn't a string at one time?
We can program with only 1's, but if all you've got are zeros, you've got nothing.

GeneralRe: How do you like your nulls PinmemberTomz_KV10-Dec-12 2:28 
GeneralRe: How do you like your nulls PinmemberZac Greve10-Dec-12 9:17 
GeneralRe: How do you like your nulls PinmemberEddy Vluggen10-Dec-12 14:26 
GeneralRe: How do you like your nulls PinmemberBobJanova9-Dec-12 22:49 
GeneralRe: How do you like your nulls PinmemberRafagaX10-Dec-12 5:28 
GeneralRe: How do you like your nulls Pinmemberjibesh12-Dec-12 22:35 

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

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


Advertise | Privacy | Mobile
Web03 | 2.8.140415.2 | Last Updated 18 Apr 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid