๐Ÿ›
๐Ÿ› Debugging & Problem-Solving ยท DEBUG-101 ยท Session 6 of 6

Think Like a Problem-Solver

Debugging is really just problem-solving, and problem-solving is a skill you can build. Decompose, plan, work in small steps, and stay calm โ€” the meta-skill behind all of coding.

โฑ 9 min read๐Ÿ“… Updated 2026-07-30๐Ÿ“Š Tables, charts & examples

Everything in this course - reading errors, tracing, isolating, spotting classics - is really one bigger skill: problem-solving. It's the meta-skill behind all of programming, and the best news is that it's learnable, not innate. This final session steps back from bugs to the general approach: how to break down hard problems, plan, work in small verified steps, and stay calm when stuck. Get this, and you can tackle anything.

๐Ÿ“Œ Worked example
One impossible problem, or twelve easy ones. Asked to 'build a quiz app', a beginner stares at the blank screen, overwhelmed, with no idea where to start. A problem-solver writes a list instead: store a question and answer; ask it and read a reply; check if the reply is right; keep a score; loop over several questions; show the final score. Suddenly there's no 'quiz app' to build - just six small, obvious things to do one at a time, each of which they know how to start. The app that felt impossible as one lump is entirely doable as a handful of small steps. That reframe - from one big problem to many small ones - is the heart of thinking like a programmer.

Decompose: break it down

A hard problem is overwhelming as one lump. The core move of all problem-solving is to break it into small pieces you can do, then combine them.

๐ŸŽฏ
You don't solve a big problem - you solve many small ones. Faced with 'build a to-do app', a beginner freezes because it's too big to hold at once. An experienced problem-solver breaks it down: first just store a list of tasks; then add one; then show them; then save to a file; then mark one done. Each piece is small and doable, and together they become the app. This decomposition - turning one impossible-looking problem into a series of possible ones - is the single most valuable thinking skill in programming, and it applies far beyond code.

Small steps, always working

Build in tiny increments, checking each works before moving on. This keeps you in control and makes bugs easy to locate.

ApproachResult
Write it all, then runMany bugs at once, no idea which line
Write a little, run, repeatAt most one new bug - and you know where
Get one piece working firstA solid base to build on
Change one thing at a timeYou always know what caused what

When you add a little and test a little, any new bug is almost certainly in the little you just added - so it's easy to find. This 'always keep it working' rhythm is how professionals build even huge systems: not in one heroic leap, but one small verified step after another.

When you're stuck

Everyone gets stuck. Having a plan for it is what keeps you moving.

When stuck, try...Why it helps
Take a breakFresh eyes catch what tired ones miss
Explain it out loudArticulating reveals hidden assumptions
Simplify / isolateShrinks the problem to something clear
Search the error/problemSomeone has almost certainly hit it before
Come back tomorrowSleep genuinely solves problems

Being stuck isn't failure - it's part of the process. The difference is that a skilled problem-solver has a toolkit of moves to try, so stuck is temporary. Stay calm, work the process, and problems yield.

The meta-skill behind it all

  • Decompose - break a big problem into small doable pieces, then combine.
  • Small steps - build and test a little at a time; keep it always working.
  • Change one thing at a time - so you always know what caused what.
  • Have a plan for stuck - break, explain, simplify, search, sleep. Stay calm.

๐ŸŽฏ Key takeaways

  • Debugging is really problem-solving - the learnable meta-skill behind all of coding.
  • Decompose: you don't solve one big problem, you solve many small ones and combine them.
  • Build in small steps, testing each - so any new bug is in the little you just added.
  • Everyone gets stuck; a problem-solver has moves (break, explain, simplify, search, sleep) and stays calm.

Frequently asked

I get overwhelmed by big problems and don't know where to start. What do I do?

That overwhelmed feeling is universal, and it comes from trying to hold the whole problem in your head at once - which is impossible for anything non-trivial, even for experts. The answer is decomposition: don't try to solve the big thing, find the smallest piece of it you can start on. Ask 'what is one small part of this I know how to do?' and do just that, ignoring the rest for now. For a to-do app, forget the app and just write code that stores a list of two tasks and prints them - tiny and doable. Once that works, ask again: what's the next small piece? Add the ability to add a task. Then to remove one. Then to save them. Each step is small enough to not be overwhelming, and they accumulate into the whole thing. The mistake is staring at the mountain; the move is taking the first small step and trusting that a series of small steps gets you up it. It genuinely helps to write down the pieces as a list - the act of breaking it into a checklist of small tasks makes it feel manageable and gives you an obvious place to start (the easiest piece). You'll also find that starting on one small part clarifies the others, because you learn as you go. So when overwhelmed: stop trying to see the whole solution, identify the smallest doable piece, do that, and repeat. Overwhelm is a signal that you're thinking too big, not that the problem is beyond you - shrink your focus and start.

Is being good at problem-solving something you're born with, or can I actually learn it?

You can absolutely learn it - the idea that problem-solving is an innate gift you either have or don't is one of the most harmful myths in learning to code, and it's false. What looks like natural talent in experienced programmers is almost entirely accumulated skill: they've internalised approaches like decomposition, working in small steps, isolating problems, and staying systematic when stuck, and they've practised them on hundreds of problems until the approaches feel automatic. None of that is genetic; it's learned, and this course has been teaching exactly these learnable techniques. What's true is that problem-solving can feel innate because it's often invisible - you see someone quickly solve something and assume they 'just got it', not seeing the years of practice and the deliberate methods running under the surface. When you're a beginner comparing your visible struggle to their invisible practice, it's easy to wrongly conclude you lack a gift they have. In reality, they were once exactly where you are. The skills genuinely improve with practice: the more problems you break down, the better you get at breaking problems down; the more bugs you isolate, the faster you isolate. Approach it as a skill to build, not a talent to test for - be patient with yourself, practise deliberately, reflect on what works, and you will get dramatically better. Believing it's learnable is itself part of learning it, because it keeps you working at it instead of giving up at the first sign of difficulty. You are not missing a gene; you're early in a learnable skill, and it compounds.

๐ŸŽ“ Final session complete

You've finished the Debugging & Problem-Solving sessions

Now lock it in with the coursework.

Do the assignments โ†’

Related lessons

More in this course

Course home → · Browse all courses →