+ 3

Copy and paste code?

Should i copy and paste code if I understand and know how to modify it? Or should i always write it from scratch?

6th Feb 2020, 6:59 PM
Wesley Coleman
Wesley Coleman - avatar
18 Answers
+ 21
As long as you understand the code completely then you can do that but if you have time, you might as well write it by yourself because it is a good feeling when you complete a code all by yourself.
6th Feb 2020, 7:02 PM
Avinesh
Avinesh - avatar
+ 12
as u want To be honest : If my professional developer type too much I always get nervous. I like the sound of CTRL C CTRL V For learning I would prefere writing from scratch .
6th Feb 2020, 7:02 PM
Oma Falk
Oma Falk - avatar
+ 8
Should i copy and paste code if I understand and know how to modify it? Or should i always write it from scratch? _______________________________ If you understand it and know how to properly modify it without infringing, however may not be modified or infringed upon in some cases ( and still give credit to the original author/copyright holder & possibly MIT licencer ) then you may get by with it. If you are just c&p for learning however then there is some agreement as use for academic. If the author / copyright & or licensee says to stop using his or her material then stop... If it is material / digital property you already created then sure go ahead... I may not have covered every aspect but I think this covers the basics of c&p terms of use. btw, you always learn something new when writing from scratch...
6th Feb 2020, 7:28 PM
BroFar
BroFar - avatar
+ 4
thanks guys, i just wanted to know if it was bad practice to do so. thanks again :)
6th Feb 2020, 7:28 PM
Wesley Coleman
Wesley Coleman - avatar
+ 4
It so much helps to write your own codes as you get to master the art of coding and that of correcting your own mistakes irregardless of whether you are a master of coding or you are a newbie. Nothing hurts in trying. Question if you are a master then why would you copy?? I've often found out that there are many ways of writing the same codes resulting in different aids of learning. Mind you learning doesn't stop so better write your own codes
8th Feb 2020, 3:35 PM
Buhle 💃💃💃
Buhle 💃💃💃 - avatar
+ 4
I kill my coder if they a) don't google b) don't copy&paste this is professional area in educational area rewriting is preferable.
18th Jul 2020, 7:21 PM
Oma Falk
Oma Falk - avatar
+ 3
Zone and Sali65 that is one reason why we rely upon you all in the community to be our eyes and ears. Some here do use identifiable methods in their codes but you all know your followers and following codes and can usually find them faster.
14th Aug 2020, 2:32 PM
BroFar
BroFar - avatar
+ 2
yeah if i am learning or practicing, i look at code references to find out how it works and try to write it myself.
7th Feb 2020, 12:58 AM
Wesley Coleman
Wesley Coleman - avatar
+ 2
Yes it's OK if it's your own code or you acknowledge the original source.
7th Feb 2020, 2:40 AM
Sonic
Sonic - avatar
+ 2
In my opinion, I think you should write it whatever you think you understand it well. Because you may discover new things while rewriting the code, or new ideas can improve your code. Because often, we think that we understood things, but all there is, that we only get an idea of ​​them, but with many practice and reconsideration, it makes us realize that we were very far from understanding it. (Sory for my bad english).
8th Feb 2020, 2:09 PM
Rafik Abdelhak Nadir
Rafik Abdelhak Nadir - avatar
+ 2
I think you should either copy-paste, give credit, learn it on your own, and you done it!
14th Aug 2020, 2:27 PM
Sali65
Sali65 - avatar
+ 1
As long as you are infringing on copyrights then copy and paste
8th Feb 2020, 2:08 PM
Joshua Evuetapha
Joshua Evuetapha - avatar
+ 1
Copy and paste if necessary. With machine learning, I copy and paste the Pandas code at the start so I can get started straight away in Scikit. It's very tedious rewriting certain things
18th Jul 2020, 7:48 PM
Clueless Coder
Clueless Coder - avatar
+ 1
I recently started asking myself this same thing... I think the point is to just understand the code and what's happening in it. I would think people copy and paste all the time... Even on this app, what's to stop someone from copy and pasting your work and claiming it as there's? You wouldn't really know unless you stumble upon it
14th Aug 2020, 2:26 PM
Zone
Zone - avatar
0
It saves getting carpal tunnel so no problem. That is 1 big upside on copy and paste just once you dont completely copy 1 persons code. Learn from many is a good way to go.
8th Feb 2020, 6:50 PM
Codingiseasyas0123
Codingiseasyas0123 - avatar
0
Use functions
18th Jul 2020, 7:13 PM
Sali65
Sali65 - avatar