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. The Lounge
  3. Bad Programmina analogy

Bad Programmina analogy

Scheduled Pinned Locked Moved The Lounge
question
25 Posts 18 Posters 1 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.
  • D Dan Neely

    *cough*noneuclideangeometry*cough*

    It is a truth universally acknowledged that a zombie in possession of brains must be in want of more brains. -- Pride and Prejudice and Zombies

    R Offline
    R Offline
    Rajesh R Subramanian
    wrote on last edited by
    #12

    dan neely wrote:

    *cough*noneuclideangeometry*cough*

    A cough before and after every word you type?! That sounds nasty. You must see a doctor. :)

    It is a crappy thing, but it's life -^ Carlo Pallini

    1 Reply Last reply
    0
    • L LittleYellowBird

      Dalek Dave wrote:

      Also of interest is the Feynman Point.

      But not as interesting as the Sticky Bead Argument :thumbsup:

      Ali

      H Offline
      H Offline
      hairy_hats
      wrote on last edited by
      #13

      Alison Pentland wrote:

      the Sticky Bead Argument

      Is that KSS? :laugh:

      L 1 Reply Last reply
      0
      • L leppie

        GriffinPeter wrote:

        should the value of pi change

        But how can they know? No-one has ever found an exact numerical representation of pi. How do you know it has changed, if you never knew previous the value?

        xacc.ide
        IronScheme - 1.0 beta 3 - out now!
        ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))

        C Offline
        C Offline
        Chris Maunder
        wrote on last edited by
        #14

        Exactly. It's only been calculated to a trillion digits, and if you hardcode that and then someone calculates it to a quadrillion then you're going to feel a little silly having to update the value of pi each place you hardcoded it.

        cheers, Chris Maunder The Code Project Co-founder Microsoft C++ MVP

        L 1 Reply Last reply
        0
        • C CARPETBURNER

          Now im not one for second guessing Xerox wanting to change the fundamental laws of the universe.. but.. The primary purpose of the DATA statement is to give names to constants; instead of referring to pi as 3.141592653589793 at every appearance, the variable PI can be given that value with a DATA statement and used instead of the longer form of the constant. This also simplifies modifying the program, should the value of pi change." - FORTRAN manual for Xerox computers ?????

          C Offline
          C Offline
          Chris Losinger
          wrote on last edited by
          #15

          sounds like a very dry joke, to me.

          image processing toolkits | batch image processing

          1 Reply Last reply
          0
          • M Mark_Wallace

            I always thought that 9 was a bit too much. Can you knock it down to 8.5 for me?

            I wanna be a eunuchs developer! Pass me a bread knife!

            D Offline
            D Offline
            Dario Solera
            wrote on last edited by
            #16

            No, sorry, I only work with integers. It must be either 8 or 9.

            If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Photos/CP Flickr Group - ScrewTurn Wiki

            1 Reply Last reply
            0
            • H hairy_hats

              Alison Pentland wrote:

              the Sticky Bead Argument

              Is that KSS? :laugh:

              L Offline
              L Offline
              LittleYellowBird
              wrote on last edited by
              #17

              :-O Of course!

              Ali

              1 Reply Last reply
              0
              • L LittleYellowBird

                Dalek Dave wrote:

                Also of interest is the Feynman Point.

                But not as interesting as the Sticky Bead Argument :thumbsup:

                Ali

                D Offline
                D Offline
                Dalek Dave
                wrote on last edited by
                #18

                Another of Feynman's mind games eh?

                ------------------------------------ "When Belly Full, Chin Hit Chest" Confucius 502BC

                L 1 Reply Last reply
                0
                • D Dario Solera

                  Well you never know what could happen in the universe. That's fine assumption. I usually create constants for all the decimal digits 0-9 so that I can change the value if I need it.

                  If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Photos/CP Flickr Group - ScrewTurn Wiki

                  C Offline
                  C Offline
                  Chris Meech
                  wrote on last edited by
                  #19

                  Yeah, but what happens when a new number is discovered between 6 an 7? :)

                  Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]

                  1 Reply Last reply
                  0
                  • D Dalek Dave

                    Another of Feynman's mind games eh?

                    ------------------------------------ "When Belly Full, Chin Hit Chest" Confucius 502BC

                    L Offline
                    L Offline
                    LittleYellowBird
                    wrote on last edited by
                    #20

                    ;)

                    Ali

                    1 Reply Last reply
                    0
                    • C Chris Maunder

                      Exactly. It's only been calculated to a trillion digits, and if you hardcode that and then someone calculates it to a quadrillion then you're going to feel a little silly having to update the value of pi each place you hardcoded it.

                      cheers, Chris Maunder The Code Project Co-founder Microsoft C++ MVP

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #21

                      Chris Maunder wrote:

                      Exactly. It's only been calculated to a trillion digits, and if you hardcode that and then someone calculates it to a quadrillion then you're going to feel a little silly having to update the value of pi each place you hardcoded it.

                      Isn't that what Search and Replace is for?

                      Michael Martin Australia "I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible." - Mr.Prakash One Fine Saturday. 24/04/2004

                      X 1 Reply Last reply
                      0
                      • L Lost User

                        Chris Maunder wrote:

                        Exactly. It's only been calculated to a trillion digits, and if you hardcode that and then someone calculates it to a quadrillion then you're going to feel a little silly having to update the value of pi each place you hardcoded it.

                        Isn't that what Search and Replace is for?

                        Michael Martin Australia "I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible." - Mr.Prakash One Fine Saturday. 24/04/2004

                        X Offline
                        X Offline
                        Xiangyang Liu
                        wrote on last edited by
                        #22

                        Michael Martin wrote:

                        Isn't that what Search and Replace is for?

                        Ok, let me see, search for a trillion digit value in your source files and replace it with a quadrillion digit value? When that is done your great great grandson will be born. :)

                        My .NET Business Application Framework My Home Page My Younger Son & His "PET"

                        B R 2 Replies Last reply
                        0
                        • X Xiangyang Liu

                          Michael Martin wrote:

                          Isn't that what Search and Replace is for?

                          Ok, let me see, search for a trillion digit value in your source files and replace it with a quadrillion digit value? When that is done your great great grandson will be born. :)

                          My .NET Business Application Framework My Home Page My Younger Son & His "PET"

                          B Offline
                          B Offline
                          Brady Kelly
                          wrote on last edited by
                          #23

                          The regex would be simple. :)

                          1 Reply Last reply
                          0
                          • D Dario Solera

                            Well you never know what could happen in the universe. That's fine assumption. I usually create constants for all the decimal digits 0-9 so that I can change the value if I need it.

                            If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Photos/CP Flickr Group - ScrewTurn Wiki

                            J Offline
                            J Offline
                            Joe Woodbury
                            wrote on last edited by
                            #24

                            I worked with some guys who previously had some offshore developers actually do that after they were told to change the hardcoded numbers to constants. (So statements like x += 2; got changed to x += TWO;. It's fortunate they didn't use pi, else it would have become THREE_POINT_ONE_FOUR_ONE_FIVE_NINE.... )

                            Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke

                            1 Reply Last reply
                            0
                            • X Xiangyang Liu

                              Michael Martin wrote:

                              Isn't that what Search and Replace is for?

                              Ok, let me see, search for a trillion digit value in your source files and replace it with a quadrillion digit value? When that is done your great great grandson will be born. :)

                              My .NET Business Application Framework My Home Page My Younger Son & His "PET"

                              R Offline
                              R Offline
                              Rajesh R Subramanian
                              wrote on last edited by
                              #25

                              Xiangyang Liu 刘向阳 wrote:

                              When that is done your great great grandson will be born.

                              Uh ooh... This is how babby is formed?!

                              It is a crappy thing, but it's life -^ Carlo Pallini

                              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