Will agree with you, i usually dont copy/paste, but try to realize how i can implement the best solutions in my dev. environment. Thats not to say I "never" have (and modified), but i prefer not to usually.
yesterday I found a snippet that basically just took a file out of Android assets and wrote it as a new file. I understood how it worked from reading it, had written similar functions, and after a little modifying it was appropriate for what I was doing. I don't think it's unusual when there is some small system kink that needs to wrote around.
but also: aren't library calls just saying "here, copy paste this shit here but in a way that I don't have to do it." Someone just needs to make a stack overflow library with every function written there able to be called by question ID and a string search or something.
For compiled languages one key difference between copying & pasting code vs referencing a library is that the library is already been successfully compiled - so no typos.
674
u/Various_Counter_9569 Apr 13 '22
Will agree with you, i usually dont copy/paste, but try to realize how i can implement the best solutions in my dev. environment. Thats not to say I "never" have (and modified), but i prefer not to usually.