Click here to Skip to main content
15,895,142 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: PFOTD Pin
PIEBALDconsult17-Mar-15 19:33
mvePIEBALDconsult17-Mar-15 19:33 
GeneralRe: PFOTD Pin
Mark_Wallace17-Mar-15 21:11
Mark_Wallace17-Mar-15 21:11 
GeneralRe: PFOTD Pin
PIEBALDconsult18-Mar-15 3:08
mvePIEBALDconsult18-Mar-15 3:08 
GeneralRe: PFOTD Pin
Mark_Wallace18-Mar-15 3:14
Mark_Wallace18-Mar-15 3:14 
GeneralRe: PFOTD Pin
Bergholt Stuttley Johnson17-Mar-15 23:01
professionalBergholt Stuttley Johnson17-Mar-15 23:01 
GeneralRe: PFOTD Pin
TheGreatAndPowerfulOz18-Mar-15 5:07
TheGreatAndPowerfulOz18-Mar-15 5:07 
GeneralRe: PFOTD Pin
Bergholt Stuttley Johnson18-Mar-15 5:58
professionalBergholt Stuttley Johnson18-Mar-15 5:58 
GeneralRe: PFOTD Pin
Anthony Mushrow17-Mar-15 7:02
professionalAnthony Mushrow17-Mar-15 7:02 
Error An object reference is required for the non-static field, method, or property 'Coffee.IsEmpty.get'
The name '_programmer' does not exist in the current context.

Assuming that you have local variables prefixed with an underscore, then _programmer is never defined. If it's a member variable of some class or a global, then I reckon it should have a different naming convention.
You also call IsEmpty on the Coffee class rather than the instance of it, but maybe it has some static data associated with it. Everybody would be sharing the same coffee in that case.

I think I see what's happened though, halfway through programming the programming function you ran out of coffee. I can then only assume that there was an unhandled exception that left the programmer in an undefined state.
GeneralThought of the Day Pin
PhilLenoir17-Mar-15 3:21
professionalPhilLenoir17-Mar-15 3:21 
GeneralRe: Thought of the Day Pin
RUs12317-Mar-15 3:44
RUs12317-Mar-15 3:44 
GeneralRe: Thought of the Day Pin
PhilLenoir17-Mar-15 4:01
professionalPhilLenoir17-Mar-15 4:01 
GeneralRe: Thought of the Day Pin
HobbyProggy17-Mar-15 4:06
professionalHobbyProggy17-Mar-15 4:06 
GeneralRe: Thought of the Day Pin
PhilLenoir17-Mar-15 4:17
professionalPhilLenoir17-Mar-15 4:17 
GeneralRe: Thought of the Day Pin
Jarek Kruza17-Mar-15 4:18
Jarek Kruza17-Mar-15 4:18 
GeneralRe: Thought of the Day Pin
HobbyProggy17-Mar-15 4:28
professionalHobbyProggy17-Mar-15 4:28 
GeneralRe: Thought of the Day Pin
Jarek Kruza17-Mar-15 4:33
Jarek Kruza17-Mar-15 4:33 
GeneralRe: Thought of the Day Pin
HobbyProggy17-Mar-15 4:36
professionalHobbyProggy17-Mar-15 4:36 
GeneralRe: Thought of the Day Pin
Mike Hankey17-Mar-15 4:10
mveMike Hankey17-Mar-15 4:10 
GeneralRe: Thought of the Day Pin
PhilLenoir17-Mar-15 4:19
professionalPhilLenoir17-Mar-15 4:19 
GeneralRe: Thought of the Day Pin
Mike Hankey17-Mar-15 4:48
mveMike Hankey17-Mar-15 4:48 
GeneralRe: Thought of the Day Pin
PhilLenoir17-Mar-15 4:51
professionalPhilLenoir17-Mar-15 4:51 
GeneralRe: Thought of the Day Pin
OriginalGriff17-Mar-15 5:16
mveOriginalGriff17-Mar-15 5:16 
GeneralRe: Thought of the Day Pin
kmoorevs17-Mar-15 4:16
kmoorevs17-Mar-15 4:16 
GeneralRe: Thought of the Day Pin
R. Giskard Reventlov17-Mar-15 4:23
R. Giskard Reventlov17-Mar-15 4:23 
GeneralRe: Thought of the Day Pin
TheGreatAndPowerfulOz17-Mar-15 7:08
TheGreatAndPowerfulOz17-Mar-15 7:08 

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.