What is the view on the ethics at copying the code you find on Stack Overflow? My issue is that I posted a whole source code for a short project where I could not find a small bug that was causing my program not to work. The next day I saw a fellow student using identical code and even asking me about some other assignment where we reuse this same code and slightly modify it. We have to submit our work in few days and probably he will use my code.
Can a person do that without stating who is the author and can I prove my authorship with a Stack Overflow post?
So to have it clear:
- You posted your code, because you couldn't detect the problem yourself
- Someone else with a similiar assignment found your post on StackOverflow
- You want to put this down as plagarism
Before we go any further: Did you copy yourself stuff from StackOverflow (from other posts) that could've helped you?
If yes: Then you should undergo the same consequences as he does right? Since you have done plagarism too then.
If not: Then you're still having plagarism since you took either someone his solution on your own post or the fine-tuned code he gave you over, UNLESS you stated that it is his code / solution you are using (what you most likely have not done).
Now: If not mistaken, the moment you post on StackOverflow it will fall under the "creative commons license".
Now: I want to bet you still have looked up more stuff on StackOverflow for your assignment. Basically doing the same thing as your classmate did, take over the solution or code and adjust it so it fits your assignment.
So bottom line: You seem to be a hypocrite on this one. I am not trying to make you look foolish or trashtalk you, but this is how I see it.
You can downvote me as much as you want, but fact remains: He is a hypocrite on this one. Either undergo the same consequences or tell your little buddy to change his code a bit so you both can remain happy... or the third solution: Put in the authors in your code.