All posts

· 8 min read

Path · Ch. 22

Using AI without skipping the learning

AI can be the best tutor you've had or the fastest way to learn nothing. Concrete rules for using it well, examples of good and bad prompts, and what to build now that you've finished the path.

On this page
  1. A tutor, not a ghostwriter
  2. Four rules
  3. Good and bad prompts
  4. The risks
  5. Exercise: a week with rules
  6. Suggested solution
  7. Recap
  8. And now, what’s next?
  9. Tell me what you’re going to build

In chapter 0 I asked you for something: not to ask an AI to do your exercises, for now. You’ve reached the last chapter, so you now have what was missing, which is enough knowledge to judge what an AI tells you. Now we can talk about how to use it.

AI is the most useful tool anyone learning to code has ever been handed, and also the easiest one to use so that you learn nothing. If you ask for the full code, paste it, and it works, it feels like progress. But what you have is a program you don’t understand, and the next time it breaks you won’t know where to start.

A tutor, not a ghostwriter

There are two ways to use an AI assistant.

As a ghostwriter, you say what you need and it hands back finished code. It’s fast, and once you already know how to code it’s a legitimate way to work, because you can review what comes back. For someone learning, it’s the shortcut that leaves you without the skill.

As a tutor, you ask it to explain, give a hint, review what you wrote, or quiz you. That’s what I recommend while you learn. The difference is who does the mental work: with the ghostwriter the AI does it, with the tutor you do, and that work is what teaches you.

Four rules

1. Try first. Before opening the AI, give the problem a serious attempt: read the error, use the debugger, look up the documentation, as you saw in earlier chapters. Even if you don’t solve it, you’ll reach the AI knowing what to ask, and that changes the quality of what comes back. A good starting point is the same one we used for asking a person: if you can’t explain what you tried, you’re not ready to ask yet.

2. Ask for explanations and hints, not solutions. Full solutions are the last thing you ask for, and only after trying with hints. You can say it directly: “Don’t give me the full code. Give me a hint.”

3. Don’t paste code you can’t explain. This is the most important rule. Before you leave something an AI wrote in your project, you have to be able to say what each line does. If you can’t, ask it to explain line by line until you can. If you still don’t understand it, don’t use it yet.

4. Verify by running it. The AI doesn’t execute your code and doesn’t know what’s on your machine. Run everything it gives you: with normal data, with odd data, with the debugger if needed. Looking convincing doesn’t mean being correct.

Good and bad prompts

The difference is almost always how much context you give and what you ask it to do.

A bad prompt:

Write me a program that calculates the average of some grades.

It hands you finished code ready to paste. You end up with a program you didn’t write.

Better, with an exercise you already attempted. This is the chapter 7 program, with the average bug:

int[] grades = { 90, 85, 78, 100 };
int sum = 0;

for (int i = 0; i < grades.Length; i++)
{
    sum += grades[i];
}

double average = sum / grades.Length;
Console.WriteLine($"Average: {average}");

A good prompt for that code:

I'm learning C#. This program should print Average: 88.25 but it prints
Average: 88. I already checked that the loop adds correctly (sum is 353).
Don't give me the corrected code. Tell me which part I should look at and
why this might be happening.

Look at what it has: your level, what you expected, what happened, what you already checked, and what you’re asking for (a hint, not the solution). If the answer mentions integer division, you’ll recognize what you saw in chapter 2 and fix it yourself.

Other prompts that help you learn:

Explain this code line by line as if it were my first month coding.
I just wrote this method. Review it and tell me what problems you see,
without rewriting it.
Ask me three questions to check that I understand the difference between
a class and an object. Don't give me the answers until I reply.
Give me an exercise similar to this one but on a different topic, without the solution.

And a common bad habit: pasting the error and writing “fix it.” You get a patch, not an explanation. Better: “This is what the error says, this is what I think it means. Am I right?”

The risks

Wrong answers delivered with confidence. An AI can write code that looks fine, with a convincing explanation, and be wrong. It doesn’t warn you that it made a mistake, because it doesn’t know. That’s why rule 4 exists.

Outdated information. An AI learned from a point in time. It may suggest an old way of doing something, or a function that no longer exists or has changed. If something doesn’t compile or looks odd, compare it with the official documentation, the source of truth you learned to read in chapter 20.

Secrets in the prompt. What you type into an AI tool leaves your computer. Never paste passwords, tokens, connection strings, or real people’s data. If you need to show a configuration, replace the values with placeholders like YOUR_TOKEN_HERE. It’s the same rule as Git: once it’s sent, you no longer control it.

Leaning on it too much. If every time something fails the first thing you do is ask the AI, you stop practicing reading errors and debugging. Those skills fade fast and they’re the ones that will serve you most.

Exercise: a week with rules

For the next week, every time you use an AI while coding, write down three things before you ask, on paper or in a file: what you tried, what you expected, and what you got. Then ask with a prompt that requests a hint, not the solution. At the end of the week, count how many times you solved the problem before you finished writing those three lines.

Suggested solution

There’s no single answer. What to notice is what happened to you: if you solved several problems just by writing down what you tried, you’re already doing what a good programmer does. It’s the same effect as the rubber duck in chapter 7 and building a minimal example in chapter 21. If at some point the AI gave you the complete solution, try rewriting it without looking and explain each line. If you can’t, review that topic.

Recap

  • AI as a tutor teaches you; as a ghostwriter it leaves you without the skill.
  • Four rules: try first, ask for hints and explanations, don’t paste what you can’t explain, verify by running it.
  • A good prompt gives your level, what you expected, what happened, what you tried, and asks for a hint.
  • Risks: confident mistakes, outdated information, secrets in the prompt, and dependence.

And now, what’s next?

You finished the path. You wrote your first programs, learned to organize code with objects, went through design principles and patterns, and now you know how to use Git, read documentation, ask for help, and work with AI without losing your judgment. That’s a real foundation.

What comes next is building. Nobody learns to code just by reading, and what you’re missing now you’ll learn with projects of your own. Some small ideas you can build with what you already know:

A corner store inventory in the console. Products with name, price, and quantity, a menu to add, sell, and list, stored in a List or a Dictionary. Use classes, validate input with TryParse, and handle errors.

An expense tracker. Record expenses by category, add up the totals, and show which category weighs the most. Good practice with collections and with formatting money using decimal.

A number guessing game or hangman. Loops, decisions, and methods. Then split it into classes.

A product repository with a different way to store data. Use the repository pattern with an interface and two implementations, one in memory and one that saves to a file.

Rewrite one of your projects with a pattern. Pick one where the code ended up tangled and apply Strategy or Factory only if it truly solves the problem.

For each one: put it in Git, push it to GitHub, write a short README, and ask the community for feedback. A small finished project is worth more than five big unfinished ones. And when you get stuck, you know what to do: read the error, debug, check the documentation, build a minimal example, and if needed, ask.

Thanks for making it this far. If you want to keep learning, look into topics like web apps with ASP.NET Core and databases with Entity Framework Core. But build something first.

Tell me what you’re going to build

DM me on Instagram or join the Discord community and tell me which project you picked. Share what you build, I want to see it.