r/learnpython • • 2d ago

After a while of learning programming

So I am stuck in tutorial hell for a long while and I had to realize that I have no idea what a program’s code looks like so I can’t compare myself from it and can’t learn from it. And tutorials don’t give practice lessons for some reason.

7 Upvotes

13 comments sorted by

View all comments

5

u/mc_pm 2d ago

Start by typing in the code as you watch. When they type in code, you type in code. When they run their code, you run yours - and if it doesn't work you stop right there and figure it out (figuring out why something doesn't work is half the job).

Once you are used to typing in the code, it'll be easier to start fooling around with it, making small changes to see what happens, etc. Then, once you can type in the code and get it to work, then it's time to start solving little problems.

2

u/TJATAW 2d ago

Also, at the end of each tutorial, find some new feature, or multiples, to add to the code. Something you will have to research and do all on your own with no one telling you what to write.

I did a tutorial that created a browser based note taking app.

I added a time stamp to the notes, then created a way to see the notes organized by date, then a way to edit the timestamps so I could have them spread over multiple dates, then a calendar that showed me the number of notes on that date, and clicking on the date showed me all of that notes from that date, then I put in a feature to tag the note by project, so then I needed something to show me all the notes for that project....

I currently use that system to track what I do at work. It was invaluable for myself evaluation, as I had notes for everything I did, for every project I worked on, everyone who was involved with those projects, etc.

All in a simple note taking app I built in a tutorial.

1

u/Adbelhak_Unsicker 22h ago

so true, passive watching feels productive in the moment until you actually open an empty file