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

old code

Scheduled Pinned Locked Moved The Lounge
css
32 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.
  • H honey the codewitch

    old code baked in a less elegant time its functions rusty its features, anachronistic every encounter with it reminds me of my past failure of imagination. if I could only think ahead a few more steps i'd never have old code

    To err is human. Fortune favors the monsters.

    S Offline
    S Offline
    Super Lloyd
    wrote on last edited by
    #10

    The wheel of time always keep turning, there will always be old code! :-D ;P

    A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

    1 Reply Last reply
    0
    • H honey the codewitch

      old code baked in a less elegant time its functions rusty its features, anachronistic every encounter with it reminds me of my past failure of imagination. if I could only think ahead a few more steps i'd never have old code

      To err is human. Fortune favors the monsters.

      S Offline
      S Offline
      Slacker007
      wrote on last edited by
      #11

      code is like cars, as soon as you drive it off the lot, its old.

      1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        Code matures slowly
        Function forgotten, it dies
        I wrote it to last

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #12

        " Ancient computers ranged in the long caves deep in the bowels of the planet tick away the dark millennia, and the ages hang heavy on their dusty databanks. They take the occasional potshot to relieve the monotony. " -- Slartibartfast

        1 Reply Last reply
        0
        • H honey the codewitch

          This one is complicated by multiple screen modes, each of which must be represented by a different concrete type with not much in the way of common base class. The screen mode function itself is a bit odd at first, being like

          auto scmode = screen.mode<1,4>(); // native bit depth of 1,
          // virtualized bit depth of 4 (for 8 virtual grayscale colors)

          then you can draw to scmode. I don't like it but the way my graphics library is designed, pixels of different formats are different concrete types so like

          gfx::gsc_pixel<1>; // mono pixel
          gfx::gsc_pixel<8>; // 8 bit grayscale
          gfx::rgb_pixel<16>; // 16 bit rgb
          gfx::ycbcr_pixel<24>; // 24-bit Y'CbCr (used by jpeg)
          gfx::rgba_pixel<32>; // 32-bit rgb pixel with an alpha channel

          therefore different modes with different pixel formats must be different types. it has a number of advantages. this is just one area where i don't care for it.

          To err is human. Fortune favors the monsters.

          J Offline
          J Offline
          jmaida
          wrote on last edited by
          #13

          1 bit, 4 bits, 1 byte, 2 bytes, 3 bytes, 4 bytes works with food (Pun intended) and bitmaps. Lots of bookkeeping, though. Unlike old soldiers, old code may never die and it may never fade away.

          1 Reply Last reply
          0
          • H honey the codewitch

            old code baked in a less elegant time its functions rusty its features, anachronistic every encounter with it reminds me of my past failure of imagination. if I could only think ahead a few more steps i'd never have old code

            To err is human. Fortune favors the monsters.

            E Offline
            E Offline
            englebart
            wrote on last edited by
            #14

            Code is like life that way. The second a routine is born, the fates have cut its skein to an exact length that you may never know even though it is YOU that weaves it into that tapestry known as a program.

            1 Reply Last reply
            0
            • H honey the codewitch

              old code baked in a less elegant time its functions rusty its features, anachronistic every encounter with it reminds me of my past failure of imagination. if I could only think ahead a few more steps i'd never have old code

              To err is human. Fortune favors the monsters.

              G Offline
              G Offline
              Gary R Wheeler
              wrote on last edited by
              #15

              "The ancient machine was but a pale shadow of its original glory. It had performed its duty, destroying the fifth planet in this system. Like all of its kind, it had not expected to survive what should have been its penultimate moment. An collection of debris accidently shielded it from dissolution, eventually casting it into orbit around the next planet inward. At some point in its long, long journey its intelligence was restored by the repair automata sufficiently that the mission became its primary concern yet again. Many systems no longer existed, or could not be repaired. Still, the mission must be performed. It searched, deep in the few uncorrupted records it still contained. There must be a method for completing the mission. In recent orbits small bits of metal debris had been expelled by the third planet. Some of the bits had even landed on the planet below, emitting weak electromagnetic signals. The ancient records were emphatic that this was one of the few warnings it would receive. The machine continued to watch, and wait."

              Software Zen: delete this;

              H 1 Reply Last reply
              0
              • G Gary R Wheeler

                "The ancient machine was but a pale shadow of its original glory. It had performed its duty, destroying the fifth planet in this system. Like all of its kind, it had not expected to survive what should have been its penultimate moment. An collection of debris accidently shielded it from dissolution, eventually casting it into orbit around the next planet inward. At some point in its long, long journey its intelligence was restored by the repair automata sufficiently that the mission became its primary concern yet again. Many systems no longer existed, or could not be repaired. Still, the mission must be performed. It searched, deep in the few uncorrupted records it still contained. There must be a method for completing the mission. In recent orbits small bits of metal debris had been expelled by the third planet. Some of the bits had even landed on the planet below, emitting weak electromagnetic signals. The ancient records were emphatic that this was one of the few warnings it would receive. The machine continued to watch, and wait."

                Software Zen: delete this;

                H Offline
                H Offline
                honey the codewitch
                wrote on last edited by
                #16

                I remember this I think, but I can't place it - like something I read a long time ago.

                To err is human. Fortune favors the monsters.

                G 1 Reply Last reply
                0
                • H honey the codewitch

                  I remember this I think, but I can't place it - like something I read a long time ago.

                  To err is human. Fortune favors the monsters.

                  G Offline
                  G Offline
                  Gary R Wheeler
                  wrote on last edited by
                  #17

                  Probably because I've been reading science fiction for 50 years and can riff on most of the tropes pretty easily. If you've ever read the Bolo series of books originated by Keith Laumer, that's the tone I was looking for.

                  Software Zen: delete this;

                  H S 2 Replies Last reply
                  0
                  • G Gary R Wheeler

                    Probably because I've been reading science fiction for 50 years and can riff on most of the tropes pretty easily. If you've ever read the Bolo series of books originated by Keith Laumer, that's the tone I was looking for.

                    Software Zen: delete this;

                    H Offline
                    H Offline
                    honey the codewitch
                    wrote on last edited by
                    #18

                    Oh you wrote that? I did not expect that. You really had me going. It was bugging me all night. :laugh:

                    To err is human. Fortune favors the monsters.

                    G B 2 Replies Last reply
                    0
                    • H honey the codewitch

                      old code baked in a less elegant time its functions rusty its features, anachronistic every encounter with it reminds me of my past failure of imagination. if I could only think ahead a few more steps i'd never have old code

                      To err is human. Fortune favors the monsters.

                      W Offline
                      W Offline
                      Wizard of Sleeves
                      wrote on last edited by
                      #19

                      When I look back of my old code, I think to myself, "Holy broccoli, Batman! What great code. Did I actually write that? So eloquent and yet so powerful." To which I hear the reply, "Get away from computer, Granddad. You know it makes you sad."

                      Nothing succeeds like a budgie without teeth. To err is human, to arr is pirate.

                      1 Reply Last reply
                      0
                      • H honey the codewitch

                        old code baked in a less elegant time its functions rusty its features, anachronistic every encounter with it reminds me of my past failure of imagination. if I could only think ahead a few more steps i'd never have old code

                        To err is human. Fortune favors the monsters.

                        D Offline
                        D Offline
                        Don Hughes
                        wrote on last edited by
                        #20

                        Although robust enough for general use, adventures into the esoteric periphery of the C shell may reveal unexpected quirks.

                        1 Reply Last reply
                        0
                        • H honey the codewitch

                          Oh you wrote that? I did not expect that. You really had me going. It was bugging me all night. :laugh:

                          To err is human. Fortune favors the monsters.

                          G Offline
                          G Offline
                          Gary Wheeler
                          wrote on last edited by
                          #21

                          Thanks :) .

                          Software Zen: delete this;

                          1 Reply Last reply
                          0
                          • H honey the codewitch

                            old code baked in a less elegant time its functions rusty its features, anachronistic every encounter with it reminds me of my past failure of imagination. if I could only think ahead a few more steps i'd never have old code

                            To err is human. Fortune favors the monsters.

                            M Offline
                            M Offline
                            MikeTheFid
                            wrote on last edited by
                            #22

                            There are only two categories of code (like computers), prototype and obsolete.

                            Cheers, Mike Fidler "I intend to live forever - so far, so good." Steven Wright "I almost had a psychic girlfriend but she left me before we met." Also Steven Wright "I'm addicted to placebos. I could quit, but it wouldn't matter." Steven Wright yet again.

                            1 Reply Last reply
                            0
                            • H honey the codewitch

                              old code baked in a less elegant time its functions rusty its features, anachronistic every encounter with it reminds me of my past failure of imagination. if I could only think ahead a few more steps i'd never have old code

                              To err is human. Fortune favors the monsters.

                              B Offline
                              B Offline
                              Baxter P
                              wrote on last edited by
                              #23

                              Be thankful you have a job :confused:

                              A 1 Reply Last reply
                              0
                              • B Baxter P

                                Be thankful you have a job :confused:

                                A Offline
                                A Offline
                                Alan Pengelly
                                wrote on last edited by
                                #24

                                All my code is old, I am still using Visual FoxPro :laugh: it's tiny (can run it on a pen drive!) and "does what is says on the tin."

                                1 Reply Last reply
                                0
                                • G Gary R Wheeler

                                  Probably because I've been reading science fiction for 50 years and can riff on most of the tropes pretty easily. If you've ever read the Bolo series of books originated by Keith Laumer, that's the tone I was looking for.

                                  Software Zen: delete this;

                                  S Offline
                                  S Offline
                                  sasadler
                                  wrote on last edited by
                                  #25

                                  Yeah, I've been reading science fiction and fantasy books since the middle 60's. Still got the Laumer books (with about a thousand more) in boxes in the garage. I re-read the Bolo series (again) just a few years ago. Good stuff.

                                  1 Reply Last reply
                                  0
                                  • H honey the codewitch

                                    Oh you wrote that? I did not expect that. You really had me going. It was bugging me all night. :laugh:

                                    To err is human. Fortune favors the monsters.

                                    B Offline
                                    B Offline
                                    Bob work
                                    wrote on last edited by
                                    #26

                                    Weeeeeell, poop. So I can't use an extra Audible credit to listen the whole thing? This comes under the popcorn-in-the-office rule - you can't just pop a bag, let the buttery aroma fill the place, and then leave for the day and take the popcorn with you. "Did you make enough for everybody?" "No Ma'am." "Then spit it out." :laugh: We also had a similarly unforgiving rule about microwaving fish dishes or leaving a gallon jar of kombucha to ferment in the break room. Honestly, I'd read/listen to the whole thing. I'll look up the author/series and see what's available in a travel-friendly format. Thanks! :-D

                                    -Bob

                                    1 Reply Last reply
                                    0
                                    • H honey the codewitch

                                      old code baked in a less elegant time its functions rusty its features, anachronistic every encounter with it reminds me of my past failure of imagination. if I could only think ahead a few more steps i'd never have old code

                                      To err is human. Fortune favors the monsters.

                                      K Offline
                                      K Offline
                                      kmoorevs
                                      wrote on last edited by
                                      #27

                                      :thumbsup: I like it...an ode to old code! :) I encounter my old code every day. It reminds me of how long I've been doing this and how I myself am also getting older. :sigh: I also noticed recently that my sense of time is slipping. Looking through old emails, I found a screenshot of what I thought was a fairly new feature...it was from 4 months ago! Adding features to a product I still consider to be new, I was reminded that this was my Covid project...started in March 2020 with a 5 month deadline (the year without a summer!)...it's now 2 years old! :omg: My company's flagship product is 22 years old, and I was there from the start. :sigh: To quote JG, 'What a long strange trip it's been'.

                                      "Go forth into the source" - Neal Morse "Hope is contagious"

                                      G E 2 Replies Last reply
                                      0
                                      • H honey the codewitch

                                        old code baked in a less elegant time its functions rusty its features, anachronistic every encounter with it reminds me of my past failure of imagination. if I could only think ahead a few more steps i'd never have old code

                                        To err is human. Fortune favors the monsters.

                                        K Offline
                                        K Offline
                                        Kirk 10389821
                                        wrote on last edited by
                                        #28

                                        Yep, that's why all code should be written 3 times: 1) Write it to prove the concept and LEARN 2) Rewrite it for others and clarity 3) Rewrite it again because we are professionals, and our brains will be shot when we come back. The most complicated piece of Code I ever wrote was an insurance rating engine that constantly changed. The "elegant" solution in the end was: (No Goto allowed)

                                        LOOP
                                        // Shared setup code, variable hunting, etc.

                                        If Determination_Condition then
                                        RateXXX;
                                        break;

                                        // There were about 100 of those.

                                        ..
                                        DefaultRate;
                                        break;
                                        END LOOP

                                        I was criticized for using the LOOP in a code review, but the challenge to find a cleaner way found nothing. And I brought the last 10 change requests, which effectively tell you WHERE to place the code to exit early. Life is sometimes simple... (And for complexity, consider rules like, they have a home policy, a life policy, and are disabled... Uggh... Only insurance companies)

                                        H 1 Reply Last reply
                                        0
                                        • K kmoorevs

                                          :thumbsup: I like it...an ode to old code! :) I encounter my old code every day. It reminds me of how long I've been doing this and how I myself am also getting older. :sigh: I also noticed recently that my sense of time is slipping. Looking through old emails, I found a screenshot of what I thought was a fairly new feature...it was from 4 months ago! Adding features to a product I still consider to be new, I was reminded that this was my Covid project...started in March 2020 with a 5 month deadline (the year without a summer!)...it's now 2 years old! :omg: My company's flagship product is 22 years old, and I was there from the start. :sigh: To quote JG, 'What a long strange trip it's been'.

                                          "Go forth into the source" - Neal Morse "Hope is contagious"

                                          G Offline
                                          G Offline
                                          Gary R Wheeler
                                          wrote on last edited by
                                          #29

                                          kmoorevs wrote:

                                          'What a long strange trip it's been'

                                          I have an in-house debugging tool created in 2000 we use a lot that I'm actively maintaining. It's been getting a couple new features over the last few months. Part of the app is a Windows Shell extension for Explorer, which I'm researching on updating for Windows 11. The current extension is treated as a 2nd-class citizen, relegated to the "old stuff we're ashamed of" sub-menu when you right-click on things.

                                          Software Zen: delete this;

                                          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