I thought copy-pasting code was cheating, then a guy on the bus in Dallas set me straight
For my first 3 months of learning Python I retyped every single example by hand from the tutorials. Took forever and I felt like I was learning more that way. My fingers typed the same for loop about 500 times but my brain never really got it. Then I was on the bus home from work and this guy two seats over saw my screen and asked what I was stuck on. I told him I was scared copying code wouldnt teach me anything. He laughed and said he's been a dev for 11 years and still copies from Stack Overflow every week, the skill is knowing what to copy and what to change. He told me to paste a snippet, break it on purpose, and see if I could fix it. I tried that with a simple function that sorts names and learned more in 20 minutes than I had all month. Now my rule is paste it first, then rewrite it from memory later. Does anyone else feel weird about pasting code when they're first learning, or is that just me?