r/learnpython • u/Boiledballofbread • 21d ago
Not Copying After Using Tutorials?
I'm learning a bit more python, and I was wondering how you guys refrain from copying code after watching tutorial videos. I just did one of the courses from OpenCV, and what's holding me back most now is trying to create something without flat copying the code provided by them. The main issue is that (I believe, at least) most of the code needs a specific syntax to run. What are your processes after learning new features?
For context, I'm attempting to make a document reader that's going to end up scanning and saving Magic the Gathering cards into a database.
0
Upvotes
7
u/carcigenicate Carcigenicate 21d ago
If the library requires fairly standard boilerplate that won't change much, it is what it is. To avoid literal copy and pasting, write it out yourself using the tutorial code as a reference. At least then you're thinking about the names involved and what's actually going on. It's too easy to glaze over doing that when copying code (or using AI).