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

Earlier comments
realberkeaslan4 replies#
Consider giving Cursor a try. I personally like the entire UI/UX, their agent has good context, and the entire experience overall is just great. The team has done a phenomenal job. Your workflow could look something like this:

1. Prompt the agent
2. The agent gets too work
3. Review the changes
4. Repeat
This can speed up your process significantly, and the UI clearly shows the changes + some other cool features
EDIT: from reading your post again, I think you could benefit primarily from a clear UI with the adjusted code, which Cursor does very well.

kamikazeturtles1 reply#
How does Cursor compare to Claude Code or Codex?
jes5199#
Cursor makes it easier to watch what the model is doing and to also make edits at the same time. I find it useful at work where I need to be able to justify every change in a code review. It’s also great for getting a feel for what the models are capable of - like, using Cursor for a few months make it easier to use Claude Code effectively
listic#
For the one disinclined to get into closed source, proprietary tools, what is the next best thing to try?

I heard of Cline and Aider, but didn't try anything.

ransom1538#
HEAR, HEAR. You’ve just described how modern SWE truly works. You’re ahead of your time — of the same spirit as Martin Luther or George Washington. Fear not, brave soldier; carry on the message. Downvotes will come, but take heart: the truth must be spoken.

The days of copying and pasting from Stack Overflow will not be forgotten — they will be honored by our laid off forefathers.

ojr#
Cursor uses too much memory, hallucinates on multi file rewrites, and has a difficult accept/reject diff user interface that makes git a nightmare to use.

I built my own coding tool in Rust because of VSCode-based forks Electron app flaws. You would think they could build a memory efficient application with the resources they have but it literally needs a top of the line MacBook to run smoothly.

whatever11 reply#
For me what vastly improved the usefulness when working with big json responses was to install jq in my system and tell the llm to use jq to explore the json, instead of just trying to ingest it all together. For other things I explicitly ask it to write a script to achieve something instead of doing it directly.
jcheng#
That makes so much sense, it would make a great MCP. Maybe something similar for DOM manipulation; extracting text out of big, noisy HTML pages using a combination of Find Text with selector return values, and a DSL for picking and filtering DOM trees.
nextaccountic1 reply#
About Svelte, on the svelte subreddit it was reported that GPT 5.2 is better at Svelte, perhaps because it has a more recent knowledge cutoff

But anyway you should set up the Svelte MCP

jcheng1 reply#
I take these early reports (less than a week or two after a major model release) with a grain of salt. It takes time to get to know a model, and maybe there's some selection bias in who's posting within 1-2 days of getting access.

(Although in this particular case, the very different knowledge cutoff makes it a lot easier to believe)

nextaccountic#
Just for reference I was referring to this

https://old.reddit.com/r/sveltejs/comments/1pkzwqd/gpt52_hug... https://github.com/khromov/svelte-bench https://khromov.github.io/svelte-bench/benchmark-results-mer...
But OpenAI was caught before cheating on benchmarks so indeed it may not mean much
Also the Svelte MCP is https://svelte.dev/docs/mcp/overview IMO it's a must. Besides giving access to up to date documentation, there's a tool that the LLM can call that lints and fixes issues (svelte-autofixer)

justinzollars#
Start with a problem. I'm building https://helppet.ai, a voice agent for Veterinarians. I didn't know anything about AI programming other than absolute fundamentals I learned in 2017 through Stanford AI course - this was just theory and a lot has changed. I followed startups doing solving similar problems, and I asked detailed questions to everyone I could. I went to AI hack events to learn techniques others are using. Eventually I ended up with something pretty great and had fun doing so. So start with a problem and then work backwards.

Load more comments