On Sat, Dec 19, 2009 at 6:08 PM, Henning Brauer <lists-open...@bsws.de> wrote:
> * Floor Terra <flo...@gmail.com> [2009-12-19 16:47]:
>> But in my experience copy/paste of code in any language is dangerous.
>
> [ ] you have ever seriously used C
>
> heck, even perl.
>

In my experience (mostly python and c), code that has been pasted has
a higher bug density.

This is because most of the copy/paste goes like this:
1) Write some loop
2) Need similar loop
3) copy/paste old loop
4) Modify pasted loop (but forget one tiny change)
5) New loop has bug

It's worse with Python because of the indentation (tabs vs. spaces),
but as a general rule I would say never copy/paste code.

-- 
Floor Terra <flo...@gmail.com>
www: http://brobding.mine.nu/

Reply via email to