r/developer • u/rozita123456 • 14d ago
Discussion Am I using LLMs wrong for coding?
I would like to preface this by saying that I am genuinely curious about how other teams work and whether we are not efficient enough.
A few of my good friends are also developers. They often tell me that Claude codes most of the features for them, it also does their reviews and they rely on prompting their coding standards on CLAUDE.md for instance.
The thing is that often, when I rely heavily on Claude to generate code for small features, it quite often makes crazy mistakes. Some examples:
- We use ORMs and QueryDSL to write type safe queries: if a query joins more than 2,3 tables and has complex logic, it almost always does it wrong
- It quite often makes small performance mistakes, like iterating the same multiple times, generating a lot of garbage methods which dont handle data efficiently etc
Do you think my team and I are using it wrong or the hype just .. a hype?
2
u/4Dethklok 14d ago
If you one shot claude and get bugs. Apply the fix, then have claude analyze the issue and structure along with anything you can think of in a mark down file to reference at a later time. When you build a big enough context mark down file, claude starts making less mistakes. Whatever claude generates, you are the code owner of that code and is in charge of debugging, fixing, and documenting so claudes code output becomes more standardize with you or your organization's code structuring and formatting
1
u/Al_Cioppino 14d ago
Agentic workflow (multiple agents working on parallel processes guided/guarded by a conductor and converging at the end of a sprint all on their own branch) and loops (the llm iteratively prompts itself against a high level goal) are efficiency multipliers. You still need to define the rails with spec driven development, test driven development and clear architecture.
All LLMs make mistakes, it's how you handle the recovery / fallback process. Most projects benefit from a corpus of skill files directly related to the operation of the project itself (ex. your query join idiosyncrasies).
1
u/rozita123456 14d ago
but even after doing all these are u confident claude can review PRs on its own or that u donz need to fix any code it has generated?
2
u/Al_Cioppino 14d ago
There are always some errors and I keep my eyes on outputs, but in the last 6 months the frontier models have become very very good and with proper guardrails and guidance are very productive. This idea that AI only produces slop code is outdated; the best engineers in the world are leaning on it to get stuff done.
1
u/EfficiencyMurky7309 13d ago
I use Claude in my workflows for some very specific tasks that are administratively burdensome and I have no complaints. I also use Claude Code to vibe-code some simple things for personal use that I just don’t have the time to do otherwise. I’ll generally throw these up on GitHub so they can be refined if useful afterwards.
1
u/Stunning-Way-7527 13d ago
I don’t think you’re using it wrong. “Claude wrote the feature” often means it generated the code while the developer handled architecture, constraints, validation, and review.
Complex joins, hidden business rules, and performance-sensitive code are exactly where models still fail. claude.md teaches conventions, not your full system.
The best results come from narrow tasks, explicit invariants, tests, query inspection, and human review.
Generating 80% of the code is not the same as completing 80% of the engineering work.
We use Fable 5 for reviewing the codebase and do not rely on it, but its a extremely fast start before humans waste their expensive time!
1
u/Alternative_Win_6638 13d ago
Short answer: yes, the workflow is probably the issue — not the tool.
I use AI assistants daily and get solid results, including on complex queries and performance-sensitive code.
The problems you're describing — wrong joins, inefficient iterations, bloated methods — are almost always a context problem, not a Claude problem. The model is doing its best with what it was given.
What changed things for me: stopping the "prompt and paste" habit and building a proper workflow around the AI instead. That means giving it clear specifications before asking for code, scoping each session tightly to one feature, and always validating output against explicit acceptance criteria — not just "does it run." Without that structure, you're essentially hiring a brilliant contractor and handing them a napkin sketch. The mistakes you're seeing are predictable.
If you want to dig into what a structured AI-assisted dev workflow actually looks like in practice, happy to share more — or point you to this walkthrough that covers this in depth
1
u/Sufficient-Pause9765 10d ago
Stack, testing, ci, harnesses all matter. A lot.
Claude code on its own with just skills is a junior developer. You are going to get code duplication, unnecesary helpers, inneficient code, etc.
With a testable stack, with proper work checks, and a harness system that keeps PRs small and enforces deterministic work checks, its a senior dev.
And senior devs, both human and AI still staff level supervision on architecture and complex stuff and human code reviews.
7
u/RevolutionaryElk7446 14d ago
We're a large enterprise that has been running metrics on LLM use over the last 5 years with employees in US, Canada, and UK.
We rolled back and instead hired 75 more people (not necessarily large for our scale) and it produced far more results than LLMs.
We find they could... do boilerplate.. poorly. Templates did better and if you went beyond solo programming at the basic level and instead hit intermediate or high level programming, the LLMs failed badly. They are linguistic models, not designed for coding. They perform at just below Junior levels.
It's a lot of hype, and you'll have a lot of people experiencing programming for the first time, or that it does things they couldn't do before. I'm sure it can for them, but in the field where we need experience and application, students learning poor programming skills from LLMs is definitely not it.
I say this as someone who has been in the AI field since the 2000s and carry various certifications including Gen AI.