<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: thedarkking01</title>
    <description>The latest articles on DEV Community by thedarkking01 (@thedarkking01).</description>
    <link>https://dev.to/thedarkking01</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1266753%2F5f33a1b8-7b77-4371-b6fd-9d6b22024486.png</url>
      <title>DEV Community: thedarkking01</title>
      <link>https://dev.to/thedarkking01</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/thedarkking01"/>
    <language>en</language>
    <item>
      <title>Stop Copy-Pasting Fixes: I Built DebugCoach for a Friend Learning to Code</title>
      <dc:creator>thedarkking01</dc:creator>
      <pubDate>Sun, 04 Oct 2026 16:52:12 +0000</pubDate>
      <link>https://dev.to/thedarkking01/stop-copy-pasting-fixes-i-built-debugcoach-for-a-friend-learning-to-code-51li</link>
      <guid>https://dev.to/thedarkking01/stop-copy-pasting-fixes-i-built-debugcoach-for-a-friend-learning-to-code-51li</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-weekend-2026-10-01"&gt;Hacktoberfest Weekend Challenge: Build for a Friend&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;My friend has been learning to code for about six months. Whenever he hit an error, he would paste it into an AI chatbot, copy the corrected code, and move on.&lt;/p&gt;

&lt;p&gt;The problem: the code was fixed, but he wasn't always learning how to debug it himself.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;DebugCoach&lt;/strong&gt;, an AI debugging tutor that &lt;em&gt;teaches&lt;/em&gt; instead of immediately giving away the answer.&lt;/p&gt;

&lt;p&gt;DebugCoach takes a user's code and error message and guides them through a progressive hint system:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ERROR
  ↓
HINT 1
  ↓
THINK
  ↓
HINT 2
  ↓
THINK
  ↓
HINT 3
  ↓
TRY
  ↓
SOLUTION
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The first hint is conceptual and spoiler-free. Each additional hint gets more specific. Only after the full hint progression does DebugCoach reveal the complete solution, explain the mistake, identify the underlying concept, and provide a practice question.&lt;/p&gt;

&lt;p&gt;For example, take this off-by-one error:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;numbers&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;numbers&lt;/span&gt;&lt;span class="p"&gt;)):&lt;/span&gt;
    &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;numbers&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Instead of immediately fixing &lt;code&gt;i + 1&lt;/code&gt;, DebugCoach progressively guides the learner toward realizing that index &lt;code&gt;3&lt;/code&gt; doesn't exist.&lt;/p&gt;

&lt;p&gt;I built this specifically for my friend because I wanted to solve a real problem I had watched him experience: using AI to fix bugs without understanding why they happened.&lt;/p&gt;
&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;



