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. Other Discussions
  3. The Weird and The Wonderful
  4. Whoa! Didn't see this one coming

Whoa! Didn't see this one coming

Scheduled Pinned Locked Moved The Weird and The Wonderful
com
18 Posts 15 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 leppie
      /// /// Creates a deep copy of the object
      /// 
      public virtual object DeepCopy(object value)
      {
         return value;
      }
    

    ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

    B Offline
    B Offline
    BobJanova
    wrote on last edited by
    #6

    Oh that's a good one.

    1 Reply Last reply
    0
    • M Manfred Rudolf Bihy

      Looks like the coder should have thrown a NotImplementedException[^] here instead. Cheers!

      "With sufficient thrust, pigs fly just fine."

      Ross Callon, The Twelve Networking Truths, RFC1925

      F Offline
      F Offline
      fjdiewornncalwe
      wrote on last edited by
      #7

      Manfred R. Bihy wrote:

      Looks like the coder should have thrown a NotImplementedException[^] here instead.

      One of the most underused exceptions when developing software. I use it all the time when I am scoping out classes, but not ready to implement the inner code yet.

      I wasn't, now I am, then I won't be anymore.

      M 1 Reply Last reply
      0
      • L leppie
          /// /// Creates a deep copy of the object
          /// 
          public virtual object DeepCopy(object value)
          {
             return value;
          }
        

        ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

        C Offline
        C Offline
        Chris Meech
        wrote on last edited by
        #8

        In other cultures that's referred to as a Zen copy. You have become one with the object. :)

        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] posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]

        G 1 Reply Last reply
        0
        • M Manfred Rudolf Bihy

          Looks like the coder should have thrown a NotImplementedException[^] here instead. Cheers!

          "With sufficient thrust, pigs fly just fine."

          Ross Callon, The Twelve Networking Truths, RFC1925

          B Offline
          B Offline
          BillW33
          wrote on last edited by
          #9

          Yes, but if he used a NotImplementedException then it wouldn't be a coding horror. Unless, of course, it was still there when released to customers. ;) :)

          Just because the code works, it doesn't mean that it is good code.

          A 1 Reply Last reply
          0
          • M Manfred Rudolf Bihy

            Looks like the coder should have thrown a NotImplementedException[^] here instead. Cheers!

            "With sufficient thrust, pigs fly just fine."

            Ross Callon, The Twelve Networking Truths, RFC1925

            S Offline
            S Offline
            StM0n
            wrote on last edited by
            #10

            Manfred R. Bihy wrote:

            Looks like the coder should have thrown a NotImplementedException[^] here instead.

            Rather a

            NotImplementedHereSoGoOnException

            :)

            (yes|no|maybe)*

            1 Reply Last reply
            0
            • L leppie
                /// /// Creates a deep copy of the object
                /// 
                public virtual object DeepCopy(object value)
                {
                   return value;
                }
              

              ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

              R Offline
              R Offline
              RCoate
              wrote on last edited by
              #11

              Code like this is probably one reason why

              ///...

              is not a standard xml comment. No one would want to own up to that.

              N 1 Reply Last reply
              0
              • K Keith Barrow

                Perhaps he means "Deep" in some Buddist-type sense, with a more profound meaning, like a copy of something is the same thing as the original or something. Actually, if this is the case the methdod should have been called ProfoundCopy :)

                Sort of a cross between Lawrence of Arabia and Dilbert.[^]
                -Or-
                A Dead ringer for Kate Winslett[^]

                0 Offline
                0 Offline
                0bx
                wrote on last edited by
                #12

                PlatonicCopy: A material copy that is merely a flawed and incomplete projection of the immaterial class.

                Giraffes are not real.

                1 Reply Last reply
                0
                • C Chris Meech

                  In other cultures that's referred to as a Zen copy. You have become one with the object. :)

                  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] posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]

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

                  If this was C++, see my sig.

                  Software Zen: delete this;

                  1 Reply Last reply
                  0
                  • L leppie
                      /// /// Creates a deep copy of the object
                      /// 
                      public virtual object DeepCopy(object value)
                      {
                         return value;
                      }
                    

                    ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

                    F Offline
                    F Offline
                    Fabio Franco
                    wrote on last edited by
                    #14

                    This looks like a laid off employee who would like damage the company without the risk of being sued.

                    "To alcohol! The cause of, and solution to, all of life's problems" - Homer Simpson

                    L 1 Reply Last reply
                    0
                    • F Fabio Franco

                      This looks like a laid off employee who would like damage the company without the risk of being sued.

                      "To alcohol! The cause of, and solution to, all of life's problems" - Homer Simpson

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

                      Fabio Franco wrote:

                      This looks like a laid off employee who would like damage the company without the risk of being sued.

                      Actually, the code was likely written by someone I have worked with previously at another company... At least I know what to expect :)

                      ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

                      1 Reply Last reply
                      0
                      • B BillW33

                        Yes, but if he used a NotImplementedException then it wouldn't be a coding horror. Unless, of course, it was still there when released to customers. ;) :)

                        Just because the code works, it doesn't mean that it is good code.

                        A Offline
                        A Offline
                        agolddog
                        wrote on last edited by
                        #16

                        Coincidentally, we just found exactly this yesterday in our latest release. Release was pretty much a complete rewrite of the software, so this is a "TODO that didn't get to did", not something malicious. Oops. Now off to the old code to figure it out and design a solution in the new architecture.

                        1 Reply Last reply
                        0
                        • R RCoate

                          Code like this is probably one reason why

                          ///...

                          is not a standard xml comment. No one would want to own up to that.

                          N Offline
                          N Offline
                          Naruki 0
                          wrote on last edited by
                          #17

                          Perhaps the coder's name is Dot Stop Period.

                          Narf.

                          1 Reply Last reply
                          0
                          • F fjdiewornncalwe

                            Manfred R. Bihy wrote:

                            Looks like the coder should have thrown a NotImplementedException[^] here instead.

                            One of the most underused exceptions when developing software. I use it all the time when I am scoping out classes, but not ready to implement the inner code yet.

                            I wasn't, now I am, then I won't be anymore.

                            M Offline
                            M Offline
                            Manfred Rudolf Bihy
                            wrote on last edited by
                            #18

                            It's a great way to detect that something isn't quite done yet. Cheers!

                            "With sufficient thrust, pigs fly just fine."

                            Ross Callon, The Twelve Networking Truths, RFC1925

                            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