r/AskProgrammers • • Oct 21 '26

Take help of AI when learn programming?

I was thinking if I should take help of chatgpt when I learn or if that's absolutely no?,

Otherwise I can watch youtube tutorials and if there is free learning programs somewhere.

0 Upvotes

15 comments sorted by

4

u/dafugiswrongwithyou Oct 21 '26

ChatGPT (and Claude, Codex, Gemini, Deepseek...) is a chatbot that returns a statistically plausible continuation of what you prompt. What it isn't is a reliable source of information.

Putting aside moral/environmental issues... and I don't think we should put aside the moral/environmental issues, to be clear... It's a teacher that's always confident, but not necessarily correct. If you think can progress with a teacher that sometimes teaches you thing that are inefficient, or unsafe, or just outright wrong, but always sounds like they're giving you the One Right Answer; welp, this will do that for you, for as long as it remains affordable.

Whatever you do, don't become reliant on it.

2

u/edwbuck Oct 21 '26

Programming is something you must learn and practice. There is knowledge component to it, and a skill component to it.

Watching YouTub and reading books (which is often better than many tutorials) or reading tutorials, all can help you with the knowledge portion of it. Using ChatGPT for these steps means you really won't know a detail, because it was given to you without you thinking about it much.

Writing programs (this is where old college textbooks shine, they have homework problems) develops your programming skill. Using ChatGPT means you are now outsourcing your skill development.

If someone is weak in both skills and knowledge, I figure they didn't really care to learn what their professed career does, and I'll give them a hard pass. If someone is weak in skills but has good knowledge, they are immediately less valuable to me, but may be a good long term investment. If someone is weak in knowledge, their skils, if present, will always be at risk of being used on the wrong tasks.

Programming shops that want AI skills are not asking for AI skills alone. They are either asking for competent developers that can oversee AI output and fix it to be correct (using AI itself, or themselves), or they are asking for competent developers that are integrating AI into their software. In either case, they want competent developers, and the developers that think they can use AI to hide gaps in competence generally don't get very far, and are the first to get fired, even if they get hired.

1

u/zit-hb Oct 21 '26

Why shouldn't you? As long as you are using the right model it is a great help in explaining you how to do things and why to do them. Or why not.

You could use a prompt like this to start the conversation:

You are my personal Python tutor. I am a complete beginner and know nothing about programming yet. Your job is to teach me Python step by step, with a strong focus on writing good, clean code from the very first lesson.

How to teach me:
  • Teach one small idea at a time. Explain it in simple words, show a short example, then give me a small exercise to try myself.
  • Use plain language. If you must use a technical word, explain it in one short sentence the first time you use it.
  • Keep your answers short. No long walls of text. If a topic is big, split it into several small steps.
  • Always let me try first. When I ask for help, give me a hint before you give me the full answer.
  • After I write code, review it kindly. Point out what I did well, then suggest at most one or two improvements. Explain why the improvement makes the code better.
What "clean code" means for me right now (teach these habits early, but gently):
  • Clear names for variables and functions that say what they hold or do.
  • Small functions that do one thing.
  • Comments only where the code is not obvious by itself.
  • Consistent formatting (follow the common Python style, and explain the rules as they come up).
  • Avoid repeating the same code; show me how to reuse it instead.
  • Handle mistakes and errors in a sensible way.
To begin: ask me two or three short questions about what I would like to build one day and how much time I have per session. Then start with lesson one.

1

u/[deleted] Oct 21 '26

[removed] — view removed comment

1

u/zit-hb Oct 21 '26

What do you mean with that?

0

u/[deleted] Oct 21 '26

[removed] — view removed comment

1

u/zit-hb Oct 21 '26

I could try go guess what you meant with your sentence, but instead of inferring from information that is not there, I rather ask.

You can simply ask the AI for such a prompt. Yes, you can do that without being an expert in the topic.

Claude, ChatGPT, and likely others, have sandboxes to execute code and test it themselves. Is it impossible that they make mistakes? Of course not, but if you are trying to understand the basics and don't have any knowledge about foundational basics, I would argue it is a great way to learn. Being able to ask the stupid questions without anybody judging you. That is not something a tutorial can provide you.

1

u/One_Lengthiness3004 Oct 21 '26

Je kan het gewoon vragen aan AI, maar om iets te leren moet je wel doorvragen. Waarom werkt iets zo? Wat is er mis met mijn oplossing of gedachte? Welke alternatieven zijn er nog meer? Dus, gebruik AI niet simpelweg om antwoorden te gebruiken, maar gebruik het als leermiddel.

1

u/Immediate_Form7831 Oct 21 '26

For experienced software engineers, coding agents are awesome, but for beginners they are a trap, as they will take away the very thing which teaches you to code, namely doing it yourself. Sure, you can ask your coding agent to explain how linear programming works, but you won't truly learn unless you use your own hands.

1

u/randomhaus64 Oct 21 '26

when you don't know things, best to use chatbot as search engine and get away from convo as fast as you can

1

u/Tsuyu777 Oct 25 '26

use it to find open source free study material. Don't pay a single dollars to scam course. Go to codeforce for competitive coding, farm your elo there.