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. Copying Code

Copying Code

Scheduled Pinned Locked Moved The Lounge
question
22 Posts 16 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.
  • G Garth J Lancaster

    yes - although you learn it's not the meek that shall inherit the earth, it's the cockroaches & lawyers :laugh:

    P Offline
    P Offline
    Peter_in_2780
    wrote on last edited by
    #12

    Hmmm I'm sure there's a cockroach/lawyer joke in there somewhere....

    Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012

    1 Reply Last reply
    0
    • G Garth J Lancaster

      yes - although you learn it's not the meek that shall inherit the earth, it's the cockroaches & lawyers :laugh:

      D Offline
      D Offline
      Daniel Pfeffer
      wrote on last edited by
      #13

      Garth J Lancaster wrote:

      it's not the meek that shall inherit the earth, it's the cockroaches & lawyers

      No; it's only the lawyers. There are some things that even a cockroach won't do. X|

      Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

      1 Reply Last reply
      0
      • A Amarnath S

        Question: Why should I hire a software engineer if I can just copy and paste code from the Internet (CP and other sites)? Answer: It is still worth the money. Because - - Copying code from Internet - $ 0 - Knowing which code to copy from Internet - $ 100000 / year - Understanding that copied code, and fixing it so that it works correctly, and passes all tests - $ 200000 / year - Maintaining that code - $ how much? :-)

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

        I once had a coworker who copy pasted EVERYTHING. Basically, he didn't understand programming, but by copy/pasting (my) code he got by. At one point I told him to use the Enumerable.Any<T>(Expression<Func<T, bool>>) function for something he needed. We used Entity Framework and did things like Where(...).Select(...).OrderBy(...) all the time, but Any(...) wasn't used all that much. So after five minutes this guy's like "Sander, can you help me? How do I use that function?" And I'm like "What do you mean, how do you use it? It's just a function like all the others..." He: "Yes, but what's the Expression thing? I don't get it." Me: "The same you use for Where, Select and OrderBy? :wtf: " He checked it out and was flabbergasted at first, that he'd been using Expressions for the past two or so years. Then he came back because he still didn't get it... He'd never known about Expressions, just that he put in some random character and then => and then some code where the character was "suddenly" the class he (usually) expected. E.g. dbContext.Persons.Where(p => p.FirstName == "Amarnath"); He literally didn't get it because instead of "Where" it said "Any" and that, to him, where completely different things. I think that was when I also found out he thought I invented generics in .NET :laugh: I told him he shouldn't copy paste so much and that if he did he at least had to understand what he copy pasted. Copy pasting is a right you have to earn by first writing it yourself. Unfortunately, this guy really couldn't do anything without copy pasting and the legend goes he's still copy pasting to this day and until the end of times :sigh: Other than that he was a nice guy though, he knew his shortcomings so he wasn't an ass about it, we traded lots of music and generally got along well :)

        Best, Sander sanderrossel.com Migrating Applications to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

        1 Reply Last reply
        0
        • A Amarnath S

          Question: Why should I hire a software engineer if I can just copy and paste code from the Internet (CP and other sites)? Answer: It is still worth the money. Because - - Copying code from Internet - $ 0 - Knowing which code to copy from Internet - $ 100000 / year - Understanding that copied code, and fixing it so that it works correctly, and passes all tests - $ 200000 / year - Maintaining that code - $ how much? :-)

          pkfoxP Offline
          pkfoxP Offline
          pkfox
          wrote on last edited by
          #15

          If you think it's expensive to hire a professional to do the job, wait until you hire an amateur. Red Adair

          "We can't stop here - this is bat country" - Hunter S Thompson - RIP

          1 Reply Last reply
          0
          • Richard Andrew x64R Richard Andrew x64

            What he said. :thumbsup:

            The difficult we do right away... ...the impossible takes slightly longer.

            R Offline
            R Offline
            RossMW
            wrote on last edited by
            #16

            What he said. :thumbsup: And the same goes for comments too...

            A Fine is a Tax for doing something wrong A Tax is a Fine for doing something good.

            1 Reply Last reply
            0
            • A Amarnath S

              Question: Why should I hire a software engineer if I can just copy and paste code from the Internet (CP and other sites)? Answer: It is still worth the money. Because - - Copying code from Internet - $ 0 - Knowing which code to copy from Internet - $ 100000 / year - Understanding that copied code, and fixing it so that it works correctly, and passes all tests - $ 200000 / year - Maintaining that code - $ how much? :-)

              J Offline
              J Offline
              JohaViss61
              wrote on last edited by
              #17

              I do 1, 2, and 3. But I make my living with 4 :-D I've seen too many developers that can do 1 and 2 and if you're lucky, they can do some of 3. Most developers don't want to maintain the code they have written. (at least not for long) When I copy something from the internet, I make it work. Then the fun starts: Refactoring. :cool: I can tweak a piece of code over and over again until it is according to my standards. (Variable names, Latest language constructs, etc)

              1 Reply Last reply
              0
              • A Amarnath S

                Question: Why should I hire a software engineer if I can just copy and paste code from the Internet (CP and other sites)? Answer: It is still worth the money. Because - - Copying code from Internet - $ 0 - Knowing which code to copy from Internet - $ 100000 / year - Understanding that copied code, and fixing it so that it works correctly, and passes all tests - $ 200000 / year - Maintaining that code - $ how much? :-)

                M Offline
                M Offline
                maze3
                wrote on last edited by
                #18

                I like the thing of a painter in Paris. knocks out 3 paintings an hour, charges a high price. "but it only took you 20 minutes". No, took me 20 years of trial and error to learn how to make it look good in 20 minutes.

                1 Reply Last reply
                0
                • G Garth J Lancaster

                  yes - although you learn it's not the meek that shall inherit the earth, it's the cockroaches & lawyers :laugh:

                  F Offline
                  F Offline
                  Forogar
                  wrote on last edited by
                  #19

                  I also did some work as an Expert Witness in a "you copied our code" case. I was able to easily show that the allegedly copied code was actually quite different in structure and method even though it achieved the same end (there's more than one way to skin a cat). The interesting thing is that, to analyze the code, I was paid 5 times what I would have theoretically have been paid to actually write the code! :sigh: I wish I could have done this kind of job more often, it was quite interesting and I could have retired years ago! :doh:

                  - I would love to change the world, but they won’t give me the source code.

                  G 1 Reply Last reply
                  0
                  • A Amarnath S

                    Question: Why should I hire a software engineer if I can just copy and paste code from the Internet (CP and other sites)? Answer: It is still worth the money. Because - - Copying code from Internet - $ 0 - Knowing which code to copy from Internet - $ 100000 / year - Understanding that copied code, and fixing it so that it works correctly, and passes all tests - $ 200000 / year - Maintaining that code - $ how much? :-)

                    B Offline
                    B Offline
                    BryanFazekas
                    wrote on last edited by
                    #20

                    I can only think of a few times I got a snippet off the net where I didn't have to change it to fit my needs, sometimes significantly -- I got the code simply to figure out how to do something. That said, our team standard is to annotate everything, keeping the author info if provided. We also add the URL to articles/blogs/posts on MSDN and other sites if we got an idea or solution. It never hurts to share the credit, there's enough for everyone!

                    1 Reply Last reply
                    0
                    • A Amarnath S

                      Question: Why should I hire a software engineer if I can just copy and paste code from the Internet (CP and other sites)? Answer: It is still worth the money. Because - - Copying code from Internet - $ 0 - Knowing which code to copy from Internet - $ 100000 / year - Understanding that copied code, and fixing it so that it works correctly, and passes all tests - $ 200000 / year - Maintaining that code - $ how much? :-)

                      K Offline
                      K Offline
                      Kirk Wood
                      wrote on last edited by
                      #21

                      If they ask the question - giving them an answer is likely a waste of effort. I prefer to work for a boss who knows why she/he hired me.

                      1 Reply Last reply
                      0
                      • F Forogar

                        I also did some work as an Expert Witness in a "you copied our code" case. I was able to easily show that the allegedly copied code was actually quite different in structure and method even though it achieved the same end (there's more than one way to skin a cat). The interesting thing is that, to analyze the code, I was paid 5 times what I would have theoretically have been paid to actually write the code! :sigh: I wish I could have done this kind of job more often, it was quite interesting and I could have retired years ago! :doh:

                        - I would love to change the world, but they won’t give me the source code.

                        G Offline
                        G Offline
                        Garth J Lancaster
                        wrote on last edited by
                        #22

                        yes, but IP + market forces + "we dont think we'll get caught" = temptation Obviously there's a lot more to it, and a lot more techniques & considerations :)

                        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