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.
  • C Offline
    C Offline
    CARPETBURNER
    wrote on last edited by
    #1

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

    L D D D C 5 Replies 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 ?????

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

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

      R R C 3 Replies 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 ?????

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

        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 M C J 4 Replies 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 ?????

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

          Firstly, VERY OLD. Secondly, Pi may change, it was once defined as 4, and also as 3. Also of interest is the Feynman Point.

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

          C L 2 Replies 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
            CPallini
            wrote on last edited by
            #5

            :-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
            • D Dalek Dave

              Firstly, VERY OLD. Secondly, Pi may change, it was once defined as 4, and also as 3. Also of interest is the Feynman Point.

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

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

              Dalek Dave wrote:

              Secondly, Pi may change, it was once defined as 4, and also as 3.

              I know well it, sir. We had to use our best chisels to change it in our FORTRAN sources.

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

                M Offline
                M Offline
                Mark_Wallace
                wrote on last edited by
                #7

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

                  R Offline
                  R Offline
                  realJSOP
                  wrote on last edited by
                  #8

                  leppie wrote:

                  No-one has ever found an exact numerical representation of pi.

                  I think it mostly depends on how many pieces you slice it into...

                  "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                  -----
                  "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                  1 Reply Last reply
                  0
                  • D Dalek Dave

                    Firstly, VERY OLD. Secondly, Pi may change, it was once defined as 4, and also as 3. Also of interest is the Feynman Point.

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

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

                    Dalek Dave wrote:

                    Also of interest is the Feynman Point.

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

                    Ali

                    H D 2 Replies 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 ?????

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

                      *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 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))

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

                        Nobody has found the exact value of pi doesn't mean that it is a variable. It *is* a constant.

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

                        1 Reply Last reply
                        0
                        • 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
                                          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