Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Cheating while programming

a) While programming, does copying other's code considered as copying? Please tell me what all are considered as copying ??

b) In a project having more than 10000 lines of code, 20~30 lines of code, are directly copied and pasted. Can I take credit for the project I've built?

3 Answers

Generally speaking, while you're learning you shouldn't be copying code with copy and paste. At the very least, if you need to copy the code then hand write it, so at least you're committing the syntax to memory as you write. Copy and paste serves you very little in the way of actually learning anything. You're only cheating yourself if you do it a lot.

To answer you questions specifically, if you're copying the code directly, you need to state that in the project and if you are licensed to use the code, than declare your source and give them credit, otherwise that would be plagiarism, just like in the 'real world.'