|
Rick York wrote: If you can't highlight the few letters of a URL and click 'link' I think you shouldn't bother posting a URL.
I ditto that. Posting a clickety isn't all that tough to do
|
|
|
|
|
In good forums I'm used to log in, when you post a URL, it is automatically parsed and made clickable. Perhaps a matter of forum settings, I don't know...
Kochise
In Code we trust !
|
|
|
|
|
Not long ago my company hired another software company to develop a tool for us, because we didn't have the resources to do it ourselves at that time. After they delivered several versions that were all buggy and did not work properly we took the code and I had to finish it. Some endless loops and horrible try { ... } catch { // do nothing here } later I discovered the following beauty in the code:
<br />
<br />
public bool AskForSureBox(string Message, string Title)<br />
{<br />
MessageBox.Show(Message, Title, MessageBoxButtons.YesNo);<br />
if (DialogResult.Yes.ToString() == "Yes")<br />
return true;<br />
else<br />
return false;<br />
}<br />
<br />
I afterwards took the liberty to write to the CEO of that company, asking him how long the programmer who wrote the code was already coding for his company...
Until today I didn't get an answer.
Have fun coding!
|
|
|
|
|
Thanks for sharing this beauty.
It has give me hope to crawl to the rest of my day
codito ergo sum
|
|
|
|
|
Optimus Chaos wrote: I afterwards took the liberty to write to the CEO of that company, asking him how long the programmer who wrote the code was already coding for his company...
Until today I didn't get an answer.
and let me guess, the person responsible is the ceo's favorite child.
--
You have to explain to them [VB coders] what you mean by "typed". their first response is likely to be something like, "Of course my code is typed. Do you think i magically project it onto the screen with the power of my mind?" --- John Simmons / outlaw programmer
|
|
|
|
|
It was probably the CEO who wrote it!
|
|
|
|
|
Nah - CEO's only code in Excel.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Here is another good one
int a = 5;
if (a == a) {
a = a + 1;
}
There are 10 types of people in the world, those who understand binary and those who dont.
|
|
|
|
|
Thanks for sharing that..I got one hell of a laugh outta it. Even my 16 y.o. non-programming son knew it was screwed.
Mike
Light travels faster than sound. That's why some people appear right until you hear them speak.
|
|
|
|
|
See http://www.codeproject.com/lounge.asp?msg=2029905#xx2029905xx !
Answer : because there is even more inefficient architects/managers that hire them...
Kochise
In Code we trust !
|
|
|
|
|
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.
|
|
|
|