Lurker News
I've been working on a personal project recently, rewriting an old jQuery + Django project into SvelteKit. The main work is translating the UI templates into idiomatic SvelteKit while maintaining the original styling. This includes things like using semantic HTML instead of div-spamming, not wrapping divs in divs in divs, and replacing bootstrap with minimal tailwind. It also includes some logic refactors, to maintain the original functionality but rewritten to avoid years of code debt. Things like replacing templates using boolean flags for multiple views with composable Svelte components.

I've had a fairly steady process for doing this: look at each route defined in Django, build out my `+page.server.ts`, and then split each major section of the page into a Svelte component with a matching Storybook story. It takes a lot of time to do this, since I have to ensure I'm not just copying the template but rather recreating it in a more idiomatic style.
This kind of work seems like a great use case for AI assisted programming, but I've failed to use it effectively. At most, I can only get Claude Code to recreate some slightly less spaghetti code in Svelte. Simple prompting just isn't able to get AI's code quality within 90% of what I'd write by hand. Ideally, AI could get it's code to something I could review manually in 15-20 minutes, which would massively speed up the time spent on this project (right now it takes me 1-2 hours to properly translate a route).
Do you guys have tips or suggestions on how to improve my efficiency and code quality with AI?

Comments (469) 111 threads

Show all comments

Showing thread 79 of 111

owendarko#
What a lot of people don’t mention here is the choice of an AI model.

The key word in the OP post is “Claude”. Anthropic has 2 amazing AI models (Sonnet, Opus), however they’re just a part of a much bigger picture.
When using AI for programming, you’re essentially interacting with AI models. The quality of output you get really depends on the model at the end of the day. Claude Code is optimized for models from Anthropic. You also have model-agnostic agents like Cursor and Kilo Code (disclaimer: I work at Kilo) where you can easily switch up models and see which one works the best for you converting an old jQuery + Django project into SvelteKit.
This area is moving at a crazy rate. Just the last 2 weeks alone, there were 3 main AI model versions released (first Gemini 3, then Opus 4.5, then GPT-5.2). I wrote a piece comparing their performance across 3 coding tasks [1]
So my advice is to also experiment a lot with the models because the quality can vary wildly depending on your stack.
[1] https://blog.kilo.ai/p/we-tested-gpt-52pro-vs-opus-45-vs