How programmers should think!
-
At an interview, a programmer is asked what he would do if the microwave would catch fire. He says he would throw it out the window. Baffled, the interviewer asks "okay, what if the coffee brewer catches fire?" And the programmer replies "Put it in the microwave and throw it out the window, as we already have a solution for that problem."
he would do nothing - its a hardware problem
You cant outrun the world, but there is no harm in getting a head start Real stupidity beats artificial intelligence every time.
-
Oso Oluwafemi Ebenezer wrote:
coffee brewer catches fire?
Oso Oluwafemi Ebenezer wrote:
and throw it out the window
:wtf: you can not throw :java: out the window!
if(this.signature != "") { MessageBox.Show("This is my signature: " + Environment.NewLine + signature); } else { MessageBox.Show("404-Signature not found"); }
You can throw burnt coffee out the window.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
-
that's easy, you run outside and retrieve the old microwave - then put the coffee machine in it, you are not thinking the problem through
You cant outrun the world, but there is no harm in getting a head start Real stupidity beats artificial intelligence every time.
But what if your on the 12th floor? do you run really fast?
Every day, thousands of innocent plants are killed by vegetarians. Help end the violence EAT BACON
-
But what if your on the 12th floor? do you run really fast?
Every day, thousands of innocent plants are killed by vegetarians. Help end the violence EAT BACON
No I am programmer, I don't run fast
You cant outrun the world, but there is no harm in getting a head start Real stupidity beats artificial intelligence every time.
-
Oso Oluwafemi Ebenezer wrote:
coffee brewer catches fire?
Oso Oluwafemi Ebenezer wrote:
and throw it out the window
:wtf: you can not throw :java: out the window!
if(this.signature != "") { MessageBox.Show("This is my signature: " + Environment.NewLine + signature); } else { MessageBox.Show("404-Signature not found"); }
You can if your language's "object" definition supports IDefenestratable - most real world modelling systems do :-)
-
A good example of encapsulation.
I'd rather be phishing!
*Handling exception in encapsulated classes.
-
I think it's already on fire!
-
You can if your language's "object" definition supports IDefenestratable - most real world modelling systems do :-)
-
that's easy, you run outside and retrieve the old microwave - then put the coffee machine in it, you are not thinking the problem through
You cant outrun the world, but there is no harm in getting a head start Real stupidity beats artificial intelligence every time.
-
At an interview, a programmer is asked what he would do if the microwave would catch fire. He says he would throw it out the window. Baffled, the interviewer asks "okay, what if the coffee brewer catches fire?" And the programmer replies "Put it in the microwave and throw it out the window, as we already have a solution for that problem."
Good solution, incorporating the principles of both re-usability and encapsulation.
Will Rogers never met me.
-
I like it - thanks.
-
he would do nothing - its a hardware problem
You cant outrun the world, but there is no harm in getting a head start Real stupidity beats artificial intelligence every time.
That's more funnier than the joke! :laugh: :thumbsup:
Your time will come, if you let it be right.
-
But what if your on the 12th floor? do you run really fast?
Every day, thousands of innocent plants are killed by vegetarians. Help end the violence EAT BACON
Who said speed matters? That'd be premature optimization. ;P Of course, you could simply install a spare microwave to catch the exception.
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)
-
Who said speed matters? That'd be premature optimization. ;P Of course, you could simply install a spare microwave to catch the exception.
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)
Clearly not a real-time programmer then! It's not a question of optimization, it's a question of a race condition.
Life is like a s**t sandwich; the more bread you have, the less s**t you eat.