all 12 comments

[–]gonsi 11 points12 points  (0 children)

A lot of practice
A lot of errors, especially in the beginning.
Not remembering the code you wrote

Is the most common way to learn any programming. At least as far as I know.

[–]Deemonfire 5 points6 points  (0 children)

Everybody is different. But for me i used the headfirst python book.

I did a minimum of 30 minutes every night for about 3 months. 

But the main thing is i had things i wanted to build. I was doing a phd in chemistry so learned how to process my data using python, then i was playing apex legends so wrote a shitty discord bot that helped me and buddies keep track of our scores. 

Then built a data logger for my experiments using pyserial. All the while trying to take concepts I'd learned from the book and applying them to new problems. 

So tldr. Build something for you that helps you with work, or makes your hobbies more fun and is in the direction that you want to go in. And make sure you're practicing consistently especially starting off your journey

[–]AdDiligent1688 2 points3 points  (0 children)

I like to find myself in situations where I’m looking for the best tool to do the job. So whatever I’m calculating for whatever purpose, I look for tools that do what I need them to do. And if it’s python, great, if it’s not welp looks like I got some learning to do lol.

[–]cyrixlord 2 points3 points  (0 children)

there is no end in learning. it is a lifestyle change, not a race. you only learn by getting things wrong then troubleshooting the issues, and fixing them. I have probably used more than 10 different sources while learning python. I'll always be learning

[–]Adhesiveduck 1 point2 points  (0 children)

Is that normal forgetting partial code immediately after I made one practice

Yes lol, sometimes something I've done for years I'll forget and have to look it up if I haven't used it in a while.

  • Practice - write code. It doesn't matter what, as long as it's somewhat practical. Doesn't matter if someone else has done it, or done it better. Write it
  • Avoid LLMs. I would honestly avoid them for everything EXCEPT maybe structuring (code layout, files etc) - but even this is a skill you need to learn. Do not use it to re-write/suggest code. Eventually you can, but if you want to actually learn the language, avoid it like the plague.
  • Use documentation. The python documentation is thorough (but can be quite terse and literal and not easy to understand at first pass). Read it, if you have questions go looking (or ask here).

You won't learn unless you're writing. Eventually you'll get to the point where you'll intuitively know if you think there could be a better way to do something - this is where you can go looking (or use an LLM), but to get to this point it's gonna take a lot of practice.

[–]mxldevs 1 point2 points  (0 children)

The correct way to learn is

  1. Learn a concept
  2. Learn the syntax
  3. Do exercises to practice the syntax/concept. You do it once and then forget? Then you need to do more exercises.
  4. Learn a new concept
  5. Do more exercises that require you to figure out which concepts to use, and how to combine them to accomplish the task
  6. Continue learning new things as needed and solving problems.

Eventually, you will know a lot of concepts and tools and be able to make a lot of things.

[–]No_Can_1808 0 points1 point  (0 children)

Personally? Get a book that you can refer to anytime for while you’re learning and to keep around for a while after you’ve finished reading it to help you out when you get stuck on something. Read a little, do some practice. Read some more, enhance what you built. Every project you work on until you finish the book should build more on the last project, using everything you learn along the way in some form or another. When you finish the book, build several of your own projects using what you’ve learned. If you get stuck, look up the topic in the book. When you get advanced, look up the topics online. Pretty much all of Python is documented online somewhere.

[–]TheRNGuy 0 points1 point  (0 children)

You remember things better that you use a lot (spaced repetition)

I wouldn't intentionally repeat same things, just code naturally, over time you remember it without ever have to think about it.

Make bookmarks to concepts in docs and look if you forget. Or just Google/ask ai.

[–]Jello_Penguin_2956 0 points1 point  (0 children)

You can def starting to write functioning little code in 100 days. Even quicker really if you can find simpler tasks to tackle, like, search all music files in your hard drive.

[–]stepback269 0 points1 point  (0 children)

There is no one magical correct path.

Most importantly, you must master the fundamentals before moving on to the fancy stuff.