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. Copy and paste nightmares!

Copy and paste nightmares!

Scheduled Pinned Locked Moved The Lounge
questioncareer
14 Posts 9 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.
  • J Joe Simes

    boarderstu wrote:

    Any takers on how I can tackle this one?

    Don't forget to wear a condom! ;)

    B Offline
    B Offline
    boarderstu
    wrote on last edited by
    #5

    saves on cleaning up?!

    1 Reply Last reply
    0
    • B boarderstu

      I've been at my job about 6 months... and I'm forever hearing my boss telling me during estimates "that'll be easy - it's just copy and paste right?" Now everyone knows - copy and paste just spreads software bugs like Aids... Any takers on how I can tackle this one?

      A Offline
      A Offline
      AspDotNetDev
      wrote on last edited by
      #6

      boarderstu wrote:

      copy and paste just spreads software bugs like Aids

      Yeah, secretaries should not be programming.

      [

      S<T>::f(U) // Out of line.

      ](http://msdn.microsoft.com/en-us/library/8yk3t00s(v=vs.71).aspx)

      1 Reply Last reply
      0
      • B boarderstu

        I've been at my job about 6 months... and I'm forever hearing my boss telling me during estimates "that'll be easy - it's just copy and paste right?" Now everyone knows - copy and paste just spreads software bugs like Aids... Any takers on how I can tackle this one?

        E Offline
        E Offline
        Ennis Ray Lynch Jr
        wrote on last edited by
        #7

        I was tasked fixing a bug. I fixed it. Two days later it reappeared, my boss yelled at me. I searched for it, hrmm, I guess I forgot to check-it in, refix. Done. Next day same error, got chewed out for an hour. WTF! I did some research, a novice programmer was copying and pasting the code in question EVERY WHERE he needed it. 15 instances! Did I get an apology from the boss, no. Apparently I was supposed to know that copy and paste was the standard and predict that someone else was actively copying and pasting code THAT NEVER WORKED IN THE FIRST PLACE! Sorry for the yelling. But I can live with some copy and pasting, what I can't live with is developers that don't test any code they right. If it builds it ships is a crap methodology.

        Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. I also do Android Programming as I find it a refreshing break from the MS. "And they, since they Were not the one dead, turned to their affairs" -- Robert Frost

        A K 2 Replies Last reply
        0
        • E Ennis Ray Lynch Jr

          I was tasked fixing a bug. I fixed it. Two days later it reappeared, my boss yelled at me. I searched for it, hrmm, I guess I forgot to check-it in, refix. Done. Next day same error, got chewed out for an hour. WTF! I did some research, a novice programmer was copying and pasting the code in question EVERY WHERE he needed it. 15 instances! Did I get an apology from the boss, no. Apparently I was supposed to know that copy and paste was the standard and predict that someone else was actively copying and pasting code THAT NEVER WORKED IN THE FIRST PLACE! Sorry for the yelling. But I can live with some copy and pasting, what I can't live with is developers that don't test any code they right. If it builds it ships is a crap methodology.

          Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. I also do Android Programming as I find it a refreshing break from the MS. "And they, since they Were not the one dead, turned to their affairs" -- Robert Frost

          A Offline
          A Offline
          AspDotNetDev
          wrote on last edited by
          #8

          Ennis Ray Lynch, Jr. wrote:

          developers that don't test any code they right

          Since you were the one who was doing the bug fixing (or "righting") and you failed several times, I am assuming you didn't test the code and that you are a "developer that didn't test the code you righted."

          [

          S<T>::f(U) // Out of line.

          ](http://msdn.microsoft.com/en-us/library/8yk3t00s(v=vs.71).aspx)

          E 1 Reply Last reply
          0
          • B boarderstu

            I've been at my job about 6 months... and I'm forever hearing my boss telling me during estimates "that'll be easy - it's just copy and paste right?" Now everyone knows - copy and paste just spreads software bugs like Aids... Any takers on how I can tackle this one?

            S Offline
            S Offline
            S Houghtelin
            wrote on last edited by
            #9

            I would probably laugh and slap the boss on the back and say "Now everyone knows - copy and paste just spreads software bugs...That's a good one Fred!". Every time your boss sends an email, copy and paste his email and send it back to him. Or just keep sending the same generic reply without ever changing the reply message to whatever your boss sends.

            It was broke, so I fixed it.

            1 Reply Last reply
            0
            • A AspDotNetDev

              Ennis Ray Lynch, Jr. wrote:

              developers that don't test any code they right

              Since you were the one who was doing the bug fixing (or "righting") and you failed several times, I am assuming you didn't test the code and that you are a "developer that didn't test the code you righted."

              [

              S<T>::f(U) // Out of line.

              ](http://msdn.microsoft.com/en-us/library/8yk3t00s(v=vs.71).aspx)

              E Offline
              E Offline
              Ennis Ray Lynch Jr
              wrote on last edited by
              #10

              What are you on about? That I can't spell?

              Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. I also do Android Programming as I find it a refreshing break from the MS. "And they, since they Were not the one dead, turned to their affairs" -- Robert Frost

              A 1 Reply Last reply
              0
              • E Ennis Ray Lynch Jr

                What are you on about? That I can't spell?

                Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. I also do Android Programming as I find it a refreshing break from the MS. "And they, since they Were not the one dead, turned to their affairs" -- Robert Frost

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

                Write.

                [

                S<T>::f(U) // Out of line.

                ](http://msdn.microsoft.com/en-us/library/8yk3t00s(v=vs.71).aspx)

                J 1 Reply Last reply
                0
                • A AspDotNetDev

                  Write.

                  [

                  S<T>::f(U) // Out of line.

                  ](http://msdn.microsoft.com/en-us/library/8yk3t00s(v=vs.71).aspx)

                  J Offline
                  J Offline
                  Joe Simes
                  wrote on last edited by
                  #12

                  Rite!

                  1 Reply Last reply
                  0
                  • B boarderstu

                    I've been at my job about 6 months... and I'm forever hearing my boss telling me during estimates "that'll be easy - it's just copy and paste right?" Now everyone knows - copy and paste just spreads software bugs like Aids... Any takers on how I can tackle this one?

                    S Offline
                    S Offline
                    Steve Mayfield
                    wrote on last edited by
                    #13

                    Response: You provide the 'copy' and I'll provide the 'paste'

                    Steve _________________ I C(++) therefore I am

                    1 Reply Last reply
                    0
                    • E Ennis Ray Lynch Jr

                      I was tasked fixing a bug. I fixed it. Two days later it reappeared, my boss yelled at me. I searched for it, hrmm, I guess I forgot to check-it in, refix. Done. Next day same error, got chewed out for an hour. WTF! I did some research, a novice programmer was copying and pasting the code in question EVERY WHERE he needed it. 15 instances! Did I get an apology from the boss, no. Apparently I was supposed to know that copy and paste was the standard and predict that someone else was actively copying and pasting code THAT NEVER WORKED IN THE FIRST PLACE! Sorry for the yelling. But I can live with some copy and pasting, what I can't live with is developers that don't test any code they right. If it builds it ships is a crap methodology.

                      Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. I also do Android Programming as I find it a refreshing break from the MS. "And they, since they Were not the one dead, turned to their affairs" -- Robert Frost

                      K Offline
                      K Offline
                      KP Lee
                      wrote on last edited by
                      #14

                      Ennis Ray Lynch, Jr. wrote:

                      what I can't live with is developers that don't test any code they right

                      I'm assuming you mean "write", not "right". If they are copy/pasting, did they write anything? (Reminds me of "If a tree falls in a forest...") Unfortunately, I see code get promoted all the time that won't work correctly. Which means it wasn't tested by the coder in the first place. Then again, sometimes I'm guilty. I needed to have something run 5 minutes before midnight, so I coded the job to run 5 minutes before midnight. Worked like a charm, truncated tomorrow's table every time. One minor detail, code is running UTC time, job uses local time. Tester finds the bug the day before I leave. I don't have time to fix. A year later, I'm in a different group, but my former group asks us to review code changes. All the jobs are being routed to a different service center with a different time zone. They come up with a neat idea. Set up these jobs to be scheduled based on UTC time and figure the offset of local time to UTC and set the local time to the desired UTC time. To my horror, this job is scheduled to run at 7:55AM UTC. I tell the team about the original bug and they need to either set the time to 11:55PM UTC time and require the job is rescheduled every time the time changes or run at 10:55PM UTC and accept the job will either be on time or 1 to 2 hours earlier than the desired time. Right now (back then) it is running 16 to 17 hours earlier than the time it should. Even when copy/paste isn't directly used, it sometimes pops up in code.

                      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