Show HN: Codeamigo – Learn to Code with AI
codeamigo.dev
codeamigo.dev
In general I think this is a good idea, AI assisted learning for programming is an area where LLM's could really shine.
Specifically to your demo though, on the step where it asks you to "type <p and wait for Codeamigo to suggest something, then press tab to accept Codeamigo's suggestion." I did exactly that, but it suggested the filler text, "> Welcome to codemigo." It didn't suggest closing the tag for me until it added an entire paragraph of boilerplate about what codemigo does. Then after I got to the tag close I noticed next was still greyed out, finally I read that you we're looking for specific text in <p> before continuing. If I was a new student that did not know anything about HTML, this would be incredibly confusing to me. I'm not sure a young person could figure it out at all.
I think this was on purpose too, which the next (and final) slide explains. I feel like this is a mistake. In my experience, the thing that trips people up on learning to program is the rigidity of it. People often get hung up on little syntax errors, then get frustrated and give up. It's like you're using the LLM to simulate those syntax errors and add unnecessary frustration!
I'm not sure how I'd implement it exactly, but to hook people I'd focus more on the high level creative aspect of making an interactive website, and using the LLM to smooth out that process as much as possible. Things like:
- Use the LLM to compare the code you expect the user to write to what they actually wrote, and if it's a close enough match then accept it, instead of requiring them to match you exactly.
- Set a timer for the expected length the user will take on the task, and if they exceed it then have the LLM try to parse the code, and prompt them to ask the LLM a question, or for a hint.
My point is that you should make the AI assistant more of a passive participant in the background, that will just help the learner when they get stuck. It doesn't need to be the star of the show here.
I do think Codeamigo is a good start though! And hell, sorry for the giant mind dump here. I hope my criticism was constructive, and gives you ideas to further pursue. I'm excited to follow the project for a bit to see how it comes along.
Thanks so much for the feedback, no need to apologize for the mind dump, it's all really helpful!
I think AI will be the greatest personal assistant humans will ever have, and we're just scratching the surface with autocomplete. Nice point about not having AI be the star of the show, it needs to be a helping hand when needed, but not overly obtrusive, it's a fine line to balance.