Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. someone who does not trust arithmetic

someone who does not trust arithmetic

Scheduled Pinned Locked Moved The Weird and The Wonderful
35 Posts 20 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P PIEBALDconsult

    Because the developer says, "I was told to do it that way."

    C Offline
    C Offline
    CPallini
    wrote on last edited by
    #14

    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]

    1 Reply Last reply
    0
    • P PIEBALDconsult

      Because the developer says, "I was told to do it that way."

      T Offline
      T Offline
      Thomas Weller 0
      wrote on last edited by
      #15

      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._

      D 1 Reply Last reply
      0
      • T Thomas Weller 0

        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._

        D Offline
        D Offline
        Dan Neely
        wrote on last edited by
        #16

        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

        T C R 3 Replies Last reply
        0
        • D Dan Neely

          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

          T Offline
          T Offline
          Thomas Weller 0
          wrote on last edited by
          #17

          :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._

          1 Reply Last reply
          0
          • D Dan Neely

            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

            C Offline
            C Offline
            CPallini
            wrote on last edited by
            #18

            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]

            1 Reply Last reply
            0
            • V Vincenzo Rossi

              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

              L Offline
              L Offline
              leppie
              wrote on last edited by
              #19

              Vincenzo Rossi wrote:

              I've processed that code with WinZip.

              I used my brain and got:

              n > 16

              :)

              xacc.ide - now with TabsToSpaces support
              IronScheme - 1.0 beta 1 - out now!
              ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))

              V 1 Reply Last reply
              0
              • D Dan Neely

                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

                R Offline
                R Offline
                Rob Grainger
                wrote on last edited by
                #20

                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.

                K C 2 Replies Last reply
                0
                • R Rob Grainger

                  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.

                  K Offline
                  K Offline
                  kofiado
                  wrote on last edited by
                  #21

                  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

                  P T J N A 7 Replies Last reply
                  0
                  • K kofiado

                    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

                    P Offline
                    P Offline
                    PJ Arends
                    wrote on last edited by
                    #22

                    Pick me please, I could use the money! But lets do this off the forum. Send me your details at AnIdiot@Morons.com[^]


                    You may be right I may be crazy -- Billy Joel -- Within you lies the power for good - Use it!

                    1 Reply Last reply
                    0
                    • K kofiado

                      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

                      T Offline
                      T Offline
                      Thomas Weller 0
                      wrote on last edited by
                      #23

                      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._

                      1 Reply Last reply
                      0
                      • K kofiado

                        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

                        J Offline
                        J Offline
                        Jason Lepack LeppyR64
                        wrote on last edited by
                        #24

                        I have some $20 Mil Oceanfront Property in Arizona for sale if you're interested.

                        T 1 Reply Last reply
                        0
                        • J Jason Lepack LeppyR64

                          I have some $20 Mil Oceanfront Property in Arizona for sale if you're interested.

                          T Offline
                          T Offline
                          Thomas Weller 0
                          wrote on last edited by
                          #25

                          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._

                          1 Reply Last reply
                          0
                          • K kofiado

                            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

                            N Offline
                            N Offline
                            NikoTanghe
                            wrote on last edited by
                            #26

                            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. >>

                            1 Reply Last reply
                            0
                            • K kofiado

                              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

                              A Offline
                              A Offline
                              Andrew Rissing
                              wrote on last edited by
                              #27

                              Dabi dabi dabi. Me nim wo, Kofi Ado. Wo n'ye.

                              1 Reply Last reply
                              0
                              • K kofiado

                                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

                                R Offline
                                R Offline
                                Rob Graham
                                wrote on last edited by
                                #28

                                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.

                                1 Reply Last reply
                                0
                                • K kofiado

                                  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

                                  C Offline
                                  C Offline
                                  CPallini
                                  wrote on last edited by
                                  #29

                                  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]

                                  1 Reply Last reply
                                  0
                                  • T Thomas Weller 0

                                    Oh c'mon: Use return (n > 16); and don't even consider thinking... :zzz: Regards Thomas

                                    C Offline
                                    C Offline
                                    cpkilekofp
                                    wrote on last edited by
                                    #30

                                    Indeed..what thought is required to come to that conclusion??

                                    1 Reply Last reply
                                    0
                                    • C Chris Maunder

                                      That is called "Defensive Programming" :rolleyes:

                                      cheers, Chris Maunder

                                      CodeProject.com : C++ MVP

                                      C Offline
                                      C Offline
                                      cpkilekofp
                                      wrote on last edited by
                                      #31

                                      I believe the phrase "Cowardly Programming" would be more apt...defending against problems that just aren't there.

                                      1 Reply Last reply
                                      0
                                      • R Rob Grainger

                                        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.

                                        C Offline
                                        C Offline
                                        cpkilekofp
                                        wrote on last edited by
                                        #32

                                        Phht..this boss was not a true Klingon...The True Klingon boss I once worked for would say "You didn't update the comments? A pity, I thought you LIKED your job..."

                                        1 Reply Last reply
                                        0
                                        • L leppie

                                          Vincenzo Rossi wrote:

                                          I've processed that code with WinZip.

                                          I used my brain and got:

                                          n > 16

                                          :)

                                          xacc.ide - now with TabsToSpaces support
                                          IronScheme - 1.0 beta 1 - out now!
                                          ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))

                                          V Offline
                                          V Offline
                                          Vincenzo Rossi
                                          wrote on last edited by
                                          #33

                                          I could surrender, but often human beings are stupid and proud. So I must reply... Hmmm, ok.. 1. this expression cannot be used as callback funcion 2. If you use that expression in many place of your code, instead of using a central function, you have to change the literal 16 in all places. Use a costant at least. 3. Why not waste some stack space? ahah ;-) Greetings Vin

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups