|
Well at least it wasn't simply copied and pasted from a disc that came with a book.
|
|
|
|
|
Yet another Gem to prove that there are some people out there that should choose another career!
Mike
Light travels faster than sound. That's why some people appear right until you hear them speak.
|
|
|
|
|
Simple Ans to the Q? ,
May be u r company paying them on the basis of , line count ( i hope u people have better code line count tool which skip spaces;) )
Warm Regards
BAIJUMAX
"Its Hard To Find Right & Wrong In This World , Simply Everything Is Relative."
|
|
|
|
|
Read it again - the return value is *always* going to be true.
Cheers,
Vıkram.
Déjà moo - The feeling that you've seen this bull before.
Join the CP group at NationStates. Password: byalmightybob
|
|
|
|
|
Ohhhhhhh that's right , perhaps didn't notice this statement "DialogResult.Yes.ToString() == "Yes""
|
|
|
|
|
it's brilliant on so many levels.
always good to have a laugh on a friday afternoon.
Russ
|
|
|
|
|
Here is my version :->
private bool AskForSureBox(string Message)<br />
{<br />
return MessageBox.Show(Message, "Are you sure?", MessageBoxButtons.YesNo) == DialogResult.Yes;<br />
}
I just couldn't see passing Title as a parameter, and it is nice that there is no decisions to branch on. Clean execution path of this code
|
|
|
|
|
Think differently means this is the one.
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
"Don't bother with it, waste of time."
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Uhhhh, no?
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy) "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
|
|
|
|
|
Sometimes, IMHO, it is... (Javascript strong typing is a crap; eveyone here will disagree, I know, but I don't bother about...).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
I'm waiting for strongly typed JS. Bring on the code complete!
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Then you don't need to wait anymore. They [^] have already done it.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Doesn't look like it's cross platform.
:S
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
You cry for the moon!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
"Well yes, it is an Integer, but it's a metrosexual Integer. For all we know, under all that hair gel it could be a Boolean."
A severed foot is the ultimate stocking stuffer.
- Mitch Hedberg
|
|
|
|
|
Tom Welch wrote: "Well yes, it is an Integer, but it's a metrosexual Integer. For all we know, under all that hair gel it could be a Boolean."
"All things strings can become, code that way why not should we, hmmmmmmmmmmmmmmmmmmm?"
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy) "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
|
|
|
|
|
Tom Welch wrote: it is an Integer, but it's a metrosexual Integer. For all we know, under all that hair gel it could be a Boolean
|
|
|
|
|
There's no such thing as strong typing. It's all just a bunch of 1s and 0s.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Pete O`Hanlon wrote: There's no such thing as strong typing. It's all just a bunch of 1s and 0s.
Blah blah blah...Im really old...blah blah blah...mainframe mainframe mainframe...
-- modified at 8:50 Monday 7th May, 2007
Wow I marked it as a joke...
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy) "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
|
|
|
|
|
Wrong! Unless you are talking about how hard you hit the keys on your keyboard.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
Errm - I'm not sure if you are being subtly ironic here, or you missed the joke icon on my post. I'll give you the benefit of the doubt and go with subtly ironic.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
My boss is pretty hard on his keyboard. (Must be compensation.)
|
|
|
|
|
What are you talking about?
If you are talking about variable type checking in C++, then you are wrong. I wish C was as tight with its type checking. Then again I wish C would allow me to declare a variable where ever I wanted too, instead of forcing me to create a new scope.
P.S. I liked C, but I love C++.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
John R. Shaw wrote: What are you talking about?
I am not sure either...
|
|
|
|