Click here to Skip to main content
15,919,178 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: code comments Pin
CDP180227-Jul-16 2:49
CDP180227-Jul-16 2:49 
GeneralRe: code comments Pin
#realJSOP27-Jul-16 1:31
professional#realJSOP27-Jul-16 1:31 
GeneralRe: code comments Pin
CDP180227-Jul-16 2:58
CDP180227-Jul-16 2:58 
GeneralRe: code comments Pin
Richard Deeming27-Jul-16 3:09
mveRichard Deeming27-Jul-16 3:09 
GeneralRe: code comments Pin
Nish Nishant27-Jul-16 4:49
sitebuilderNish Nishant27-Jul-16 4:49 
GeneralRe: code comments Pin
TheGreatAndPowerfulOz27-Jul-16 8:10
TheGreatAndPowerfulOz27-Jul-16 8:10 
GeneralRe: code comments Pin
Nish Nishant27-Jul-16 8:18
sitebuilderNish Nishant27-Jul-16 8:18 
GeneralRe: code comments Pin
kalberts28-Jul-16 2:12
kalberts28-Jul-16 2:12 
Often, in cases like that, you could very well add a comment indicating why the ojbect reference would be null (or non-null). Not always, but often.

When studying code written by others, one of the questions I frequently as myself is of the kind "OK, so I understand that you can't Do Stuff on a null object, but in which cases is the object null?? A short end-of-line comment such as 'null if child hasn't been named yet' or 'null if cleanup actions are already performed' can be worth their weight in gold.
GeneralRe: code comments Pin
kalberts28-Jul-16 2:59
kalberts28-Jul-16 2:59 
GeneralRe: code comments Pin
Clifford Nelson27-Jul-16 7:39
Clifford Nelson27-Jul-16 7:39 
PraiseRe: code comments Pin
TheGreatAndPowerfulOz27-Jul-16 7:49
TheGreatAndPowerfulOz27-Jul-16 7:49 
GeneralRe: code comments Pin
Clifford Nelson27-Jul-16 10:23
Clifford Nelson27-Jul-16 10:23 
GeneralRe: code comments Pin
kalberts28-Jul-16 2:49
kalberts28-Jul-16 2:49 
GeneralRe: code comments Pin
Clifford Nelson28-Jul-16 4:55
Clifford Nelson28-Jul-16 4:55 
GeneralRe: code comments Pin
kalberts28-Jul-16 5:20
kalberts28-Jul-16 5:20 
GeneralRe: code comments Pin
Clifford Nelson28-Jul-16 5:26
Clifford Nelson28-Jul-16 5:26 
GeneralRe: code comments Pin
kalberts28-Jul-16 6:02
kalberts28-Jul-16 6:02 
GeneralRe: code comments Pin
Clifford Nelson28-Jul-16 14:51
Clifford Nelson28-Jul-16 14:51 
GeneralRe: code comments Pin
kalberts28-Jul-16 21:34
kalberts28-Jul-16 21:34 
GeneralRe: code comments Pin
Clifford Nelson29-Jul-16 5:48
Clifford Nelson29-Jul-16 5:48 
GeneralRe: code comments Pin
kalberts28-Jul-16 2:21
kalberts28-Jul-16 2:21 
GeneralRe: code comments Pin
Richard Deeming27-Jul-16 7:55
mveRichard Deeming27-Jul-16 7:55 
GeneralRe: code comments Pin
Tom Deketelaere27-Jul-16 8:12
professionalTom Deketelaere27-Jul-16 8:12 
GeneralRe: code comments Pin
Eric Whitmore28-Jul-16 1:18
Eric Whitmore28-Jul-16 1:18 
GeneralRe: code comments Pin
Cloud William28-Jul-16 2:14
Cloud William28-Jul-16 2:14 

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.