+ 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 ?

21st Jul 2017, 5:10 AM
Chokri ZAGROUBA
Chokri ZAGROUBA - avatar
7 Réponses
+ 4
git checkout branch_other_directory $your_file👍
21st Jul 2017, 5:36 AM
Chokri ZAGROUBA
Chokri ZAGROUBA - avatar
+ 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...
21st Jul 2017, 5:16 AM
Aubrey Love
Aubrey Love - avatar
+ 1
yep it's correct, but I'm talking about copy/paste from stack overflow and internet
21st Jul 2017, 5:21 AM
Chokri ZAGROUBA
Chokri ZAGROUBA - avatar
+ 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.
21st Jul 2017, 5:23 AM
Aubrey Love
Aubrey Love - avatar
+ 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.
21st Jul 2017, 5:29 AM
Chokri ZAGROUBA
Chokri ZAGROUBA - avatar
+ 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.
21st Jul 2017, 5:31 AM
Aubrey Love
Aubrey Love - avatar
0
That is pretty much it.
21st Jul 2017, 5:37 AM
Aubrey Love
Aubrey Love - avatar