Copying Code
-
yes - although you learn it's not the meek that shall inherit the earth, it's the cockroaches & lawyers :laugh:
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
-
yes - although you learn it's not the meek that shall inherit the earth, it's the cockroaches & lawyers :laugh:
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.
-
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? :-)
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
-
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? :-)
-
What he said. :thumbsup:
The difficult we do right away... ...the impossible takes slightly longer.
-
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? :-)
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)
-
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? :-)
-
yes - although you learn it's not the meek that shall inherit the earth, it's the cockroaches & lawyers :laugh:
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.
-
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? :-)
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!
-
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? :-)
-
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.
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 :)