Am I cheating in my programming classes if I copy someone else's code but then I modify it?

Home » Programming & Design » Am I cheating in my programming classes if I copy someone else's code but then I modify it?
Programming & Design No Comments

I get good grades on the tests. Its just really hard for me to write a program from scratch some I copy someone else's and modify it.
so* I copy

Best Answer:

abc: i don't know whether that's cheating or not. since your friends seem agree to give his code to you.
or whether your friend reluctantly agree to give his code to you. situation between you and your friends can become awkward later in the future programming job when money is involved.
later in the future you could feel sorry and not willing to enter programmer job market to let your friend life path as programmer as smooth as possible. because if you exit programmer job market then supply of programmer decrease. while demand for programmer remain.
if supply < demand then average salary for programmer become high.
bad things (judgement), good things(fruit) happen in sabbathical year.
more info :

addition —
cheater usually gets money, in this case you are the 1 who lost money for paying tuition fee. if the school fails to teach all students how to write code from scratch then the school maybe is the 1 at fault. the function of school should have been to teach, not give penalty.

Other answer:

I would say that it depends on how much you copy and how much you modify. If you've just copied someone's solution but then change the code a bit to make it seem like you're original work then that's definitely cheating.

However if you saw a piece of code that gave you a hint about which direction you're supposed to be going into and then figured out the rest yourself and changed the copied code to suit your own needs, then that would be okay in my book.

Programming in the professional world often revolves around modifying code, either your own or from someone else. Programmers use various sources and reference tools to help them out, and in general the kind of coding tests that are used to evaluate a job candidate's skill level (for example: encourage this behavior, as it's closer to how you would actually work on the job.

Ask your teacher. If you feel like you already know what the answer will be to that, then that's your answer
(Hint: It's cheating, but you can change my answer so you pass.)

Also if you can't write a program on your own, then what's the point of a class that teaches it. No one cares if you made good grades on tests.
If you don't care about learning, cheat away. You're obviously never going to become a programmer.

There are two sides to it.

1. I did mistakes in a similar scenario. I started programming since my school days, so by the time I was in for my bachelors, I had a good skill-set made. Other students were troubled grasping concepts so they started to ask me for their programming assignments/semester projects. Being a freshman, I did shared it to the max, did around 15-20 semester projects along with mine for basic programming, and this continued for next semesters.
Now most of my fellows are hardly able to code proper apps, they also accept that taking assignments/projects from me has ruined their ability to code on their own.

2. Some people are naturally poor with programming. They probably end up choosing a field where there's very less or no coding (Like Networks, Database, Algorithm Design/Analysis, Graphics Design, QA, etc). For them, programming courses are only difficult hurdles to cross for their career. It might be not bad for such people to have outside help.

If you feel that you'll be the second case, its okay for you to take help. But had I been in your place, I would have done it all by myself, for learning sake.

Its cheating unless you modify the code to the point where its original. Copying someone's code is doing yourself a disservice. You'll never learn to program like that. You NEED to learn to write your code from scratch.
Graincz CStrike:
A programmer was supposed to write his own program, from scratch. I'm not sure about cheating. but if you want to find yourself one day in an office working as a programmer, then you have to start hit the code harder. copying from other people won't help one bit. I know it hard at first, just stay focus, pay more attention and put your mind to it, then it won't be any hard. make sure to practice very often. it's the one way to success for every programmer.
It depends. If you're copying code from one of your older programs, that's usually perfectly fine. If the book is telling you how to do a nested loop, and you copy the generic nested loop example that they give and modify it so it fits your homework, that's probably OK – you're pretty much going to have to use that code or something very similar anyway. If you're copying a fellow student's assignment and just changing the variable names and other minor things so it looks different, then that is 100% cheating.
Programming classes are usually based on showing you the textbook author's code and then your assignment is usually a version that is a modification of the example, plus modification of code from previous chapters.

But you can't use that as an excuse for outright cheating.

If it feels like cheating, then it probably is.

When I learned to program over 40 years ago, there was no internet and I used no other resources than my textbook. You are supposed to be able to complete your assignments without using other sources.

Smokies Hiker:
I'm wondering how you would feel if your doctor would have asked a similar question about copying another medical students answers on a test, and then modifying a few of them.
I used to do that in my previous programming class and found that not only did I learn NOTHING- it made the class I'm currently in way harder. It will only make it way harder in the end. Also, if you copy code online and it contains something that doesn't quite make sense…the teacher will pick up on it quickly.
I Am Fear:
in my opinion you should write new code each time only way to learn in a job you wont have your classmates code to copy from but if you have an older program copy that it's fine i do it all the time in my java class