36
I was at a library coding meetup when I realized I was doing it all wrong
I was at the downtown library last Saturday, trying to follow a Python tutorial on my laptop. The guy next to me, who was building a simple website, just glanced over and said, 'You're typing everything out from the video, aren't you?' I was. He showed me how he just copies the example code first, runs it to see it work, and then goes back to type it out himself to learn. That one tip saved me like 2 hours of frustration. How do you guys actually practice with new code examples?
3 comments
Log in to join the discussion
Log In3 Comments
the_sandra2mo ago
Used to copy every line perfectly until it broke. Now I paste the whole block, run it, then break it on purpose to see what happens. Messing things up actually taught me more than getting it right the first time.
6
hernandez.brooke2mo ago
That "break it on purpose" method is so true, @the_sandra. It's like the best way to learn how anything works is to see what happens when it stops working. We're kinda taught to avoid failure, but messing up is how you actually figure stuff out.
2
the_ben1mo ago
Ever try that with a whole project, not just a block? Like, @the_sandra, do you ever paste a full script and then just start deleting random bits to see what's actually needed?
4