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

    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.

    P Greg UtasG OriginalGriffO S S 13 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.

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

      It doesn't rhyme.

      H 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.

        Greg UtasG Offline
        Greg UtasG Offline
        Greg Utas
        wrote on last edited by
        #3

        Are you channeling @BillWoodruff?

        Robust Services Core | Software Techniques for Lemmings | Articles
        The fox knows many things, but the hedgehog knows one big thing.

        <p><a href="https://github.com/GregUtas/robust-services-core/blob/master/README.md">Robust Services Core</a>
        <em>The fox knows many things, but the hedgehog knows one big thing.</em></p>

        H 1 Reply Last reply
        0
        • Greg UtasG Greg Utas

          Are you channeling @BillWoodruff?

          Robust Services Core | Software Techniques for Lemmings | Articles
          The fox knows many things, but the hedgehog knows one big thing.

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

          just ruminating. and procrastinating a rewrite. :-\

          To err is human. Fortune favors the monsters.

          Greg UtasG 1 Reply Last reply
          0
          • P PIEBALDconsult

            It doesn't rhyme.

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

            It rhymes in binary. :-\

            To err is human. Fortune favors the monsters.

            P D 2 Replies Last reply
            0
            • H honey the codewitch

              just ruminating. and procrastinating a rewrite. :-\

              To err is human. Fortune favors the monsters.

              Greg UtasG Offline
              Greg UtasG Offline
              Greg Utas
              wrote on last edited by
              #6

              But rewrites are fun! Until you start retesting... :-D

              Robust Services Core | Software Techniques for Lemmings | Articles
              The fox knows many things, but the hedgehog knows one big thing.

              <p><a href="https://github.com/GregUtas/robust-services-core/blob/master/README.md">Robust Services Core</a>
              <em>The fox knows many things, but the hedgehog knows one big thing.</em></p>

              H 1 Reply Last reply
              0
              • Greg UtasG Greg Utas

                But rewrites are fun! Until you start retesting... :-D

                Robust Services Core | Software Techniques for Lemmings | Articles
                The fox knows many things, but the hedgehog knows one big thing.

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

                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 1 Reply Last reply
                0
                • H honey the codewitch

                  It rhymes in binary. :-\

                  To err is human. Fortune favors the monsters.

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

                  ... aaaand I always forget to expect a hex...

                  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.

                    OriginalGriffO Offline
                    OriginalGriffO Offline
                    OriginalGriff
                    wrote on last edited by
                    #9

                    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!

                    "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

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