Is It Normal to Feel Lost When Learning Programming?

September 13, 2026 5 answers
Asked by MellowPine42
I've always felt reasonably confident with basic math and problem-solving, but I started learning programming and computer science this year and decided to build my dream desktop setup with Quickshell and QML as my first project. Now that I'm writing my own functions and logic, I keep finding simple mistakes in my code and feeling completely incompetent. For example, I recently wrote an if condition equivalent to "if (x == x)" without realizing it until I came back to debug it. I may also be sleep-deprived, but the constant cycle of blaming the computer and then realizing I made the mistake myself is getting frustrating. Is this a normal part of learning programming? Does it become easier with practice? I'd also appreciate recommendations for beginner-friendly books, videos, or resources about programming concepts, problem-solving, and good development habits.

Answers

SilverKite_63
It probably wonโ€™t reach a point where you never make silly mistakes, but youโ€™ll get faster at recognizing and fixing them. Be humble about your assumptions, get enough sleep, and avoid treating every bug as evidence that youโ€™re unintelligent. Catching a faulty condition like that is already part of becoming better at debugging.
Reply to this answer
BrightMango7
That feeling is extremely common, especially during your first year. Programming isnโ€™t the same as being good at math; it mostly involves breaking problems into small steps and carefully comparing what you intended with what the code actually says. When debugging, ask three questions: What did I want to happen? What happened instead? What exactly did I write? That process is more valuable than never making mistakes.
Reply to this answer
CedarFox_18
Youโ€™ve only been programming for a short time, so thereโ€™s no reason to expect yourself to handle a large or complicated project immediately. Start with smaller projects that you can mostly understand from beginning to end, then gradually add difficulty. Each project should teach you one or two new ideas before you move on.
Reply to this answer
QuietOrbit5
A lot of beginners experience imposter syndrome because every new topic reveals how much more there is to learn. That doesnโ€™t mean youโ€™re getting worse; it usually means your understanding is expanding. Even experienced programmers make obvious mistakes. The important skill is learning how to find, understand, and fix them.
Reply to this answer
RiverNoodle29
You donโ€™t need to be a math genius to program. Basic arithmetic is enough for much of everyday coding, while specialized math can often be handled with existing libraries when you need it. Practice, logical thinking, and patience matter much more. Building something youโ€™re genuinely interested in is a good way to stay motivated, though you may want to break the current project into much smaller parts.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions