Students majoring in computer science must at least learn the source code before they can engage in a lot of related computer work. First of all, we should understand that since our parents paid for us to go to college, they didn't let us copy other people's homework. If you don't study hard in your own major, there is really no need for this university to continue studying. But in reality, there are still many students who can't take their studies seriously. This is also a very important reason why many college students can't engage in this major after graduation.
On the other hand, consider that someone wants to copy your source code. If we agree, this identical code will appear in front of the teacher, and the teacher will certainly not treat the plagiarist and the plagiarist differently. At least the teacher will think that neither of you respects him. The students who copied the code were all copied by the teacher and misunderstood by the teacher. You must never do something that is not worth the candle.
We can also consider personal learning and development. If you let your classmate copy your source code, he can't learn knowledge this time, so the knowledge behind him will naturally be less, and he can't learn either. With this kind of code plagiarism, he will copy your code again next time, so this professional knowledge, the plagiarist naturally learned nothing. When the exam comes, he naturally can't answer it, and then he may copy it in the examination room, and then he will be punished for violating the discipline of the examination room. Such a chain reaction is like a butterfly effect, and it will not have a good ending in the end.
Therefore, don't refuse others to copy your source code because of temporary good face. This will eventually harm others and yourself.