Back to Coding

How Do You Practise Without the Answer Appearing?

How Do You Practise Without the Answer Appearing?
AI Tutorials Team 8 February 2026

Learning to code used to include long stretches of being stuck, which were unpleasant and were where most of the learning happened. That friction has effectively been removed, and reinstating some of it deliberately is now part of learning.

Why does the friction matter?

Because struggling with a problem is what builds the ability to solve the next one. Being handed the answer teaches you what the answer was, which is a much narrower piece of knowledge and does not transfer.

The discomfort was not incidental to the learning; it was the mechanism.

The difficulty is that none of this is enforced. A tutorial or a class imposes constraints from outside; practising alone means every constraint is one you chose and can remove without anybody noticing, which is why written rules and timers outperform intentions.

What is the practical arrangement?

  • Turn completion off. While practising, not while working.
  • Set a timer. Fifteen or twenty minutes of attempting before asking anything.
  • Write it out first. On paper or in comments, before touching the editor.
  • Ask about concepts, not code. During the attempt.
  • Separate practice from production. Different sessions, different rules.

Why is turning completion off so effective?

Because it removes the suggestion that arrives before you have decided what to write. Completion is the most invasive form of help available: it does not wait to be asked, and it answers the question you were in the middle of forming.

A keyboard shortcut to toggle it makes this practical rather than aspirational.

What is the right length for an attempt?

Fifteen minutes on a specific problem. Below that you have not exhausted what you know; much beyond it and you are usually stuck on something structural that more staring will not resolve.

Setting an actual timer matters, because the felt duration of being stuck is roughly triple the real one.

Working somewhere without the tool available is the crudest version and remains effective, since a constraint you cannot remove is worth more than one you have to keep choosing.

What should you ask during the attempt?

Do not tell me how to solve this. What concept should I be looking at, and where in my code should I be looking? Nothing else.

Concept-level questions keep the attempt alive where a request for a fix ends it.

How do you generate practice problems?

Ask for problems rather than solutions, with the answer withheld. A model asked for five exercises at your level, based on what you have been learning, produces reasonable ones, and the instruction not to include solutions is essential.

Should everything be practised this way?

No, and the distinction matters. Work you need finished is not practice, and applying practice rules to it is a waste of an afternoon. Deciding which session you are in, before starting, prevents both mistakes.

What about the fundamentals?

Worth practising until they are automatic, since anything you have to think about consumes attention that should be going to the actual problem. Loops, conditions, data structures and the standard library of your language all repay drilling in a way that feels tedious and pays off constantly.

What about practising with someone else?

Substantially more effective than practising alone, for reasons that have nothing to do with technique. Somebody expecting you at seven o'clock is a commitment that survives a bad day, and self-imposed constraints do not.

The other benefit is being watched. Explaining your reasoning aloud while somebody follows it exposes vagueness immediately, and a second person notices the misconception behind a question in a way that no prompt reproduces. A regular hour with one other person doing the same thing is worth more than any arrangement of tooling.

What is the honest difficulty?

Nobody enforces this. Every constraint above is self-imposed and removable in one keystroke, at the moment you are most frustrated, which is why learning now takes more discipline than it used to rather than less.