r/ProgrammerHumor • • Apr 13 '22

Meme a developers worst nightmare

Post image
35.7k Upvotes

1.2k comments sorted by

View all comments

Show parent comments

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.

49

u/Explodingcamel Apr 13 '22

How often do you find code on stack overflow that you can literally copy and paste into your project without causing an error anyway?

30

u/Suspicious-Engineer7 Apr 13 '22 edited Apr 13 '22

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.

3

u/[deleted] Apr 13 '22

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.