r/learnprogramming • • 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?

0 Upvotes

18 comments sorted by

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.

0

u/lukasz-kaminska-479 15d ago

By that standard, every book, tutorial, Stack Overflow answer, and helpful coworker is cheating. The issue isn't seeing working code; it's confusing "I follow this" with "I can build it."

-1

u/Fonzie3301 20d ago

Could you write your code completely without AI?

not really, i always stuck and lean for its help, ask for suggestions and potential optimizations

You need to learn to devise, develop, and generate your code without AI.

I have always felt that, but content creators keep mentioning that writing code became a cheap skill today (no offense sir) and its better to focus on system design, understanding architecture, building a product management mindset and becoming a better AI integrated engineer...

4

u/desrtfx 20d ago

If you can't program, you can't use AI to its fullest. You can't assess whether AI is giving you garbage.

Stop listening to random content creators. Most of them have no clue what they are talking about and only do it for exposure.

2

u/Fonzie3301 20d ago

that does make sense, ill take your advice, try to stay away from AI for awhile and work harder on my skills. Thanks for your help, all respect!

3

u/EntrepreneurHuge5008 20d ago

You can't assess whether AI is giving you garbage.

This is what it ultimately boils down to.

2

u/QuadWingedCrane 19d ago

Tbf, you can ask AI questions about stuff. But you have to understand that it will probably tell you the wrong thing. The difference between a programmer and an AI jockey is the programmer understand what the code is doing. The jockey prays to the compiler God's that whatever the AI spit out works. Its a huge difference between the two.

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.

1

u/Fonzie3301 20d ago

totally agree with you, experimenting things in your own can lead to more ideas and approaches!

2

u/mxldevs 20d ago

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!

How are you learning better when you aren't even reading the code?

1

u/Fonzie3301 19d ago

They want us to use AI but not read its generated code/learn from it. And no i always read and try to understand generated code before applying to the codebase, thats my approach

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.

1

u/Fonzie3301 20d ago

Thanks for sharing your experience!

2

u/wholsum_ 20d ago

No problem, I hope you got what you're looking for

1

u/EntrepreneurHuge5008 20d ago

 Then you never learn about your little mistakes

Learning from their mistakes is how juniors ultimately become senior devs.

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.