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. The Code Repeater

The Code Repeater

Scheduled Pinned Locked Moved The Weird and The Wonderful
question
14 Posts 13 Posters 1 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.
  • J Jeroen De Dauw

    You should commend them! Seriously, this is good work. If you consider that most people touching code are idiots, it's always good to duplicate code around, so that if someone messes up one copy, only a small part of your app gets broken, rather then the whole thing.

    Jeroen De Dauw (blog | Twitter | Identi.ca)

    M Offline
    M Offline
    Mohibur Rashid
    wrote on last edited by
    #4

    Really? is this how you protect your code?

    A 1 Reply Last reply
    0
    • L Lost User

      if (RegistryKeyExists()) {
      /* 113 lines of code */
      } else {
      CreateRegistryKey();
      /* Same 113 lines repeated here */
      }

      What should we do with such "programmers"?

      S Offline
      S Offline
      Stefan_Lang
      wrote on last edited by
      #5

      You could ask copy shops in the neighbourhood if they have a vacancy... ;P

      1 Reply Last reply
      0
      • J Jeroen De Dauw

        You should commend them! Seriously, this is good work. If you consider that most people touching code are idiots, it's always good to duplicate code around, so that if someone messes up one copy, only a small part of your app gets broken, rather then the whole thing.

        Jeroen De Dauw (blog | Twitter | Identi.ca)

        H Offline
        H Offline
        hansoctantan
        wrote on last edited by
        #6

        I don't know if this is appropriate but it make sense

        1 Reply Last reply
        0
        • L Lost User

          if (RegistryKeyExists()) {
          /* 113 lines of code */
          } else {
          CreateRegistryKey();
          /* Same 113 lines repeated here */
          }

          What should we do with such "programmers"?

          R Offline
          R Offline
          Rahul Rajat Singh
          wrote on last edited by
          #7

          You dont have to do anything. eventually the employer will promote them to "managers"

          W S 2 Replies Last reply
          0
          • R Rahul Rajat Singh

            You dont have to do anything. eventually the employer will promote them to "managers"

            W Offline
            W Offline
            walterhevedeich
            wrote on last edited by
            #8

            Sad but true.

            Signature construction in progress. Sorry for the inconvenience.

            1 Reply Last reply
            0
            • J Jeroen De Dauw

              You should commend them! Seriously, this is good work. If you consider that most people touching code are idiots, it's always good to duplicate code around, so that if someone messes up one copy, only a small part of your app gets broken, rather then the whole thing.

              Jeroen De Dauw (blog | Twitter | Identi.ca)

              K Offline
              K Offline
              krumia
              wrote on last edited by
              #9

              Yeah! Considering most people touching the code are idiots, we can be sure that they will mess up with something like SVN too.

              Peace, ye fat guts!

              1 Reply Last reply
              0
              • L Lost User

                if (RegistryKeyExists()) {
                /* 113 lines of code */
                } else {
                CreateRegistryKey();
                /* Same 113 lines repeated here */
                }

                What should we do with such "programmers"?

                Sander RosselS Offline
                Sander RosselS Offline
                Sander Rossel
                wrote on last edited by
                #10

                Shameel wrote:

                /* Same 113 lines repeated here */

                I am sure you misread. There is probably one variable just slightly different which would completely justify the duplication :)

                It's an OO world.

                public class Naerling : Lazy<Person>{
                public void DoWork(){ throw new NotImplementedException(); }
                }

                J S 2 Replies Last reply
                0
                • M Mohibur Rashid

                  Really? is this how you protect your code?

                  A Offline
                  A Offline
                  Al_Brown
                  wrote on last edited by
                  #11

                  No - it's how he protects his job :)

                  1 Reply Last reply
                  0
                  • Sander RosselS Sander Rossel

                    Shameel wrote:

                    /* Same 113 lines repeated here */

                    I am sure you misread. There is probably one variable just slightly different which would completely justify the duplication :)

                    It's an OO world.

                    public class Naerling : Lazy<Person>{
                    public void DoWork(){ throw new NotImplementedException(); }
                    }

                    J Offline
                    J Offline
                    JeremyBob
                    wrote on last edited by
                    #12

                    I was thinking the exact same thing :-D

                    1 Reply Last reply
                    0
                    • Sander RosselS Sander Rossel

                      Shameel wrote:

                      /* Same 113 lines repeated here */

                      I am sure you misread. There is probably one variable just slightly different which would completely justify the duplication :)

                      It's an OO world.

                      public class Naerling : Lazy<Person>{
                      public void DoWork(){ throw new NotImplementedException(); }
                      }

                      S Offline
                      S Offline
                      Stefan_Lang
                      wrote on last edited by
                      #13

                      Yeah, probably some string value somewhere contains an O instead of a 0 ;)

                      1 Reply Last reply
                      0
                      • R Rahul Rajat Singh

                        You dont have to do anything. eventually the employer will promote them to "managers"

                        S Offline
                        S Offline
                        SASS_Shooter
                        wrote on last edited by
                        #14

                        However, once promoted to a manager they then make decisions on how all programmers should write their code. And they use their own code as a perfect example. Had one manager who refused to let any developer rewrite the systems that the manager had written!!!

                        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