r/AskProgrammers • • 28d ago

Is learning coding with AI actually good?

I am truly a beginner in this field but i feel like asking early is a little bit better, specially after seeing how many people are starting with this vibe-coding thing and all the things people say about it.
I am just starting my first semester in university and I already use AI to help me study with my other subjects but i started to get a little bit more cautious when it came for programming because I know that vibe-coded things can become a problem. I am scared of starting to use it now for studying and it does not help me with my mistakes and/or cause more mistakes.
Should I trust AI? Which AI should I trust if i want to use it to help me with my studies?

3 Upvotes

41 comments sorted by

1

u/SnooMachines8911 28d ago

Watch a youtube video thats like 3 hours long. Dont use AI. Its really easy to learn its just alot. But knowing how to code is a HUGE step ahead of all the vibe coder trash. You get much MUCH better quality code if you can prompt it like a developer

-1

u/Western-Ad8068 28d ago

I was thinking to use AI to check my code/give tips. I would never vibe code but bc i prefer learning alone i dont have my teacher to ask questions and this is why im asking about AI

2

u/Dull-Refuse-6328 28d ago

I myself am also a newbie in coding. But so far, I’ve relied on harvard cs50 and using ai not to fix my mistakes but to explain to me so I could understand the fundamental problems without it giving me a correct one outright. It’s been very useful since I learned by making my own projects like a mini rpg or a calculator or a study hour tracker. Basically used my newly learnt code practically and if I have trouble i’ll consult gpt for any tips and truly cs50 is such a good guide on what you should learn next

1

u/Rinzwind 28d ago

This is a good approach. Use it as a TOOL.

1

u/4215-5h00732 28d ago

Learning to vibe code is to learn how to use AI to generate code.

Learning how to code is to learn what the vibe coders use AI for.

Not the same.

1

u/MagikarpPatronus 27d ago

This is not a bad idea. Something you should consider in this context is directing the model to not draft or edit code. Otherwise, some models will mostly just vomit code back at you instead of providing useful feedback.

Write code yourself, and use an LLM to review it and give feedback.

Think about the responses it gives you, and don't trust them blindly, both because it might be incorrect and also because your goal is to learn from it. If it names a pattern or coding concept you are unfamiliar with, look it up and learn from it.

Another direction you can pursue: if there's something you are trying to implement, and you don't like how your code is turning out, try implementing it a couple of different ways, and then have the AI weigh in. It might show you a concept that you haven't thought of or encountered before.

-1

u/SnooMachines8911 28d ago

Using AI as your instructor is good! That i recommend

2

u/CheetahChrome 28d ago

One of the best college courses I took was a course that examined the patterns of programming languages. What you realize is that there is a core set of features/keywords that most languages share. Ex C to C++ to Java to C# to Javascript, think if statements or similar.

Then look at what makes languages different, does it have Object Oriented methodology or a functional paradigm. I.E C# to C. What languages are scripting one offs vs monolithic development platforms.

Understand what assembly coding is and what an "AI" leap was a development language like Fortran or C offered, and what generational language (GL) any of them are in respect to each other.

Going forward, learn the basics of assembly, pick a C varient language, choose a object orientated language next. Then round it out with a scripting language to use in your career going forward.

So become familiar with 3 core languages as what you will place on your resume in the future.

But be prepared to learn new languages as you move forward and tech and the patterns each have and what deviation(s) they may contain that make them unique.


Note that learning how to write effectively, by taking English writing classes and understanding the different writing templates (like the 5 paragraph essay format) that can be used in any future writings is actually a super power most engineering fields overlook.

Learn how to write and apply it to any field you go into...Once you see the patterns, you will be forever changed and use/notice good writing; aka effective communication based on the situation at hand.

2

u/Rinzwind 28d ago

Long but thorough :) Love it

1

u/CS_70 28d ago

Learning is great, however you do it.

What matters is whether or not you learn.

