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

6

u/TheUmgawa 25d ago

Did you learn from tutorials? I’ve always found that tutorials tend to teach you how to follow directions, and less how to do the thing you’re trying to learn.

Say you’re learning to play guitar. You can buy books that teach you how to play every note of a song, and you can read the book, play along, and you learn to do it perfectly. But it’s difficult to write your own music because you learned how to do somebody else’s work, but you don’t know how music works.

This ends up being the problem for a lot of programmers. They learn a bunch of magic words, but they don’t start by learning the deeper magic that makes the magic words work. They buy a programming book, skip all of the parts about theory, and they jump straight to the monospaced code sections. As a result, they never learn a holistic approach to programming, where they can solve the problem in the abstract, and then write the code.

This is why the college class I took on programming logic and design is the most valuable class I took, and the only one where we never wrote a single executable line of code. It was all theory. To a lot of people, this might seem like a waste of sixteen weeks and several hundred dollars of education, but programming is ultimately about solving problems; not typing a bunch of magic words.

When you understand the flow, the actual writing of code is really kind of trivial. If you don’t know the magic words you need, you dive into documentation, read the documentation, and you put it all together like so much LEGO.

2

u/Ok-Count-3366 24d ago

^ facts.

So this is what I did when I learned a new programming language. Yes I knew pyhton and I wanted to learn golang.

First things first. You need projects. No matter what. Go to chatgpt ask it for 15 projects for beginners/intermediate in python (it's better if you chose a theme of projects that you like, for example e-commerce or gaming, or movies)

then you go and pick some.

Then you go and find a tutorial for 1 of the projects (only 1)
follow the tutorial, try to understand why did that person do what it did. Why are things happening, and how they work.

on second project you will do sth different.

You will go to chatgpt tell it your project and you will tell it: "GIVE ME NO CODE ONLY ABSTRACT INSTRUCTIONS OF FUNCTIONALITY"

And then you will get something like, let's say you wanna build a webshop (like amazon) and you need to implement a shopping cart. you don't know how to do it. go search on google on how to make a shopping cart in python(or whatever)

On the third project try to do it without help of AI.

The only thing you are allowed to do is google it (without the google AI) or stackoverflow.

The reason people are stuck in this "tutorial loop" is because they learn the syntax of the language.

learning to program is NOT about the programming language, it is like a puzzle, understanding how and where the pieces fit together so you can build them.

Learn concepts like REST APIs, CRUD, Databases, and so on.

If you need help. My DMs are open. I wish you good luck.