Ask HN: How can I get better at using AI for programming?
471 pointsI'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 102 of 111
The more you use IA, the more your abilities decreases, the less you are able to use IA
This is the law of cheese: the more cheese, the more holes; The more holes, the less cheese; Thus, the more cheese, the less cheese;
NB: I'm talking about skill cap here, not speed of execution. Of course, an AI will be faster than a programmer… *if* it can handle the job, and *if* you can trust it enough to not need even more time in review…
Your point is valid.
"AI leads to loss of personal coding skills"
Unfortunately, I can no longer do long division. No one will pay me to do long division and I have a calculator now. I could stay sharp at long division for a hobby though. Keep those for loops sharp if you want, but I don't see people paying you to hand code. Eventually, it will just be a liability. (like not using a calculator).
"it could hit a hard wall at 70% of a good programmer's ability"
That is not what NVDA,AMZN,GOOG,or MSFT believe. Maybe you are right and they are all wrong. They do have some smart people on staff. But, betting against the sp50 is generally a terrible plan.
Long division is a pretty simple algorithm that you can easily and quickly relearn if needed even your LLM of choice can likely explain that to you given there's plenty of writing about it in books and on the internet.
Well, personally speaking, I'm paid to hand code; LLMs have not reached the quality of my code output yet and I'm seeing no pressure at all to use LLMs.
Relatedly, I work on an open source project where the constraining resource is review (as it is in most open source projects.) The current state is that LLM generated code is incredibly hard and annoying to review and there is a lot of pushback.
So, I'm going to wait and see.
(...especially since there's also legal challenges to LLMs trained on open source code with no regard to its licenses.)
Continue this thread — 1 reply
It is all about money and power
Aka pub and mass control (/propagande)
Another good reason to avoid getting raped by AI (but nothing related to the topic at hand (code))
"Are you using AI ?"
(his response, tldr: "yes but actually no, because it sucks")
Great collaborator