The tag has no wiki summary.

learn more… | top users | synonyms

38
votes
14answers
10k views

Do most programmers copy and paste code? [closed]

I learned very early on that cutting & pasting somebody else's code takes longer in the long run that writing it yourself. In my opinion unless you really understand it, cut & paste code will ...
26
votes
17answers
2k views

What's a good, concise way to explain the dangers of copy-paste programming to non-programmers? [closed]

I'm looking for a good analogy or metaphor that could illustrate the problems of copy-paste programming to non-programmers. I occasionally do code/system reviews for potential clients, and one of the ...
10
votes
15answers
4k views

Is copy & paste programming bad? [duplicate]

With plain Google as well as Google Code search tools it is easy to find how to program using some resource or solve certain problems (such as create a Java class, or an FTP block in Perl, etc.). So ...
5
votes
3answers
196 views

When is 'cloning', rather than reusing, a module acceptable design solution?

For this question, I'll give an example module to facilitate the discussion, Let's say the module is a calculation engine, It currently servers its purpose for its current audience. The requirement is ...
4
votes
3answers
253 views

How to avoid programmers duplicating code [duplicate]

While I know in a perfect world where a greenfield application was scoped out from day one with great BRD's and a competent development lead constantly reviewed code by their underlings to avoid this, ...
3
votes
5answers
1k views

Is “watermarking” code with random trailing whitespace a good way to detect plagiarism?

Consider this: int f(int x) { return 2 * x * x; } and this int squareAndDouble(int y) { return 2*y*y; } If you found these in independent bodies of code, you ...
3
votes
3answers
1k views

Am I a code monkey? [closed]

I just tried integrating my website with facebook. I got a lot of copy-paste code from the facebook developers site. I just put the code and it works fine. Do you call this kind of programmers "code ...
2
votes
4answers
354 views

Is it ok to store code and use it later?

I've been programming for the many months. What I've found is : My team leader illustrates to me the project. I start up with an empty project. For many common tasks (like calling webservice, ...
1
vote
4answers
276 views

is it considered plagiarism to comment out code I copied from elsewhere?

If the plagiarized code is commented out because I found another way to solve the problem, but I forgot to remove the comments, is that considered plagiarism? I used the copied code to help me debug ...
1
vote
2answers
125 views

Is the copy/paste approach professionally viable when working with the Google Maps API?

I find that I understand much of the Javascript concepts used in the Google Maps API code, but then again there is quite a bit that is way over my head in syntax. For example, the geocoder ...
0
votes
2answers
203 views

Is it legal to reuse code from a “programming cookbook”? [closed]

I have just found a perfect fit solution for a problem I was having in O'Reilly's Perl Cookbook. The problem is, the book is copyrighted, and I could not find anything that looked like a license to ...
0
votes
4answers
200 views

When copy/pasting private methods is it necessary to carry along the Javadoc? [closed]

So, unfortunately, I'm stuck with code where I'm doing this: @Override method A{ //calls private methods 1-8 } private method 1{ //copy/pasted } And so on for all of the private methods. ...