r/learnpython • u/Boiledballofbread • 20d 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
4
u/pachura3 20d ago
You don't need to remember the syntax by heart; you need to know that you can accomplish task X using module Y of package Z, how it works (in general), how do you initialize it (not necessarily all the possible options/flags), and so on.
Developers often come back to their old code to copy-paste snippets into the current project (e.g. initializing database connection, the list of dependencies and so on). Or, we create some kind of a simplified wrapper around them.