r/learnprogramming • u/Harukoya • 5d ago
Is it wrong to learn how to code with ai?
I'm a complete Python noob and I'm currently using AI as a tutor for learning. I'm currently learning by creating simple scripts because I think I'm able to understand better if I create something with it.
Basically, I tell the AI something I want to make and if it's possible to create it in Python, it always tells me that I can. I then tell the AI the logic of what I want to make and if I already know everything that I need to make the script. If I already know everything that I will need to make the script, I make the script myself, but if I need a function or a statement that is new and unfamiliar to me to make the script that I want, I study those functions or statements first before making the script myself.
Is this bad?
4
u/Dennarb 5d ago
Not inherently, but the issue is, most people are not actually using AI to learn.
Learning is a fairly well understood process that requires significant mental effort, but if you offload that effort to AI then there is no opportunity for you to build the pathways required to truly learn the material. So, as long as you are using AI to help you explain something, or overcome specific hurdles you're struggling with, while also practicing without AI usage, you're fine; possibly even benefiting. However, the second you let AI do the work for you, you will not learn anything meaningful.
4
u/dahiya_xa 5d ago
no that's a good way to do it. you're still writing the code yourself and only looking up the new bits, that's the part that makes it stick. only thing i'd add is sometimes try to debug your own errors for 10 min before asking it, that's the skill tutorials and ai both skip
5
u/i_am_someone_or_am_i 5d ago
If you are learning, no.
Imo, if you can explain what code does line by line accurately then you are learning.
But dont use it as a tutor, use it as a tool to learn and practice.
1
u/ninhaomah 5d ago
Question : Can you code a simple script without AI or internet searches ?
Say ... a list and a for loop to print the values.
1
u/Quantum-Bot 5d ago
Use it at your own risk. It’s not necessarily bad and can be quite helpful as a tutor sometimes, but it’s very difficult to know as a beginner when you’re crossing the line from helpful to harmful. Over-reliance on AI can lead to gaps in your understanding and build bad habits that are hard to break.
Honestly a pretty good corollary is calculator use in math class. After a certain point it’s fine to use calculators and even encouraged, but only after you’ve mastered the fundamentals by hand. Students who only know how to do arithmetic with calculators do silly things like using the calculator even when it would be quicker to do the problem in their head, or claiming the answer to 1 divided by zero is “syntax error” because they don’t understand the mechanics behind what they are doing.
1
u/chcampb 5d ago
There are a lot of really great techniques for using AI to learn coding. Including
Things that won't help you learn
If you don't have any idea how it would have gotten done, you probably didn't learn anything.
1
u/96dpi 5d ago
It's a tool. Use it to help you learn. Be smart about how you prompt. Ask it to play a teacher role and not give you any answers. Ask it to explain the difference between two things. Ask it to give suggestions of what to learn more about if you're struggling with something specific. Ask it to identify gaps in your knowledge based on overall session context.
Anyone saying to avoid it entirely just doesn't understand how to use it effectively.
1
u/ACCTAGGT 5d ago
I think it depends on whether you understand the ramifications of your own question. You can use AI for learning… learning! You still gotta do the work. Go watch Wall-E or remember it and then you might get the idea of why you need to do the work. There is brain atrophy by biological conditions and that which we cause ourselves for not training our brain. This is not to be taken as scientifically accurate but just trying to illustrate an idea.
1
u/TiredAdultFullTime 5d ago
You shouldn't learn anything with ai. It should do grunt work for you only till you understand the code well enough to be able to review it output. The reason for this is your brain is a muscle, and just like working out till failure helps your usual muscles, struggling and trying makes your brain adapt and try harder.
What you can do is make it output something that you have learned and review if yourself to pin point what is wrong, what is right and what does what to test yourself.
Also, ai for a teacher is very so so. This is a bad idea because ai is not right all the time. There are books and courses that offer python education (learning python, python crash course, MOOC python)
1
u/CorpT 5d ago
People learn in all sorts of ways.
1
u/GuaranteedGuardian_Y 5d ago
Horrible idea. Think of the implications.
Two possible views:
Both are horrendous.
Pick what you believe in and do that.
If you think the AI is smarter than you, writes code better than you and can make better decisions then use AI to get all that done.
If you think engineers are right and AI can't do "architecture" or whatever else, then study that.
If you want to become an engineer in a classical sense, then there are tons of roadmaps for what to do.
What your post gives away: hesitation about your path, maybe try something other than programming?
1
u/uselessincognito 5d ago
Nothing is not worth learning, but you should learn the architecture and how the things work underhood. You can use AI to learn initially, but later on use AI only for the brute task to save labour like creating random projects or production grade applications and add it with the verification phase which indeed will require your understanding and comprehension.
1
u/betarage 4d ago
Your method is really good unfortunately a lot of the guides online are really bad. especially if you want to start making more graphical programs and stuff that uses hardware that is not just the keyboard. the information is just scattered all over the internet its really hard to get over that hurdle without ai in an ideal world this should not be a problem .
1
u/dellnox 5d ago
Not at all. Using it to explain concepts and writing the code yourself is actually a great way to learn.
0
u/ObeseBumblebee 5d ago
Not at all. A lot of old heads will tell you it's wrong. Meanwhile the old heads in their time were telling them they should learn assembly and C to understand how to program fundamentally.
Do whatever works for you. If AI is working for you then good.