Why do some people code at all?
-
Nah - CEO's only code in Excel.
Deja View - the feeling that you've seen this post before.
-
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:public bool AskForSureBox(string Message, string Title) { MessageBox.Show(Message, Title, MessageBoxButtons.YesNo); if (DialogResult.Yes.ToString() == "Yes") return true; else return false; }
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!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 !
-
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:public bool AskForSureBox(string Message, string Title) { MessageBox.Show(Message, Title, MessageBoxButtons.YesNo); if (DialogResult.Yes.ToString() == "Yes") return true; else return false; }
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!Well at least it wasn't simply copied and pasted from a disc that came with a book.
-
Here is another good one int a = 5; if (a == a) { a = a + 1; } :wtf:
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.
-
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:public bool AskForSureBox(string Message, string Title) { MessageBox.Show(Message, Title, MessageBoxButtons.YesNo); if (DialogResult.Yes.ToString() == "Yes") return true; else return false; }
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!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.
-
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:public bool AskForSureBox(string Message, string Title) { MessageBox.Show(Message, Title, MessageBoxButtons.YesNo); if (DialogResult.Yes.ToString() == "Yes") return true; else return false; }
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!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."
-
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."
-
-
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:public bool AskForSureBox(string Message, string Title) { MessageBox.Show(Message, Title, MessageBoxButtons.YesNo); if (DialogResult.Yes.ToString() == "Yes") return true; else return false; }
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!it's brilliant on so many levels. always good to have a laugh on a friday afternoon. Russ
-
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:public bool AskForSureBox(string Message, string Title) { MessageBox.Show(Message, Title, MessageBoxButtons.YesNo); if (DialogResult.Yes.ToString() == "Yes") return true; else return false; }
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!Here is my version :->
private bool AskForSureBox(string Message) { return MessageBox.Show(Message, "Are you sure?", MessageBoxButtons.YesNo) == DialogResult.Yes; }
I just couldn't see passingTitle
as a parameter, and it is nice that there is no decisions to branch on. Clean execution path of this code :-D -
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:public bool AskForSureBox(string Message, string Title) { MessageBox.Show(Message, Title, MessageBoxButtons.YesNo); if (DialogResult.Yes.ToString() == "Yes") return true; else return false; }
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!Think differently means this is the one.
Regards, Sylvester G sylvester_g_m@yahoo.com