At some point, most (all?) of us have "borrowed" code from the interwebs to use in our own code and that seems fine. But is copy-pasting blocks of code from another blog and publishing it in one's own blog considered as plagerism? I see this fairly often. Thoughts?
-
-
I'm wondering where to draw the line between situation 1 and 2. At 5 lines of code? 10 lines?
-
Where you would have to cite in in a research paper as it is no longer common knowledge ?
-
I dunno, it might be "common knowledge" how to calculate the Gini but if you stole my code, you stole my code:https://github.com/oliviaguest/gini …
-
I agree. But I would have to cite your repo. I guess best idea is to cite wherever you got code since you had to look it up.
-
Yeah. I link to StackOverflow comments when I use their functions, even though I know that like me they probably wouldn't care, I also don't wanna pretend I came up with their functions either.
-
That may be too extreme for my own practice, but then again, usually only a small snippet is relevant for me. That said, if a significant portion of my code was inspired by another code, I will cite even if it no longer looks like the original.
-
I'll show you an example where I link to SO. I took this whole function and put it in my code: https://stackoverflow.com/a/22376126
-
I definitely don't not use warnings.filterwarnings('ignore'), so good for you for caring about warnings


- 3 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.