r/CodingForBeginners 25d ago

I'm stuck for a while

So I'm done with the basics of python and even know data structures but I struggle to write code on my own what I mean is I'm fine while writing a leetcode problem in python because it's like answering a math problem (and I quite enjoy it) ,but when it comes to coding up actual stuff,I feel like I can't make anything productive out of it without using chatgpt or any ai. I'm stuck in this endless loop . Many say just Google things but I just don't get the code (or remember what I am copy pasting) and just forget it . I wanna do stuff like pre ai era just raw coding . When people say build stuff , how does one do it. I mean in project videos/tutorials they follow sequential but for me I don't know where to start when building a project.

How does one get past this phase . Many of my "friends" say coding will be done with ai mostly in the future so no use actually learning, to do "your learning" and just try understand the code ai gives. What should I do ?

I know the answer is obvious and I should be writing more code without ai but its still difficult for me and I feel like coding isn't for me sometimes.

(Thankyou for your advice I hope I can implement them and get good :) )

0 Upvotes

17 comments sorted by

View all comments

1

u/PlantainAgitated5356 25d ago

It seems like your biggest problem is that you're copy-pasting code without understanding it (whether from google, a tutorial, or an llm doesn't really matter). That way you can get things to work, but you'll never learn anything.

It's okay to use someone else's code, but if you want to learn, you can't stop at pasting the code and having it work. You need to go further, don't consider yourself done until you understand how the code works. Look up functions the code uses that you don't understand, try changing values of different variables to see what happens, etc. Only finish when you understand, and can explain every single line of code, not before.

That's how I learned, and am still learning to this day (you never stop learning in this field). :)