I spent my first year of coding retyping stuff line by line from tutorials so I could "learn it properly" and feeling real proud of myself. Then I watched a senior dev copy half a function from Stack Overflow in like four seconds and move on with his day. That was the moment my whole view on this fell apart. Now I copy paste stuff all the time but I do try to read through it first so I actually know what it does. The trick is knowing when to copy and when to write fresh, and that only comes with time. Nobody builds anything from scratch anymore, we all stand on each other's work.