Click here to Skip to main content
11,486,023 members (75,388 online)

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.

 
GeneralRe: What this 'null' check doing here... Pin
Mohammed Hameed10-Jul-13 20:39
professionalMohammed Hameed10-Jul-13 20:39 
GeneralRe: What this 'null' check doing here... Pin
David C. Thompson10-Jul-13 21:51
memberDavid C. Thompson10-Jul-13 21:51 
GeneralRe: What this 'null' check doing here... Pin
Mark Starr10-Jul-13 5:25
memberMark Starr10-Jul-13 5:25 
GeneralRe: What this 'null' check doing here... Pin
KP Lee10-Jul-13 21:19
memberKP Lee10-Jul-13 21:19 
Mark Starr wrote:
I didn't this you could use any comparison operator against NULL
You're mixing up SQL with C# as well as "this" vs "think". SQL isn't case sensitive and comparison operators won't work with null, NULL, or NuLl where all versions of the null keyword are valid. In C#, NULL is nonsense unless you've declared an object name NULL and the language is designed to make comparisons (==, !=) with null
GeneralRe: What this 'null' check doing here... Pin
Mark Starr11-Jul-13 6:18
memberMark Starr11-Jul-13 6:18 
GeneralRe: What this 'null' check doing here... Pin
KP Lee15-Jul-13 21:32
memberKP Lee15-Jul-13 21:32 
GeneralRe: What this 'null' check doing here... Pin
Mark Starr16-Jul-13 6:20
memberMark Starr16-Jul-13 6:20 
GeneralRe: What this 'null' check doing here... Pin
silverfox200110-Jul-13 6:33
membersilverfox200110-Jul-13 6:33 
GeneralRe: What this 'null' check doing here... Pin
Mohammed Hameed10-Jul-13 20:35
professionalMohammed Hameed10-Jul-13 20:35 
GeneralRe: What this 'null' check doing here... Pin
RafagaX10-Jul-13 6:43
memberRafagaX10-Jul-13 6:43 

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.150520.1 | Last Updated 26 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid