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. Porgammer's mug

Porgammer's mug

Scheduled Pinned Locked Moved The Lounge
comhelpdiscussion
15 Posts 9 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    As a follow up to yesterday's discussion about zero based arrays, I would like to present how a programmer's mug should look like: https://pbs.twimg.com/media/CEQGiA8VAAQF7i_.png[^] I know, I'm an idiot to bring it up. It's just that had (some recent time ago) to waddle through thousands of lines of code and fix 1 based arrays.

    J T M S T 6 Replies Last reply
    0
    • L Lost User

      As a follow up to yesterday's discussion about zero based arrays, I would like to present how a programmer's mug should look like: https://pbs.twimg.com/media/CEQGiA8VAAQF7i_.png[^] I know, I'm an idiot to bring it up. It's just that had (some recent time ago) to waddle through thousands of lines of code and fix 1 based arrays.

      J Offline
      J Offline
      Jeremy Falcon
      wrote on last edited by
      #2

      Nice!

      Jeremy Falcon

      1 Reply Last reply
      0
      • L Lost User

        As a follow up to yesterday's discussion about zero based arrays, I would like to present how a programmer's mug should look like: https://pbs.twimg.com/media/CEQGiA8VAAQF7i_.png[^] I know, I'm an idiot to bring it up. It's just that had (some recent time ago) to waddle through thousands of lines of code and fix 1 based arrays.

        T Offline
        T Offline
        TheGreatAndPowerfulOz
        wrote on last edited by
        #3

        Quote:

        Porgammer's mug

        What's a porgammer? ;P

        #SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun

        M realJSOPR 2 Replies Last reply
        0
        • L Lost User

          As a follow up to yesterday's discussion about zero based arrays, I would like to present how a programmer's mug should look like: https://pbs.twimg.com/media/CEQGiA8VAAQF7i_.png[^] I know, I'm an idiot to bring it up. It's just that had (some recent time ago) to waddle through thousands of lines of code and fix 1 based arrays.

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

          WANT!

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

          1 Reply Last reply
          0
          • T TheGreatAndPowerfulOz

            Quote:

            Porgammer's mug

            What's a porgammer? ;P

            #SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun

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

            A tpyo.

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

            R J 2 Replies Last reply
            0
            • M Mark_Wallace

              A tpyo.

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

              R Offline
              R Offline
              raddevus
              wrote on last edited by
              #6

              Mark_Wallace wrote:

              A tpyo.

              This is actually an encryption scheme that is very difficult to crack, called Flip2To3. There's another similar one named ROT-13[^]. :laugh:

              My book, Launch Your Android App, is available at Amazon.com.

              1 Reply Last reply
              0
              • M Mark_Wallace

                A tpyo.

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

                J Offline
                J Offline
                Jeremy Falcon
                wrote on last edited by
                #7

                :thumbsup:

                Jeremy Falcon

                1 Reply Last reply
                0
                • L Lost User

                  As a follow up to yesterday's discussion about zero based arrays, I would like to present how a programmer's mug should look like: https://pbs.twimg.com/media/CEQGiA8VAAQF7i_.png[^] I know, I'm an idiot to bring it up. It's just that had (some recent time ago) to waddle through thousands of lines of code and fix 1 based arrays.

                  S Offline
                  S Offline
                  SteveTheThread
                  wrote on last edited by
                  #8

                  Of course, arrays are not zero based. When you access an array such as array[0] you are referring to the offset.

                  1 Reply Last reply
                  0
                  • T TheGreatAndPowerfulOz

                    Quote:

                    Porgammer's mug

                    What's a porgammer? ;P

                    #SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun

                    realJSOPR Online
                    realJSOPR Online
                    realJSOP
                    wrote on last edited by
                    #9

                    TheGreatAndPowerfulOzWhat's a porgammer?

                    A programmer that doesn't have any concept of financial management. Keep in mind, however, that he's using the archaic spelling which has been replaced by the more phonetically corrected form, "poorgrammer". Another acceptable, albeit longer, way to phrase it is, "broke-ass programmer".

                    ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                    -----
                    You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                    -----
                    When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                    T 1 Reply Last reply
                    0
                    • L Lost User

                      As a follow up to yesterday's discussion about zero based arrays, I would like to present how a programmer's mug should look like: https://pbs.twimg.com/media/CEQGiA8VAAQF7i_.png[^] I know, I'm an idiot to bring it up. It's just that had (some recent time ago) to waddle through thousands of lines of code and fix 1 based arrays.

                      T Offline
                      T Offline
                      Tim Carmichael
                      wrote on last edited by
                      #10

                      Kamen Nik wrote:

                      waddle through thousands of lines of code and fix 1 based arrays.

                      Why did they need to be fixed? Was it a case of the application didn't work, or personal preference? How was a 1-based array preventing the application from working?

                      1 Reply Last reply
                      0
                      • L Lost User

                        As a follow up to yesterday's discussion about zero based arrays, I would like to present how a programmer's mug should look like: https://pbs.twimg.com/media/CEQGiA8VAAQF7i_.png[^] I know, I'm an idiot to bring it up. It's just that had (some recent time ago) to waddle through thousands of lines of code and fix 1 based arrays.

                        M Offline
                        M Offline
                        MarkTJohnson
                        wrote on last edited by
                        #11

                        Delphi uses 1 based arrays. Actually, depending on what the array is some are one based and others are zero based. Love my job.

                        T 1 Reply Last reply
                        0
                        • realJSOPR realJSOP

                          TheGreatAndPowerfulOzWhat's a porgammer?

                          A programmer that doesn't have any concept of financial management. Keep in mind, however, that he's using the archaic spelling which has been replaced by the more phonetically corrected form, "poorgrammer". Another acceptable, albeit longer, way to phrase it is, "broke-ass programmer".

                          ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                          -----
                          You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                          -----
                          When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                          T Offline
                          T Offline
                          TheGreatAndPowerfulOz
                          wrote on last edited by
                          #12

                          LMAO! :laugh: :thumbsup::thumbsup:

                          #SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun

                          1 Reply Last reply
                          0
                          • M MarkTJohnson

                            Delphi uses 1 based arrays. Actually, depending on what the array is some are one based and others are zero based. Love my job.

                            T Offline
                            T Offline
                            TheGreatAndPowerfulOz
                            wrote on last edited by
                            #13

                            Isn't Delphi an offshoot of turbo pascal and doesn't pascal have the notion of n-based arrays, in other words one can state the starting & ending range of the array?

                            #SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun

                            M 1 Reply Last reply
                            0
                            • T TheGreatAndPowerfulOz

                              Isn't Delphi an offshoot of turbo pascal and doesn't pascal have the notion of n-based arrays, in other words one can state the starting & ending range of the array?

                              #SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun

                              M Offline
                              M Offline
                              MarkTJohnson
                              wrote on last edited by
                              #14

                              True for arrays you create, but certain structures in memory you get handed to you are one based and others are zero based. Strings can be accessed as arrays and are 1 based because the zeroth element contains the length of the string. But other memory arrays are zero based. I even used to have a print out of one of the help pages stating that the function used one base but actually used zero base.

                              T 1 Reply Last reply
                              0
                              • M MarkTJohnson

                                True for arrays you create, but certain structures in memory you get handed to you are one based and others are zero based. Strings can be accessed as arrays and are 1 based because the zeroth element contains the length of the string. But other memory arrays are zero based. I even used to have a print out of one of the help pages stating that the function used one base but actually used zero base.

                                T Offline
                                T Offline
                                TheGreatAndPowerfulOz
                                wrote on last edited by
                                #15

                                Gaaahhh! X| :omg: :wtf:

                                #SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun

                                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