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

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

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

                              I am on a similar project, and one of the problems with our code base is that we do not spend enough time ripping out the obsolete code, especially from major transitions. Customers and management always want to focus on the next enhancement.

                              1 Reply Last reply
                              0
                              • K Kirk 10389821

                                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 Offline
                                H Offline
                                honey the codewitch
                                wrote on last edited by
                                #31

                                The most complicated solution I've written was something that allowed you to define a pixel as a series of "channels", each with a name, resolution/bit depth, default value, and min and max value (related to the bit depth but can be overridden) The pixels could then be accessed by individual channel name, or channel index. In addition, you could set the entire value (all channels) as a unit. A pixel could be as large as the machine's maximum word size. Furthermore, to convert to other color models, all you have to do is make it convertible to a pixel with R, G, and B channels and it will figure out the rest. All of this is done at compile time if the information is available at compile time. Even manipulating the individual channels does not yield shift instructions except if the values aren't known at compile time. It simply creates a new constant value. It's pretty crazy.

                                To err is human. Fortune favors the monsters.

                                1 Reply Last reply
                                0
                                • H honey the codewitch

                                  It rhymes in binary. :-\

                                  To err is human. Fortune favors the monsters.

                                  D Offline
                                  D Offline
                                  DRHuff
                                  wrote on last edited by
                                  #32

                                  honey the codewitch wrote:

                                  It rhymes in binary.

                                  Sure - but its definately not kid-sister safe in octal! :doh:

                                  If you can't laugh at yourself - ask me and I will do it for you.

                                  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