+ 2
Copy And Paste Programming
copy paste code will probably have issues (bugs) which will be a nightmare to resolve. are you agree ? is it always helpful ?
7 Answers
+ 4
git checkout branch_other_directory $your_fileđ
+ 2
There are sometimes when copy and paste can be done. Example... You have a text class setup for multiple div classes but need different colors... You "could" copy and paste, the change the color... Or just change the color in each div class. Choices, choices...
+ 1
yep it's correct, but I'm talking about copy/paste from stack overflow and internet
+ 1
I see. I have done that in the past... "N00b" days... Don't judge. But if you are on a schedule, or just learning... Yes copy paste. This way you can test code snippets inside if your code prior to creating your own elements/class/attributes/etc.
+ 1
mybe at home you can do it but at work when you delivery your code, it becomes difficult to maintain source with a lot of bugs.
+ 1
Very true... There are a couple of ways around that... Git and double copies of your work...
Git= checkout branch test_xyz
Double= copy the code into another directory.
0
That is pretty much it.