|
I was under the impression that you had taken offence to people taking the piss (which is censorship that the Lounge can do without), but as that's not the case, forget I spoke.
Unbunch yourself about people voting abuse, though. It's the interwebs; it's got a full complement of wankers, and it's not worth the effort of caring what they do or say.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Bergholt Stuttley Johnson wrote: makes me vomit I feel the same way about oatmeal. The smell and/or sight of it makes me autonomically physically hurl. Its very texture, viscous & glutinous, makes my skin crawl and induces violent paroxysms of the stomach.
#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
|
|
|
|
|
What do you expect from someone whose last name is a nickname for a certain male appendage?
#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
|
|
|
|
|
"Johnson"?
Don't they make wax, that you rub on, rub off?
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
define Johnson[^]
#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
|
|
|
|
|
Er, yeah.
You kinda missed the follow-up element.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Only if you're a foreigner
You cant outrun the world, but there is no harm in getting a head start
Real stupidity beats artificial intelligence every time.
|
|
|
|
|
#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
|
|
|
|
|
The best part of waking up, is Folgers in your cup.
|
|
|
|
|
I see a couple of bugs in your code:
- There should either be a wait call after launching the sendSomeone asynchronous call (or maybe it's a blocking call?) or you should return null
- If the GetRandomProgrammer call returns null or fails to return, you need to trap the error/time out and return null
- Alternately you make a call to getOffYourLazyButtAndGetYourOwn method
Life is like a s**t sandwich; the more bread you have, the less s**t you eat.
|
|
|
|
|
PhilLenoir wrote: There should either be a wait call after launching the sendSomeone asynchronous call (or maybe it's a blocking call?) It obviously IS a blocking call - it wouldn't make sense to make it async, because all you could do while waiting for the asyncresult (coffee) is a spinningwait
Recursion: see Recursion.
|
|
|
|
|
Isn't that up to the caller? I think it reasonable to get a null return if there's no coffee.
Life is like a s**t sandwich; the more bread you have, the less s**t you eat.
|
|
|
|
|
Only coffee-addicts would write this function in the first place
Recursion: see Recursion.
|
|
|
|
|
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! 
|
|
|
|