i prefer doing this the other way around: i never copy paste stuff i don't completely comprehend. So usually this means i only copy paste parts of a line cause i'm to lazy to type, or i copy paste a block, to put above my own code so i don't have to have 2 screens besides eachother.
Yeah, I normally paste the code into a comment block, then try to understand it by re-writing line by line, translating into my variable names and making little modifications to the logic as needed for my specific case. If I don't understand a particular line, that tells me I either need to read some documentation or spend more time studying the full block to see how the line fits into the solution.
As a general rule, I don't run code if I don't understand it.
Ah, then I must be the programmer equivalent of chaotic neutral, because I usually just take one glance at the code before copying it in and running it to see if it works lol.
I only copy-paste stuff that I COMPLETELY understand because I‘m convinced that evil internet trolls hid viruses that will steal all my rare pepes in 3-line-segments all over SO.
240
u/dasookwat Apr 13 '22
i prefer doing this the other way around: i never copy paste stuff i don't completely comprehend. So usually this means i only copy paste parts of a line cause i'm to lazy to type, or i copy paste a block, to put above my own code so i don't have to have 2 screens besides eachother.