I'm learning Rust and Swift, but I keep letting AI write too much of my projects. I want to actually learn the languages, and I'm also interested in Zig and Go. How can I break the habit?
How do I stop relying on AI for every coding project?
Answers
Change what you ask AI to do. Plan the feature yourself and write a first attempt before asking for help. If you get stuck, ask about a specific concept or syntax issue rather than asking it to build the whole thing.
You can also ask for hints instead of a complete solution. If you do get code, take the time to explain each part to yourself before using it.
Reply to this answer
Make the default less tempting. Turn off AI features in your editor for a week, or use an editor without them. You don't have to give up every useful tool, but putting a bit of friction between yourself and generated code can help break the reflex.
Reply to this answer
Try taking a piece of generated code you already have and describing what it does in pseudocode. Then put the original away and implement the same behavior yourself. When you're done, compare the two and investigate anything you couldn't reconstruct.
Small components are good for this. You can use language documentation or a textbook while working without handing off the whole problem.
Reply to this answer
Four languages at once sounds like a lot when your goal is to get comfortable writing code without help. Pick Rust or Swift for a while and build a few small things with it. Zig and Go will still be there when you feel ready to add another language.
Reply to this answer
There's no trick that removes the need to make the choice. Set a rule you can actually follow, like writing one small component without AI before opening it. If you fall back into the habit, just start again on the next component instead of treating it as a failed attempt.
Reply to this answer
Add your answer
Answers are reviewed before publication.
n42!sparekey_683:
Documentation works well for those focused questions too. It takes longer than accepting a generated feature, but you get practice finding things on your own.