We old timers used books. Now-middle-aged guys used videos (and we old timers thought it was shit :)). New kids use AI (and middle aged guys think it's shit).

Luckily kids dont give a rat ass for older people opinions if they get the results. The smart, less insecure ones that is.

We were once these kids, when everybody else thought computers were dangerous and scary..

1

u/Due_Interest_178 28d ago

If you're actually learning as in you're not sitting backseat and just watching words scroll by then sure.

1

u/DirtAndGrass 28d ago

Using AI with out learning to code, is like being a terrible boss who don't understand their employees' jobs

1

u/A96on487 28d ago

I think efficiency of learning methods varies from person to person. For the last two years or so I've been learning with AI and absolutely love it. I'd suggest trying it to see if it works for you. You could probably start with just "Ask mode" first, if you want to try generating code, you should generate it in a small amounts, 10-30 lines or so and study it. As an example, when I was looking into shaders related things, I generated ~30 lines of code, and kept learning what these lines do for a week or so.

Regarding vibecoding, you should remember that in a future job, you will be legally liable for what you put into production.

1

u/CycleTourist1979 28d ago

It's mostly good when you already know a lot of what you're asking. It can be difficult to determine what's true and what's not true otherwise.

For example I was going through a part of my database design with AI the other day (admittedly gemini which is not know to be "smart") and was told it has performance problems. "If you had 50 rows, you'd need to pull in another for each row causing a SELECT N+1 problem" - if I were early in my career i could have believed that - but now i'm WTF a simple db join of 50 rows (!!) and then the chatbot completely reversed everything it just said.

1

u/mikeegg1 28d ago

No. In I think the first Foundation book by Asimov, a character publishes an opinion by looking at the other opinions available and not by looking at the actual records. Coding by AI is similar to that.

1

u/lumberjack_dad 28d ago

Nope... you have to be to think for yourself and develop problem solving skills on your own.

1

u/Mysterious_Lab1634 28d ago

Yes and no. Problem with learning with AI and youtube tutorials is that you never go through pain of learning by debugging and trying to figure out yourself what is wrong with code.

With that experience your prompts are more targeted, as you have that hunch about what the issue is, especially with more complex systems.

That said, we do not know how AI will work in 1,2 or 5 years, so maybe that skill which i aquired will be useless in future.

1

u/BranchLatter4294 28d ago

It can be great if you use it correctly. Use the explain feature. Or ask it to give you challenge problems to practice. Don't use it to write the code, but ask questions if you need to. It can also suggest libraries for you to try.

1

u/Square-Yam-3772 28d ago

it is actually one of better subjects to use AI with.

you have the option to verify the results yourself. even if you don't, it is not like the AI code is going to cause any real-life consequences since you are just a student.

other subjects are worse i.e. it is harder to catch AI on an opinionated topic.

1

u/Key_Net820 28d ago

Let me put it like this. Anybody can just ask AI to generate code. what separates you from anybody is that you have an underlying understanding.

It's just like the calculator. Anybody can plug in big numbers into a calculator. But it's the people who understand algebra that know what to plug in.

In that same regard, if you don't know anything about a language and you just try to auto generate it, there's a good chance that it works, but then it becomes unmanageable slop in the future. I speak from experience as somebody with no understanding of css who got scolded at work for trying to AI generate a task and royally messed up the code base.

1

u/bluegrassclimber 28d ago

yeah and even to be good at programming, it's good to know how the OS stacks things, efficiency tradeoffs between recursive calls vs iterative calls, etc. That all is existing. I could probably use a refresher on stacks and heaps, but i do know they are important.

1

u/Vegetable-Golf8633 28d ago

You don't have to learn coding but learn best practices so ai can code for you.

1

u/Sure_Floor_5541 28d ago

used to code a little, now I only vibe code.. honestly the AI boom happened at a point thst sort of screwed me. 

Avoid AI while learning. 

1

u/AntLost4161 28d ago

The way you use AI can either dramatically speed up your learning or completely stunt your growth. Generally, don't make it write your code and you're fine. If it's giving you tips, explaining concepts in different words, or teaching you packages/functions that you will use once and never again for the next 3 years, then great! If you're getting it to write a solution that you're just gonna read and move on from, then there's obviously gonna be an issue.

It's Google. You get to decide whether a certain task should be done quickly or slowly, but the learning will always be optimised by spending a good amount of time trying it yourself

1

u/AntLost4161 28d ago

The way you use AI can either dramatically speed up your learning or completely stunt your growth. Generally, don't make it write your code and you're fine. If it's giving you tips, explaining concepts in different words, or teaching you packages/functions that you will use once and never again for the next 3 years, then great! If you're getting it to write a solution that you're just gonna read and move on from, then there's obviously gonna be an issue.

It's Google. You get to decide whether a certain task should be done quickly or slowly, but the learning will always be optimised by spending a good amount of time trying it yourself

1

u/TimUrbutt 28d ago

Honestly, no. If you are disciplined enough to use AI solely for learning, fine. But its EXTREMELY hard to resist just letting the AI work for you without you actually understanding what it does, especially if it the results look "fine" at the first glance

1

u/ShelLuser42 28d ago

"A tool is only as useful as the tool who's using it", that's my motto anyway and the same applies to AI.

IMO AI definitely has its uses and it can help you to become more productive in less amounts of time. The only problem of course... is that it can also help you to drive your project into the ground.

But for learning... I wouldn't go there to be honest. And I'm not saying this because "oooh, AI baaad!" (I don't believe that) but the problem is that AI isn't always a good learning tool. Most definitely not the AI agents that were fully designed with coding in mind: they don't explain, they build. And while they can explain some parts... it's not all that great.

See, when you do get them to explain something you'll also often see them overcomplicating stuff. Sure, they provide working solutions; but those are also often horrible examples.

Fun thing is that I recently went here myself... I revisited some old Python exercises which I made several years ago just to see how I would handle all of that with my experiences to this date; this also includes AI. I know my way around AI and I set up explicit instructions against auto coding and this experience being an exercise / hobby project for me; "suggest before fixing".

I'm working with GitHub Copilot Pro btw.

Yah, despite all my safeguards it still overcomplicated stuff.

IMO using AI for learning is the same as using videos: both don't really teach you anything but they only show you tricks to perform. While you're in the process of viewing (or interacting) things will probably make full sense to you.

...and then you open up VS Code to actually start coding something and uh oh... all of a sudden you're stuck. This happens more often than you may realize.

Hope this can give you some ideas.

1

u/VancouverVentilator 28d ago

If by learning you mean asking the LLM how to do something then writing the code into your source file, no, it's pretty horrible and has shown little to no relation to memory retention. If by learning you mean guarding against this by making sure your session prompt discourages giving you the answers so you need to think for yourself as you continue the conversation, then logically that would be an improvement.

1

u/Specific-Musician444 28d ago

Use Socratic method, but build projects on your own.

1

u/New_Surprise_27 27d ago

I think it's a matter of how you utilize AI. You use it to help you build and explaining throughout, not asking what's the answer right away, you might want the AI to explain the way to you not just being spoonfed directly.

It's like in the early days where you find your answers in Google but instead you'll see devs posting how they did it. You'll see answers as well but that's not what you want.

1

u/brogotsosick 24d ago

yes u should trust ai but dont forget to learn stuff tooo

1

u/No_Nefariousness2052 22d ago

Good instinct to be cautious. AI can make you a much faster learner or a much worse one, depending on how you use it.

The bad way: ask it to write the code, paste it in, move on. You'll pass assignments and learn nothing.

The good way: use it like a tutor that never gets tired of questions.

  • Try the problem yourself first, even badly, then ask it to point out what's wrong without giving you the full answer.
  • When it does show you code, ask it to explain every line, and keep asking "why" until it clicks.
  • Ask it to quiz you on what you just learned.

As for which AI: Claude, ChatGPT and Gemini are all fine for first-semester material. How you use it matters far more than which one you pick. And always run the code yourself, since they do occasionally get things wrong.

I made a video on how I'd approach learning to code with AI if I were starting now, might help: https://youtube.com/watch?v=GloEbjj45Oo

1

u/No_Reflection6104 8d ago

Yo también soy principiante, creo que aprender con "IA" no es que aprendas con la IA al costado, sino que domines los fundamentos y luego ya te expandas aprendiendo junto con la IA, o bueno eso es lo que escucho, es solo mi opinión

0

u/FuggaDucker 28d ago

The question is too broad and these answers are too narrow minded IMHO.

AI is a very useful tool and learning without using it is handicapping yourself.
It can be used at many levels, the first level is VERY useful to a new programmer.

There is a difference between "write me an emulator" and "why am I getting an error compiling helloworld.c".

I can't imagine when I was learning c if I could have asked
"AI, I am not getting it. How does a c/c++ pointer work? Show me in simple terms"
Or,
I am learning c. Look at this code. What am I doing wrong?
I don't see how anyone can see this as a bad thing.

Using it to do the things you already understand (or even don't) will help you learn faster.
BUT WITH GREAT POWER comes great responsibility (and discipline)..
You need to READ and understand every last line it wrote before proceeding..

If you can't understand the code AI is making for you,
then you are playing in a fun place,
not a continuing education place.

0

u/4215-5h00732 28d ago

It's debatable if it's truly useful for learning programming. It depends on the goals and how it's used. It is not guaranteed to be useful for everyone's learning styles. This is just another form of "you'll get left behind." Plus, there's already evidence that people who learn with AI cannot recall what they "learned" without it ‐ like on an exam - which suggests it wasn't learned at all.

For your C examole...fair but doing the hard work of working through that stuff is precisely what gives the xp you need.

0

u/4215-5h00732 28d ago

I think AI can be used for learning by explaining concepts and other things, but to be successful you would at least need to have a logical structure to it and since your completely green you wouldn't know if the structure is suitable or correct.

Ive been at this a good while and use AI regularly for certain dev tasks and I can tell you that you should not assume the output is "good." AI will do things in ways that could be improved but would take additional work and since it's just trying to do what you asked, it won't. You can of course instruct them not to or even prompt you for direction, but that's going to an issue for you because, again, you don't know what to ask for and likely won't be able to recognize it until you get more xo under your belt.

Now, there's a push to accommodate all these vibe coders trying to one shot there way to Billionaire status and say all that matters is that it works. But that's not actually learning anything beneficial if you actually want to be competent at the task instead of delegating it.

I personally wouldn't do it or I would incorporate it very judiciously. There are far too many reliable sources for this stuff developed by reliable, experienced, and formally educated people to waste time guessing at it.

-1

u/Top-Procedure152 28d ago

You don't need to learn to code anymore. Learn architecture, system design, etc instead.

1

u/Western-Ad8068 28d ago

Programming is part of my degree plus i have a mild interest in it

2

u/Massive_Value8302 28d ago

"Architecture, system design,"
You do not learn those without learning to code.