someone who does not trust arithmetic
-
Chris Maunder wrote:
That is called "Defensive Programming" Roll eyes
Is that because many, many, many military developers use such paradigms? :rolleyes:
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
bool foo(int n) { if (n > 16) return true; else if (n <= 16 && n>4) return false; else if (n <= 4) return true; }
Coding from scratch, I agree but it's late on deadline day when someone realises that the case of n<=4 no longer applies, these kind of things can happen.Russell Jones wrote:
bool foo(int n) { if (n > 16) return true; else if (n <= 16 && n>4) return false; else if (n <= 4) return true; }
But it too would be better though as:
bool foo(int n)
{
return ((n > 16) || (n <= 4));
} -
Chris Maunder wrote:
That is called "Defensive Programming" Roll eyes
Is that because many, many, many military developers use such paradigms? :rolleyes:
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]Because the developer says, "I was told to do it that way."
-
Because the developer says, "I was told to do it that way."
Indeed. :-D
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Because the developer says, "I was told to do it that way."
PIEBALDconsult wrote:
Because the developer says, "I was told to do it that way."
If this is defensive programming, there must also be offensive programming and I'd kill them all - programming - because there are a lot of people out there (they call themselves also programmers, so be careful.. :-D) who give a damn on what someone else is saying, even if it might be their boss. They stick to their bad coding habits regardless of what's happening around them... Regards Thomas
_Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Programmer - an organism that turns coffee into software._
-
PIEBALDconsult wrote:
Because the developer says, "I was told to do it that way."
If this is defensive programming, there must also be offensive programming and I'd kill them all - programming - because there are a lot of people out there (they call themselves also programmers, so be careful.. :-D) who give a damn on what someone else is saying, even if it might be their boss. They stick to their bad coding habits regardless of what's happening around them... Regards Thomas
_Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Programmer - an organism that turns coffee into software._
-
http://gradha.sdf-eu.org/textos/klingon_programmer.en.html[^]
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots. -- Robert Royall
:laugh: :laugh: :laugh: Great stuff!! Regards Thomas
_Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Programmer - an organism that turns coffee into software._
-
http://gradha.sdf-eu.org/textos/klingon_programmer.en.html[^]
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots. -- Robert Royall
Too good. :laugh:
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
I've processed that code with WinZip. The result is:
bool foo(int n) { return (n > 16); }
modified on Tuesday, November 4, 2008 4:34 PM
-
http://gradha.sdf-eu.org/textos/klingon_programmer.en.html[^]
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots. -- Robert Royall
dan neely wrote:
http://gradha.sdf-eu.org/textos/klingon\_programmer.en.html\[^\]
One of those sounds too familiar - on our team comments are generally frowned on - especially those that may document the parameters of a function. The boss' logic? Comments frequently aren't maintained so end up out-of-date. I'm not sure about this one - I get his point, but I'd rather see a slightly off-topic comment (and correct it when I realised) than have to work out everything's purpose from scratch the first time its encountered (or when sufficient time has passed since you last looked). Then again, there seem to be no concerns about line length either. I've encountered lines of code over 1000 characters wide, so not only are there no comments, but I have to keep scrolling sideways to see the code itself. Often, the most important work is done by a function call hidden away a few screens beyond my screen estate.
-
dan neely wrote:
http://gradha.sdf-eu.org/textos/klingon\_programmer.en.html\[^\]
One of those sounds too familiar - on our team comments are generally frowned on - especially those that may document the parameters of a function. The boss' logic? Comments frequently aren't maintained so end up out-of-date. I'm not sure about this one - I get his point, but I'd rather see a slightly off-topic comment (and correct it when I realised) than have to work out everything's purpose from scratch the first time its encountered (or when sufficient time has passed since you last looked). Then again, there seem to be no concerns about line length either. I've encountered lines of code over 1000 characters wide, so not only are there no comments, but I have to keep scrolling sideways to see the code itself. Often, the most important work is done by a function call hidden away a few screens beyond my screen estate.
Dear Sir/Madam, My name is Mr.Kofi Ado, the branch manager of a bank here in Ghana. I am searching for a reliable,honest and a trustworthy person to entrust some huge sum of funds upon.I am a Ghanaian married with two kids. I am writing to solicit for your assistance to assist me transfer the sum of $9,550,000.00 Nine Million Five Hundred and fifty Thousand United States dollars only into his/her account for safety. These funds were the excess of what my branch in which am the manager made as profit during the 2006 financial year. I have already submitted annual report for that year to my head office here in Accra as I have watched with keen interest as they will never know of this excess.I have since, placed this amount of $ 9,550,000.00( Nine Million five hundred and fifty thousand United States dollars) only to an Escrow Coded account without a beneficiary (anonymous) to avoid trace. As an officer of the bank, I cannot be directly connected to this money thus I am impelled to request for your assistance to receive this money into your bank account on my behalf. I intend to part 30% of this fund to you while 70% shall be for me. I do need to stress that there are practically no risk involved in this. It's going to be a bank-to-bank transfer. All I needed from you is to stand as the original depositor of this fund so that the funds can be transferred to your account. If you accept this offer, please write to me at kofiado@hotmail.com for more details. I will appreciate your timely response. Mr.Kofi Ado
-
Dear Sir/Madam, My name is Mr.Kofi Ado, the branch manager of a bank here in Ghana. I am searching for a reliable,honest and a trustworthy person to entrust some huge sum of funds upon.I am a Ghanaian married with two kids. I am writing to solicit for your assistance to assist me transfer the sum of $9,550,000.00 Nine Million Five Hundred and fifty Thousand United States dollars only into his/her account for safety. These funds were the excess of what my branch in which am the manager made as profit during the 2006 financial year. I have already submitted annual report for that year to my head office here in Accra as I have watched with keen interest as they will never know of this excess.I have since, placed this amount of $ 9,550,000.00( Nine Million five hundred and fifty thousand United States dollars) only to an Escrow Coded account without a beneficiary (anonymous) to avoid trace. As an officer of the bank, I cannot be directly connected to this money thus I am impelled to request for your assistance to receive this money into your bank account on my behalf. I intend to part 30% of this fund to you while 70% shall be for me. I do need to stress that there are practically no risk involved in this. It's going to be a bank-to-bank transfer. All I needed from you is to stand as the original depositor of this fund so that the funds can be transferred to your account. If you accept this offer, please write to me at kofiado@hotmail.com for more details. I will appreciate your timely response. Mr.Kofi Ado
-
Dear Sir/Madam, My name is Mr.Kofi Ado, the branch manager of a bank here in Ghana. I am searching for a reliable,honest and a trustworthy person to entrust some huge sum of funds upon.I am a Ghanaian married with two kids. I am writing to solicit for your assistance to assist me transfer the sum of $9,550,000.00 Nine Million Five Hundred and fifty Thousand United States dollars only into his/her account for safety. These funds were the excess of what my branch in which am the manager made as profit during the 2006 financial year. I have already submitted annual report for that year to my head office here in Accra as I have watched with keen interest as they will never know of this excess.I have since, placed this amount of $ 9,550,000.00( Nine Million five hundred and fifty thousand United States dollars) only to an Escrow Coded account without a beneficiary (anonymous) to avoid trace. As an officer of the bank, I cannot be directly connected to this money thus I am impelled to request for your assistance to receive this money into your bank account on my behalf. I intend to part 30% of this fund to you while 70% shall be for me. I do need to stress that there are practically no risk involved in this. It's going to be a bank-to-bank transfer. All I needed from you is to stand as the original depositor of this fund so that the funds can be transferred to your account. If you accept this offer, please write to me at kofiado@hotmail.com for more details. I will appreciate your timely response. Mr.Kofi Ado
Oh please not in this place, software developers are people that normally use their brains... :doh:
_Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Programmer - an organism that turns coffee into software._
-
Dear Sir/Madam, My name is Mr.Kofi Ado, the branch manager of a bank here in Ghana. I am searching for a reliable,honest and a trustworthy person to entrust some huge sum of funds upon.I am a Ghanaian married with two kids. I am writing to solicit for your assistance to assist me transfer the sum of $9,550,000.00 Nine Million Five Hundred and fifty Thousand United States dollars only into his/her account for safety. These funds were the excess of what my branch in which am the manager made as profit during the 2006 financial year. I have already submitted annual report for that year to my head office here in Accra as I have watched with keen interest as they will never know of this excess.I have since, placed this amount of $ 9,550,000.00( Nine Million five hundred and fifty thousand United States dollars) only to an Escrow Coded account without a beneficiary (anonymous) to avoid trace. As an officer of the bank, I cannot be directly connected to this money thus I am impelled to request for your assistance to receive this money into your bank account on my behalf. I intend to part 30% of this fund to you while 70% shall be for me. I do need to stress that there are practically no risk involved in this. It's going to be a bank-to-bank transfer. All I needed from you is to stand as the original depositor of this fund so that the funds can be transferred to your account. If you accept this offer, please write to me at kofiado@hotmail.com for more details. I will appreciate your timely response. Mr.Kofi Ado
I have some $20 Mil Oceanfront Property in Arizona for sale if you're interested.
-
I have some $20 Mil Oceanfront Property in Arizona for sale if you're interested.
Don't you try and sell him something! - you may offend him. He wants to donate without having any earthly reward for it (like your ridiculous 'Oceanfront Property in Arizona')... :laugh: Regards
_Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Programmer - an organism that turns coffee into software._
-
Dear Sir/Madam, My name is Mr.Kofi Ado, the branch manager of a bank here in Ghana. I am searching for a reliable,honest and a trustworthy person to entrust some huge sum of funds upon.I am a Ghanaian married with two kids. I am writing to solicit for your assistance to assist me transfer the sum of $9,550,000.00 Nine Million Five Hundred and fifty Thousand United States dollars only into his/her account for safety. These funds were the excess of what my branch in which am the manager made as profit during the 2006 financial year. I have already submitted annual report for that year to my head office here in Accra as I have watched with keen interest as they will never know of this excess.I have since, placed this amount of $ 9,550,000.00( Nine Million five hundred and fifty thousand United States dollars) only to an Escrow Coded account without a beneficiary (anonymous) to avoid trace. As an officer of the bank, I cannot be directly connected to this money thus I am impelled to request for your assistance to receive this money into your bank account on my behalf. I intend to part 30% of this fund to you while 70% shall be for me. I do need to stress that there are practically no risk involved in this. It's going to be a bank-to-bank transfer. All I needed from you is to stand as the original depositor of this fund so that the funds can be transferred to your account. If you accept this offer, please write to me at kofiado@hotmail.com for more details. I will appreciate your timely response. Mr.Kofi Ado
Mister Kofi Ado, If you have 9,5 mil (nine and a half million) that you want to get rid off... share it with the codeproject community, we will be very happy with your money you want anything in return? I'm sure we can provide you a good program that helps you spamming messageboards. (but we can't garantee bugs that might f**k up your pc)
<< Nearly all men can stand adversity, but if you want to test a man's character, give him power. >>
-
Dear Sir/Madam, My name is Mr.Kofi Ado, the branch manager of a bank here in Ghana. I am searching for a reliable,honest and a trustworthy person to entrust some huge sum of funds upon.I am a Ghanaian married with two kids. I am writing to solicit for your assistance to assist me transfer the sum of $9,550,000.00 Nine Million Five Hundred and fifty Thousand United States dollars only into his/her account for safety. These funds were the excess of what my branch in which am the manager made as profit during the 2006 financial year. I have already submitted annual report for that year to my head office here in Accra as I have watched with keen interest as they will never know of this excess.I have since, placed this amount of $ 9,550,000.00( Nine Million five hundred and fifty thousand United States dollars) only to an Escrow Coded account without a beneficiary (anonymous) to avoid trace. As an officer of the bank, I cannot be directly connected to this money thus I am impelled to request for your assistance to receive this money into your bank account on my behalf. I intend to part 30% of this fund to you while 70% shall be for me. I do need to stress that there are practically no risk involved in this. It's going to be a bank-to-bank transfer. All I needed from you is to stand as the original depositor of this fund so that the funds can be transferred to your account. If you accept this offer, please write to me at kofiado@hotmail.com for more details. I will appreciate your timely response. Mr.Kofi Ado
Dabi dabi dabi. Me nim wo, Kofi Ado. Wo n'ye.
-
Dear Sir/Madam, My name is Mr.Kofi Ado, the branch manager of a bank here in Ghana. I am searching for a reliable,honest and a trustworthy person to entrust some huge sum of funds upon.I am a Ghanaian married with two kids. I am writing to solicit for your assistance to assist me transfer the sum of $9,550,000.00 Nine Million Five Hundred and fifty Thousand United States dollars only into his/her account for safety. These funds were the excess of what my branch in which am the manager made as profit during the 2006 financial year. I have already submitted annual report for that year to my head office here in Accra as I have watched with keen interest as they will never know of this excess.I have since, placed this amount of $ 9,550,000.00( Nine Million five hundred and fifty thousand United States dollars) only to an Escrow Coded account without a beneficiary (anonymous) to avoid trace. As an officer of the bank, I cannot be directly connected to this money thus I am impelled to request for your assistance to receive this money into your bank account on my behalf. I intend to part 30% of this fund to you while 70% shall be for me. I do need to stress that there are practically no risk involved in this. It's going to be a bank-to-bank transfer. All I needed from you is to stand as the original depositor of this fund so that the funds can be transferred to your account. If you accept this offer, please write to me at kofiado@hotmail.com for more details. I will appreciate your timely response. Mr.Kofi Ado
Sounds tempting, however it occurs to me that if you're smart enough to steal that much from your company, then you're smart enough to cheat me out of my share, so just eff off.
-
Dear Sir/Madam, My name is Mr.Kofi Ado, the branch manager of a bank here in Ghana. I am searching for a reliable,honest and a trustworthy person to entrust some huge sum of funds upon.I am a Ghanaian married with two kids. I am writing to solicit for your assistance to assist me transfer the sum of $9,550,000.00 Nine Million Five Hundred and fifty Thousand United States dollars only into his/her account for safety. These funds were the excess of what my branch in which am the manager made as profit during the 2006 financial year. I have already submitted annual report for that year to my head office here in Accra as I have watched with keen interest as they will never know of this excess.I have since, placed this amount of $ 9,550,000.00( Nine Million five hundred and fifty thousand United States dollars) only to an Escrow Coded account without a beneficiary (anonymous) to avoid trace. As an officer of the bank, I cannot be directly connected to this money thus I am impelled to request for your assistance to receive this money into your bank account on my behalf. I intend to part 30% of this fund to you while 70% shall be for me. I do need to stress that there are practically no risk involved in this. It's going to be a bank-to-bank transfer. All I needed from you is to stand as the original depositor of this fund so that the funds can be transferred to your account. If you accept this offer, please write to me at kofiado@hotmail.com for more details. I will appreciate your timely response. Mr.Kofi Ado
Dear Mr.Kofi Ado, I've really very interested in you proposal, unfortunately I'm unreliable, dishonest and absolutely NOT trustworthy (you know, drugz...). Anyway I beg you, since badly need your money! :-D
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Oh c'mon: Use
return (n > 16);
and don't even consider thinking... :zzz: Regards ThomasIndeed..what thought is required to come to that conclusion??