&lt;p&gt;🎥 &lt;strong&gt;Demo:&lt;/strong&gt; [&lt;a href="https://youtu.be/VWFA8CnQMMQ" rel="noopener noreferrer"&gt;https://youtu.be/VWFA8CnQMMQ&lt;/a&gt;]&lt;/p&gt;

&lt;p&gt;The demo shows the complete DebugCoach experience, from submitting broken code to receiving progressive hints and finally seeing the solution.&lt;/p&gt;
&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/thedarkking01" rel="noopener noreferrer"&gt;
        thedarkking01
      &lt;/a&gt; / &lt;a href="https://github.com/thedarkking01/DebugCoach" rel="noopener noreferrer"&gt;
        DebugCoach
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;🐛 DebugCoach&lt;/h1&gt;
&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;An AI debugging tutor that helps you fix your code — without immediately giving you the answer.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Most AI tools hand you the solution the moment you paste an error. DebugCoach doesn't. It guides you through &lt;strong&gt;progressive hints&lt;/strong&gt; so you actually understand what went wrong.&lt;/p&gt;

&lt;div class="snippet-clipboard-content notranslate position-relative overflow-auto"&gt;&lt;pre class="notranslate"&gt;&lt;code&gt;Paste Code + Error
       ↓
   💡 Hint 1  →  think
       ↓
   💡 Hint 2  →  think harder
       ↓
   💡 Hint 3  →  almost there
       ↓
   🎓 Solution + Explanation + Practice Question
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Built for the &lt;a href="https://dev.to/challenges/hacktoberfest-weekend-2026-10-01" rel="nofollow"&gt;Hacktoberfest Weekend Challenge 2026&lt;/a&gt;.&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Tech Stack&lt;/h2&gt;
&lt;/div&gt;

&lt;p&gt;&lt;/p&gt;&lt;div class="table-wrapper-paragraph"&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;table&gt;

&lt;thead&gt;

&lt;tr&gt;

&lt;th&gt;Layer&lt;/th&gt;

&lt;th&gt;Technology&lt;/th&gt;

&lt;/tr&gt;

&lt;/thead&gt;

&lt;tbody&gt;

&lt;tr&gt;

&lt;td&gt;Frontend&lt;/td&gt;

&lt;td&gt;React 19, Vite&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;Backend&lt;/td&gt;

&lt;td&gt;Python, FastAPI, Pydantic&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;AI&lt;/td&gt;

&lt;td&gt;Open-weight model (Llama 3 / Mistral via Groq)&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;Dev tooling&lt;/td&gt;

&lt;td&gt;Amazon Q Developer&lt;/td&gt;

&lt;/tr&gt;

&lt;/tbody&gt;

&lt;/table&gt;&lt;/div&gt;&lt;br&gt;
&lt;p&gt;&lt;/p&gt;


&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Project Structure&lt;/h2&gt;
&lt;/div&gt;

&lt;div class="snippet-clipboard-content notranslate position-relative overflow-auto"&gt;
&lt;pre class="notranslate"&gt;&lt;code&gt;DebugCoach/
├── backend/
│   ├── main.py          # FastAPI app, CORS, /analyze endpoint
│   ├── ai_service.py    # Model calls, JSON parsing
│   ├── prompts.py       # Hint level prompts + solution prompt
│   ├── schemas.py       # Pydantic&lt;/code&gt;&lt;/pre&gt;…&lt;/div&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/thedarkking01/DebugCoach" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;



&lt;p&gt;The repository contains the complete React frontend and FastAPI backend.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Project structure:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DebugCoach/
├── backend/
│   ├── main.py
│   ├── ai_service.py
│   ├── prompts.py
│   ├── schemas.py
│   └── requirements.txt
│
└── frontend/
    └── src/
        ├── components/
        │   ├── HintCard.jsx
        │   ├── SolutionCard.jsx
        │   └── ProgressBar.jsx
        ├── App.jsx
        ├── api.js
        └── App.css
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;DebugCoach is built around an open-weight model, &lt;strong&gt;Qwen 3, served through Groq&lt;/strong&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Frontend:&lt;/strong&gt; React 19 + Vite&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backend:&lt;/strong&gt; Python + FastAPI&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Validation:&lt;/strong&gt; Pydantic&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI:&lt;/strong&gt; Qwen 3 (open-weight) via Groq&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Coding agent:&lt;/strong&gt; Amazon Q Developer&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The core AI integration lives in &lt;code&gt;backend/ai_service.py&lt;/code&gt;. The hint engine uses a different prompt depending on the hint level:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Hint 1 (Conceptual):&lt;/strong&gt; Explains the general concept without giving away the answer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hint 2 (More Specific):&lt;/strong&gt; Can reference variables, loops, boundaries, or other relevant parts of the code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hint 3 (Almost the Answer):&lt;/strong&gt; Points toward the exact expression or line causing the problem without giving the corrected code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Final Solution:&lt;/strong&gt; The user can then reveal the complete solution, including the underlying concept, what went wrong, corrected code, an explanation, and a practice question.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The model returns structured JSON so the React frontend can reliably decide whether to show another hint or the final solution:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"hint"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Think about the largest valid index."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"question"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"What happens when i reaches the last position?"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"concept"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Off-by-one error"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"hint_level"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"is_final"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The architecture is intentionally simple:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;React
  ↓
FastAPI
  ↓
Hint Engine
  ↓
Qwen 3
  ↓
Structured debugging response
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I also used Amazon Q Developer during development to help scaffold the FastAPI backend, build React components, work with Pydantic schemas, and debug issues such as CORS and model-response parsing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;I chose an open-weight model because it powers the core tutoring experience. Here is what that makes possible that a closed API wouldn't.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Privacy
&lt;/h3&gt;

&lt;p&gt;Users paste source code into DebugCoach. That code could come from a personal project, a university assignment, or other work they don't want to send to a proprietary AI system.&lt;/p&gt;

&lt;p&gt;Because the model is open-weight, DebugCoach can be adapted to run locally with a tool such as Ollama, so the entire AI experience can run on the user's own machine:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;React
  ↓
FastAPI
  ↓
Local inference
  ↓
Open-weight model
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The user's code can stay on their computer.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. The Model Is Swappable
&lt;/h3&gt;

&lt;p&gt;I isolated the AI integration inside &lt;code&gt;ai_service.py&lt;/code&gt;. The frontend, API, schemas, and hint engine don't need to know which model is being used.&lt;/p&gt;

&lt;p&gt;That means I can experiment with different open-weight models without rebuilding the application, and the project isn't tied to a single proprietary provider.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. The Model Can Be Customized
&lt;/h3&gt;

&lt;p&gt;Because the model is open-weight, there's room for future experimentation. A future version of DebugCoach could be tuned specifically for beginner programmers and debugging pedagogy, getting better at:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Giving progressive hints&lt;/li&gt;
&lt;li&gt;Explaining common programming mistakes&lt;/li&gt;
&lt;li&gt;Teaching debugging concepts&lt;/li&gt;
&lt;li&gt;Adjusting explanations for beginners&lt;/li&gt;
&lt;li&gt;Supporting additional programming languages&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The model isn't just an API I consume. It's something I can experiment with, replace, run locally, and potentially customize.&lt;/p&gt;

&lt;h2&gt;
  
  
  My Agent Session
&lt;/h2&gt;

&lt;p&gt;Here's what a DebugCoach session looks like for the off-by-one example. This is an illustrative walkthrough of how the hint flow plays out:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;numbers&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;numbers&lt;/span&gt;&lt;span class="p"&gt;)):&lt;/span&gt;
    &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;numbers&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Error:&lt;/strong&gt; &lt;code&gt;IndexError: list index out of range&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hint 1 (Conceptual):&lt;/strong&gt; Think about the largest valid index in a list. How does counting positions in a list start?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Think:&lt;/strong&gt; The learner pauses and tries to work out what the valid indexes are.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hint 2 (More Specific):&lt;/strong&gt; Look at your loop. What is the last value &lt;code&gt;i&lt;/code&gt; takes, and what does &lt;code&gt;i + 1&lt;/code&gt; become at that point?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Think:&lt;/strong&gt; The learner traces the loop by hand.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hint 3 (Almost the Answer):&lt;/strong&gt; The problem is in the expression inside &lt;code&gt;print()&lt;/code&gt;. At the final iteration, it asks for an index that doesn't exist.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Try:&lt;/strong&gt; The learner attempts the fix on their own.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Solution:&lt;/strong&gt; DebugCoach reveals the corrected code, explains why &lt;code&gt;numbers[3]&lt;/code&gt; fails on a 3-item list, names the concept (&lt;em&gt;off-by-one error&lt;/em&gt;), and gives a practice question to reinforce it.&lt;/p&gt;

&lt;p&gt;The goal is that the learner finds the bug themselves, with the answer as a last step rather than the first.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>weekendchallenge</category>
      <category>hf26challenge</category>
    </item>
  </channel>
</rss>
