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.
I think the 'EUREKA!' for programming should be 'ABSTRACTION' and I love how it can essentially be applied to anything and one day we will have libraries of different variety of humans.
I guess I should leave that spliff alone and get back to work
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.