r/learnprogramming • u/Fonzie3301 • 20d ago
Questions about learning from AI
I have noticed some developers online warning beginners against learning from AI generated code, but personally i find that i learn better when i do that and its much more effective than watching tutorials and lectures
I remember reading a tweet about creating rules and constrains then let the AI generate and decide whether the result is valid or not without reading a single line of code!
Btw, i dont blindly copy/paste results without understanding anything, i read it, ask questions, understand why its implemented that way, and so on...
So, my question for experienced devs is why so many developers discourage this approach? is there any real downside am overlooking or is the problem mainly how people use AI?
10
u/desrtfx 20d ago
Could you write your code completely without AI? If not, then you have the reason for us experienced people telling you to not use it.
Reading and understanding code and writing it are two completely different skills, just like reading and understanding novels and writing comprehensive, meaningful, fully developed ones. Just because you can do the former, you can't do the latter.
If you let AI generate the code, you are not learning. Period.
You need to learn to devise, develop, and generate your code without AI.
Watching tutorials or lectures is also not the way to learn. Actively programming is. Look at the MOOC Python Programming 2026 from the University of Helsinki. That's how a course has to work. You as the learner have to do the majority of the work.
3
u/SetAndRepeat 20d ago
Learning from generated code can be useful. The concern is that understanding an explanation while reading it doesn't necessarily mean you can apply the idea yourself. Tutorials have the same problem. With AI, there's also the risk of getting a convincing explanation for something that’s wrong.
Keep asking questions, but occasionally close the example and build a small variation yourself. Can you change the requirements or debug a failure without immediately asking AI? That gives you a better check on what you’ve learned.
The "validate without reading code" approach is a different goal. Tests can miss cases, and writing useful constraints requires understanding what could go wrong. Getting working output and learning how to build it are separate achievements.
2
u/mxldevs 20d ago
How are you learning better when you aren't even reading the code?
2
u/wholsum_ 20d ago
I'm no experienced dev but I've coded projects before and after AI and from my experience it's the awareness of your code which gets worse. Before, a bug would take more time and sometimes you would copy paste a solution and pray but you knew what part of your code wasn't clearly understood by you, if that makes sense to you. This made fixing your weak areas better.
Now when AI writes the code, your understanding is limited to cases you can think of at the time of generating that response to understand how it works but without those small bugs etc. you're not as aware of the code as you would've been before. This is what I feel. So I code by myself for the most part. And only use AI to get guidance in debugging the code. Instead of it handing me the solution.
Skipping the thinking makes you write worse code, personal experience. Then you never learn about your little mistakes which are automatically resolved by AI when it generates code for you. That's my take on coding with AI. I'm not against it but you still should write code yourself as much as you can and only refer it as a faster stack overflow. If that makes sense.
8
u/Lost-thinker 20d ago
Because most people don't truly learn and try to understand the code they get. And also never learn the fundamentals.
2
u/bestjakeisbest 20d ago
As long as it works then it works, however if you are learning how to program, try not to use ai. It can be useful as a rubber ducky or a wall to bounce ideas off of, like if you have questions while studying or working through toy examples, but when you are learning you should be using your own mind to process things as much as possible, you should be solving problems using your own process not ai, because if you let ai handle it you will never learn.
Also for programming, the actual programming part might not be a whole lot of what you will actually do, a lot of the job is understanding what the customer needs, what/who will be impacted by changes, and what concessions do you have to worry about, when you do this all you are setting up the constraints for your program, and if you make sure there are no holes, you can let ai run amok in that little constrained space. But not all solutions have a heavily constrained space some have gaps that will technically let you write a working program but might not follow what you thought you wanted.