r/CodingForBeginners • u/Pretend_Algae2388 • 5d ago
Thoughts on using AI to learn coding?
I don’t mean full on vibe coding, I mean using AI to learn how to code something that would take hours of watching videos and struggling normally, and you write the code instead of the AI and it helps with troubleshooting and stuff
1
u/tachyon_bit 5d ago
This is a massive accelerator. So long as you’re grinding and not having the AI do the hard parts for you, but instead explaining concepts and dropping hints, this is the way!
1
u/Pretend_Algae2388 5d ago
Would explaining concepts expand to explaining why certain code does what it does? Like I’m doing it for mc modding, so would having it explain how to get a mob to move by suggesting things instead of just giving code boxes also be fine?
1
u/tachyon_bit 5d ago
I mean I can’t really answer that specific level of detail. You can certainly get an explanation for why a piece of code does something, and what are other paths to take to get that same result. Just don’t ask for another solution, ask for a particular concept or syntax or whatever related to this that might make something safer, cleaner, more secure, etc.
The idea is to ask about the concept at a high level versus explicitly saying“what’s a better way to do this” without guardrails, if that makes sense.
1
u/TomDuhamel 5d ago
Stop asking this every day!!!
1
u/BrainScientist3000 4d ago
I think it's different people but the admins should make a sticky and just throw all of these posts there.
1
u/Economy_Bedroom3902 5d ago
I don't think there will be unassisted AI coding in 10 years aside from small hobbiest pockets. So it's better to learn a parallel method from the beginning right now.
Ask the AI questions a LOT. Anything you don't understand, get it to explain. It would be good to have a skills file or something which explains your level of skill, and what content you expect in an "explainer". I frequently tell my AI "You are a senior software engineer, explain this to me like you'd explain it to a tech lead who hasn't read the code". In my case I can understand heavy technical explanations due to uni education and years in the profession, so requesting the information at that level suits me well. But request the explanations at the level you find beneficial. If you ask it to "explain this like I'm 5", you're going to get platitudes about how the computer feels etc. Make sure you're asking for the information at the depth which will help you learn.
1
u/CappuccinoCodes 4d ago
As a content creator myself, I have to say it makes no more sense to learn coding from videos.
3
u/Marshiiro 5d ago
There's pros and cons. AI can help you trouble shoot fast, but the issue is that before ai the hours spent being stuck on a problem were some of the best teachers. That's something you would never forget because those hours would leave a lasting impact. Ai however makes finding a solution fast extremely easy and kind of minimizes that lesson learned from the mistakes you made. I personally would recommend not using ai while your learning the basics like data types classes loops etc. but ai can be a good tool for quick research when stuck on something in documentation.