|
That's a fatal exception. The system is in unrecoverable state until a technician is sent with a proper supply of coffee.
Geek code v 3.12
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- r++>+++ y+++*
Weapons extension: ma- k++ F+2 X
// No comment
|
|
|
|
|
manchanx wrote: all you could do while waiting for the asyncresult (coffee) is a spinningwait
Normally without coffee I sleep()
Geek code v 3.12
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- r++>+++ y+++*
Weapons extension: ma- k++ F+2 X
// No comment
|
|
|
|
|
The problem with sleep() is, you are likely to miss the point of coffee-availability and then run into the coffee.IsEmpty-Branch again
Recursion: see Recursion.
|
|
|
|
|
You're right: it's better to SleepEx(.., TRUE) to make it an alertable sleep [Win32 API only].
Geek code v 3.12
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- r++>+++ y+++*
Weapons extension: ma- k++ F+2 X
// No comment
|
|
|
|
|
As I understand
1) It is a blocking call. No work can be safely done unless properly caffeinated.
2 and 3) GetRandomProgrammer returns the caller if non is available, so that sendSomeone is idempotent to a getOffYourLazyButtAndGetYourOwn function.
Geek code v 3.12
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- r++>+++ y+++*
Weapons extension: ma- k++ F+2 X
// No comment
|
|
|
|
|
1) Doesn't it depend on if the promise of coffee is sufficient to continue to code(which, of course, depends on time since last coffee), thus allowing for multitasking. I guess you'd then need an interrupt handler or callback function to handle the coffee delivery update.
2) and 3) - I like that.
Life is like a s**t sandwich; the more bread you have, the less s**t you eat.
|
|
|
|
|
It is safer not to code while under-caffeinated, it tends to give unreliable results. On the contrary, attempts to access an IDE or a compiler during coffe-abstinence should be avoided at all costs
Geek code v 3.12
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- r++>+++ y+++*
Weapons extension: ma- k++ F+2 X
// No comment
|
|
|
|
|
Which is why, for peak efficiency, a coder should be caffeinated before reaching minimum level. This would allow for asynchronous handling of coffee delivery.
In fact one might argue that drinking coffee is not a function of coding per se and that under-caffeination should be an event driven error condition.
Life is like a s**t sandwich; the more bread you have, the less s**t you eat.
|
|
|
|
|
Another problem with your code is that you don't make use of the Input parameter.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Quote: I see it's not funny
Damn right it's not funny. Coffee is brain fuel! It is not a joking matter. Zero coffee is like zero entropy: Nothing can ever happen.
|
|
|
|
|
actually its not brain food, its just an addictive drug that decreases performance when you are in withdrawal, once you kick the foul habit your performance will be as good if not better than you were after coffee.
your just a legal junkie, after they ban fags I am going to put coffee forward as the next target
You cant outrun the world, but there is no harm in getting a head start
Real stupidity beats artificial intelligence every time.
|
|
|
|
|
Quote: that decreases performance when you are in withdrawal
It's easy to avoid withdrawal: Keep drinking it through the day!
|
|
|
|
|
I think there is a term for that, oh yes, an addict that's it
You cant outrun the world, but there is no harm in getting a head start
Real stupidity beats artificial intelligence every time.
|
|
|
|
|
Quote: I think there is a term for that, oh yes, an addict that's it
No argument from me, but there are far worse things to be addicted to!
I am at the stage of life where most culinary pleasures are taboo: I cannot eat sweet stuff, I cannot eat juicy steaks, I can only enjoy alcohol in strict moderation, I cannot eat butter on my bread, etc. etc.
If you think I'm giving up coffee as well: Dream on!
|
|
|
|
|
Thank God for available women, eh?
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Quote: Thank God for available women, eh
Oh yeah!
|
|
|
|
|
Bergholt Stuttley Johnson wrote: ban fags Too late. They're getting married now.
#SupportHeForShe If your actions inspire others to dream more, learn more, do more and become more, you are a leader.-John Q. Adams
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
Only 2 things are infinite, the universe and human stupidity, and I'm not sure about the former.-Albert Einstein
|
|
|
|
|
Careful! You may get banished to the Soapbox!
|
|
|
|
|
pfft
#SupportHeForShe If your actions inspire others to dream more, learn more, do more and become more, you are a leader.-John Q. Adams
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
Only 2 things are infinite, the universe and human stupidity, and I'm not sure about the former.-Albert Einstein
|
|
|
|
|
HEY, CHRIS! HE'S MAKING FART NOISES!
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Hey, now. It's anal music to you!
#SupportHeForShe If your actions inspire others to dream more, learn more, do more and become more, you are a leader.-John Q. Adams
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
Only 2 things are infinite, the universe and human stupidity, and I'm not sure about the former.-Albert Einstein
|
|
|
|
|
In whose general direction?
|
|
|
|
|
I can't smell anything, so it must be you.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Oh I thought that was the oft-heralded, "Warm smell of colitas, rising up through the air". :shrug:
|
|
|
|
|
Ah yes, Hotel California.
Joe Walsh's second-best album, after But Seriously, Folks.
The Eagles did a reasonably good job of supporting him, on that album.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|