so I am making a website for myself. I need code about how to get distance from top to an element, and I found it from SO. I'm aware that copy pasting big chunks (a function of 11 lines) of code is not something I should be doing too much. Is it helping me to learn new things if I copy the code and go through it step-by-step, or is it bad to copy code about things that I don't understand?
I understand that searching for, for example "how to reverse a string" is completely fine, but I feel like I'm a bad dev, when I search for harder things I have no clue how to solve. What do you guys think?