I can follow programming tutorials, but I get stuck when I try to solve a problem from a blank file. How can I practice working independently and tell whether I'm improving?
How do I get from following tutorials to coding on my own?
Answers
Pick something tiny you actually want to use, like a command-line tool that renames a file or does a simple calculation. Close the tutorial and try to build it from scratch. Look things up when you hit a specific wall, rather than keeping a complete walkthrough open.
Keep the first version small enough to finish. Then add one feature or change how it works. That gives you practice making decisions the tutorial would normally make for you.
Reply to this answer
Try treating debugging as a skill you can measure. When the output is wrong, write down what you expected, what happened instead, and where the two might have diverged. Read the error message if there is one, then test one assumption at a time.
Over time, notice whether you can narrow the search faster and explain why a fix works. You won't stop hitting bugs, but they may start feeling more specific and less like the whole program is broken.
Reply to this answer
Break the problem into really basic operations before worrying about code. What input do you need? What needs to change? Where should the result go? A task can turn into reading a value, checking it, doing a calculation, and printing the result.
Once you have those pieces, you can tackle one at a time. Even if you need help with a piece, you'll have a more precise question than just why doesn't my program work.
Reply to this answer
For a progress check, build the same small program from an empty file again a week later. See which decisions come more easily, where you still get stuck, and what you need to look up. Speed can be useful to notice, but being able to explain your choices matters too.
You can also revisit old code and see whether you understand what it does and can improve it. Finding awkward parts is a sign your eye may be getting better, not a reason to beat yourself up.
Reply to this answer
Small coding challenges can help if coming up with a project is the hard part. Start with easy ones and try to solve them before checking an example. They give you a defined problem without also making you decide what to build.
They're useful practice, though not a substitute for finishing a small project where you have to connect several pieces yourself.
Reply to this answer
Add your answer
Answers are reviewed before publication.
5n~ferrulehinge_738:
Looking up syntax or checking the documentation still counts as doing the project yourself. The useful part is figuring out what you need to look up.