How Do You Keep Going When Learning to Code Feels Hopeless?

August 8, 2026 4 answers
Asked by !more chalk please
I've been working through CS50P since May, and lately it feels like I'm failing more than I'm learning. Programming is very unfamiliar to me, and I'm not sure how much of the material I'm actually retaining. Almost every program I write seems to contain at least one small, sneaky error that stops everything from working. For people who have gone through this, what helped you get past these frustrating periods and build confidence?

Answers

clarinet.case
Try to focus less on memorizing every bit of syntax and more on understanding what the program should do. Break each problem into smaller pieces, test those pieces separately, and use a debugger rather than guessing or scattering print statements everywhere. Even experienced programmers can lose hours to a tiny typo, so learning how to investigate the problem is more important than never making mistakes.
Reply to this answer
blue-white-glaze
A few months of studying independently is still a very short time, especially without an instructor. Practice regularly with small exercises, then gradually move on to simple projects. Taking notes can also help if you find that concepts disappear after you study them. The more often you write and fix code, the more familiar the patterns become.
Reply to this answer
miter.angle
You may also benefit from studying broader computer science fundamentals alongside Python. A fundamentals-focused course can help develop the logical framework for breaking down problems, while Python-focused lessons teach the language itself. Either way, getting stuck is part of the process, not proof that you arenโ€™t learning.
Reply to this answer
NO VACANCY
Making mistakes is not evidence that youโ€™re bad at programmingโ€”itโ€™s a normal part of learning. Every error you find and understand becomes something youโ€™re less likely to repeat, and many common problems eventually become habits you catch automatically. Give yourself enough time and emotional space to work through them instead of treating each bug as a personal failure.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions