🎙️
13

Shoutout to the person who told me to stop copying code line by line

Ngl, I was stuck for 2 weeks trying to build a simple weather app in Python. I was just copying each line from a tutorial without thinking. Then my friend in Chicago asked me to explain what the 'requests' library actually did, and I totally blanked. That's when I realized I wasn't learning, I was just typing. Now I try to write each function myself first, even if it's wrong. How do you guys make sure you're actually understanding the code you're working with?
3 comments

Log in to join the discussion

Log In
3 Comments
henderson.oscar
Is copying code that bad though? Sometimes you just need to get something working first.
8
mason.brian
Funny how this happens with everything, not just code. You can follow a recipe exactly but still not know how to bake. The real trick is messing it up on your own first, like trying to make pancakes without looking. That failure forces you to see what each part actually does, which sticks way better than perfect copying.
4
averymartin
Copying code first helps you see how things actually work in practice.
0