Click here to Skip to main content
12,251,889 members (58,770 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, 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: How do you like your nulls Pin
Zac Greve8-Dec-12 7:25
memberZac Greve8-Dec-12 7:25 
GeneralRe: How do you like your nulls Pin
lewax008-Dec-12 15:32
memberlewax008-Dec-12 15:32 
GeneralRe: How do you like your nulls Pin
Zac Greve8-Dec-12 16:23
memberZac Greve8-Dec-12 16:23 
GeneralRe: How do you like your nulls Pin
lewax008-Dec-12 16:33
memberlewax008-Dec-12 16:33 
Right, but there's no reason to expect it might be null at this piece of code without more context. The previous line could be something that gets that user from a function that always returns an non-null object...I just don't think there's enough information to comment on the code as-is.
AnswerRe: How do you like your nulls Pin
Robert Hoffmann8-Dec-12 23:55
memberRobert Hoffmann8-Dec-12 23:55 
GeneralRe: How do you like your nulls Pin
lewax009-Dec-12 0:35
memberlewax009-Dec-12 0:35 
GeneralRe: How do you like your nulls Pin
Robert Hoffmann9-Dec-12 9:39
memberRobert Hoffmann9-Dec-12 9:39 
GeneralRe: How do you like your nulls Pin
patbob10-Dec-12 5:32
memberpatbob10-Dec-12 5:32 
GeneralRe: How do you like your nulls Pin
Tomz_KV10-Dec-12 2:28
memberTomz_KV10-Dec-12 2:28 
GeneralRe: How do you like your nulls Pin
Zac Greve10-Dec-12 9:17
memberZac Greve10-Dec-12 9:17 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160426.1 | Last Updated 5 May 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid