Top
Best
New

Posted by dimonomid 8 hours ago

The spectrum between coding and vibe coding(dmitryfrank.com)
126 points | 81 comments
rhipitr 3 hours ago|
At work I still review things pretty closely and have more back and forth with agents as I code, but the amount of time I check every specific thing is decreasing. For one off ui/app things I make for just me, I care less about the code and more about how it works. The feedback loop of deploying small apps that do something just for me is fast enough I care less about the internal quality and more about its direct function I interact with.
smlavine 2 hours ago||
One additional level between vibezero and vibereview is "vibe search". Taking advantage of agentic search and research capabilities without using it directly on code.
M3Henry 1 hour ago||
Something like this is typically what I do, I mostly just use it to interrogate my understanding of concepts. Or search through some log, "what's going on here" But I don't find it is particularly good at that.

Just keep it away from my IDE.

merksoftworks 2 hours ago||
I think this is a reason not to really believe in `Vibezero` as a concept. Prior to LLMs one would look on stack overflow for pieces of finicky but well comprehended code that wasn't worth rederiving or pulling in a library for.

Now most search engines just show LLM output as the top result. You can't "Pretend it doesn't exist" if it makes up too much of the information environment. It's only going to get increasingly less practical to be AI sober.

ada-h00k 4 hours ago||
I mostly use vibejunior. I make the design decisions, but I don't read most of the code. There are rare instances where I have to step in because my LLM doesn't understand what I want or keeps making a specific mistake. Then I'll do a little hand coding, but other than that, an LLM can do it better than I can anyway. What has worked very well for me is simply having very comprehensive tests that simulate various usage scenarios and are then run with every commit.
ricardobeat 2 hours ago|
Calling it 'vibejunior' is a bit of a misnomer since in my experience this is the mode senior developers operate in.
throw-the-towel 1 hour ago||
Yes, the LLM is the junior, and the human is the senior who makes hard decisions and delegates implementation to the junior.
natsucks 7 hours ago||
What I am experiencing right now is an incentive towards vibefull whether I want it or not. Leadership wants deliverables ASAP. I don't know how to reconcile this with the importance of being able to vouche for / understand the code. Delivering doesn't necessarily require understanding all the time.
sandeepkd 2 hours ago||
These is this subtle distinction in terms of what it means to deliver. The not so explicit contract about deliverable is to be able to maintain and support it. This is why SAAS companies get paid for software that some one can write in one afternoon using AI.

If your job is just to deliver then you are in management. If you happen to be the one who is on call and need to troubleshoot the issues then you do need to understand it.

bob1029 7 hours ago|||
The question moves from "Is this correct?" to "Am I willing to own the potential consequences of this?". In many cases these are the same picture, but there are enough cases where this is not true that it's worth consideration.

I was struggling with AI code reviews until I realized that all the unit tests it wrote won't actually break production. It doesn't matter if half of them are tautological bullshit. In principle these tests might be really awful, but are they risky? From a practical strategic perspective, they add maybe 3 seconds to the CI/CD pipeline on a bad day. Some of them are definitely providing coverage. If I had to manually review every line we'd have not even 1% the number of tests we do right now.

Is what the robot did actually risky or is it simply a violation of your personal preferences? Put differently, will the customer care? If we start doing code review from the angle of "does the customer give a shit about this", we can probably cut the amount of BS by a factor of 100x.

theoli 6 hours ago|||
The problem with not reading tests is that you don't know if the test really does what the name implies.

I'll immediately riposte against my own statement that this is a small and continuously shrinking problem with LLM generated tests.

Still, if you have a test called transaction_cancellation_reverts_charges_on_all_accounts, and if you have not read the body of the test and confirmed that it indeed tests this, it is a less useful test. I have caught these kinds of errors created with frontier models and in the past few months. The more complex the logic under test, the more likely this problem is.

I am tempted to be of the opinion that an unverified test is equivalent to no test. But in reality I see that having lots of unverified / not-reviewed tests still adds beneficially to coverage and bug prevention. I just hate the feeling of not knowing which tests might be lies. I try to always do a review of tests that "smell" like they are complex enough for an LLM to mess up implementing.

hgomersall 3 hours ago||
I think the trick is to care when it matters. Pre LLMs I would typically test the stuff that really needed testing very carefully, say a gnarly algorithm that proceeds through lots of state, and do so in a way that really helped confidence in the implementation. Then there are tests that are pretty trivial checks on pretty trivial functionality that often fell by the wayside. Now those trivial tests are easy to fill in completely, including all the corner cases, and are often pretty easy to check. What would have taken days to complete can now be done in minutes plus a sanity check review. I don't think we can get away from the important tests yet though.
ricardobeat 3 hours ago||||
> Put differently, will the customer care? If we start doing code review from the angle of "does the customer give a shit about this", we can probably cut the amount of BS by a factor of 100x.

This has been true for way longer than AI has been around!

jghn 3 hours ago||||
> It doesn't matter if half of them are tautological bullshit

I've found that this is not true and have encountered too many situations where these tests wind up become the reason an agent did something wacky in production code down the road. And *that* is something a customer may care about.

vkou 3 hours ago||||
Willingness implies a choice with agency. When velocity requirements require you to vibecode without understanding, you don't 'choose' to ship things without understanding them.

Your boss is the one who makes this choice - they chose to expect high velocity, low understanding from you, and they also chose to have you deal with the fallout when something goes wrong.

(Very occasionally the fallout is cataclysmic enough that there will be consequences to them for that choice, but most of the time, you are the one who will be on the hook for it.)

You are right that the fallout of a few shitty unit tests is rarely bad, and almost never catastrophic.

suddenlybananas 6 hours ago|||
Couldn't a faulty test be very risky by baking in incorrect behaviour?
bob1029 5 hours ago|||
I look at each unit test as a sample. Some of these might be bad. In aggregate, I think they provide stronger assurances. A sample (or the sampler itself) being bad doesn't necessarily affect the thing that is being measured.

The incorrect behavior would have to be baked into the actual application at some level. I review this code much more thoroughly than the test code.

singpolyma3 4 hours ago|||
Only if the behaviour is wrong. If the test was written against a working system then it either does nothing or is no worse than a snapshot test
freecrow 7 hours ago|||
[flagged]
cobwebcheck 6 hours ago|||
One way to reconcile it is to make understanding part of the review rather than the writing. If you can't explain a change well enough to write its PR description and tests, it isn't done, however it was produced. That gives you a concrete line leadership can see, instead of an abstract argument about AI use. It also helps to keep the vibefull work to code that's easy to throw away, and keep tighter control over data models, auth and billing paths, where mistakes are expensive.
dang 4 hours ago||
Some of your recent comments have been killed by our software because they've been classified as genai text, which is not allowed on HN itself (see https://news.ycombinator.com/newsguidelines.html#generated and https://news.ycombinator.com/item?id=47340079).

(It's fine, of course, to use AI tools—we use them ourselves. Just please don't use them to generate or edit text to be read by fellow humans on Hacker News.)

It's impossible to know for sure what was LLM-processed, but we have to rely on imperfect classifiers, or HN would be flooded by genai text, which is not what the community here wants to read, nor in the intended spirit of the site.

singpolyma3 5 hours ago||
I think there's always been room for delivering lower quality or less well understood solutions in a professional context. I would never put vibefull code into production for myself, but for an evil corp I sell my labour to? Why not.
cozzyd 5 hours ago||
There's also vibestackoverflow , where the LLM generates an example of how to do something, and you write your own implementation looking at it.
syshyk 2 hours ago||
I have to admit there are a few very simple SQL queries that I forget the order to the syntax.

I have to check them constantly...

ocdtrekkie 5 hours ago|||
Yeah to me, the most effective "design is fast, output is robust and understandable" I get is to have the chatbot show me what it wants me to do, but then I just write it with my own preferences along the way.
cozzyd 2 hours ago||
Especially because there are often details you don't want to explain to the LLM that are easier to write into the code.
someone654 4 hours ago||
Exactly! Vibeexplain and vibeexplore too.
CodeWriter23 5 hours ago||
Yeah, that's "Vibe coding" in a nutshell. Which is why I practice agenting coding.

The difference is I constrain the inference engine to produce the desired result. (aka improve the quality of my input) Because open gaps lead to the results based on how the engine was trained by others and that is rarely the result I desire.

I've had to expand traditional design to be, for lack of a better term, AI-Friendly. That means more technical definition of the target. 'Store information in the database' vs 'These are the database models, relationships and join rules and how to apply them'. Additionally designing AI-specific assets like rules and skills to corral the AI into following designated patterns. The design now has to encompass all the boundaries that I may have left to be implementation decisions while typing code in the past. Give the agent what it needs to succeed at churning out code to walk graphs, perform processes etc.

I spend more time designing than I used to do, but far less time coding. I start with a written spec, then submit it in Ask mode and ask to identify logic flaws and gaps or inconsistencies in the spec and to number them. (The LLM will actually tell you when it will go off the rails if you proactively ask it) I then iterate the issues against the proposed plan to address the each issue. When that is complete, I no longer need to examine the code as I have avoided GIGO.

I proceed to functional and acceptance testing of the result. Dial-ins are usually quick prompts, I issue in Agent mode. If I'm fundamentally changing something structural to the original plan, I do that in Plan mode.

seff 5 hours ago||
It's interesting, I was recently having this exact discussion with a coworker, and most of us have also came to this same design pattern.

The benefit for us is an extremely mature codebase, so it's quite easy to skip some of the design and just say "model this system after this other thing that's very similar". It's quite good at keeping a consistent baseline style, once it is cajoled into looking at good examples.

ayaros 5 hours ago|||
This is also something that bugs me. Is it really "vibecoding" if the AI-written implementation of a system is mostly composed of preexisting (manually written) classes and components? At that point it seems like you're just using the systems you created as intended, but much faster and more efficiently.
joshuawertheim 5 hours ago||||
I did something very similar not too long ago. I needed to stand up a service but I'm personally not as familiar with the rest of the existing codebase because other teams manage it.

So I pointed Claude at parts of the backend I know work well and worked with it to construct a plan so that my own service would incorporate many of the same design elements and structure.

It worked quite well. As always, IMO more complex work like this should involve iterating on the plan until it looks ready, then iterating on the result.

Less of a one-shot approach (which really works better for quick one-off scripts, code snippets, etc.).

CodeWriter23 5 hours ago|||
That's a great cheat code. I did a massive ERP migration which was helped greatly by having all the source of the target ERP available.
aorona 4 hours ago|||
It would be nice ot just watch someone on YT walk through their process.

I've tried vibe coding on personal projects, its a mess. Agentic coding works but I find greenfield much harder to get good results with.

A big pain point for me is when I am working on a design and the agent gives me 10 items of which I want to revise 3, and it feels like I should be forking the context there instead of just chasing 1 of 10 and then drifting into a tangled mess of ideas.

CodeWriter23 1 hour ago||
Greenfield requires even more of that discipline IMO. But often you don't really know the specs until prototyping.

The good news, code is ultimately disposable now that you can crank it out in assembly line fashion. Combine that with, you can also have the LLM rewrite your spec ; ) So start small and build. Then you can find out where the garbage is, add some new ideas. Now normally we would call that `Technical Debt`. Instead what you do is have the Agent rewrite your original spec and tell it what to keep and what to delete. Carefully review the new revision for alignment with your design goals. Re-engage the gap analysis if necessary.

New project > make plan from Rev [n] of script. Iterate until happy with result.

acedTrex 4 hours ago||
If you arent looking at the code its still vibecoding lol. Nothing you said here is a differentiator.
layer8 6 hours ago||
There seems to be be a level missing between “all code is written manually” and “most or all the code is written by an LLM”, which is where I’m at: Some code is written by an LLM where that is expedient, but it isn’t most code.
dimonomid 5 hours ago|
The levels weren't supposed to be strict discrete points. Of course there is a spectrum between every two adjacent points, too. In the examples that follow in the article, I also mention levels that are in between.
kyle-rb 5 hours ago||
There should be an agreed-upon set of terms, but I hate these.

It's "vibe coding" is because you're going off of vibes rather than reading the code. If you're reviewing all the code, then you're not relying on vibes, so "vibetyping" makes no sense to me.

I thought we had all agreed on "agentic engineering"?

dimonomid 5 hours ago||
Tbh I find "vibereview", "vibetyping" etc understandable and catchy, that's why I went with them. Names don't necessarily have to be taken literally: like a guinea pig, for example, is neither a pig nor from Guinea, and there are many other examples.

Basically "vibe" here means "done by AI". It could equally be "aireview and "aityping", or "llmreview" and "llmtyping" or something else. I just found "vibe*" funnier and catchier, but I get that you didn't like these.

kyle-rb 4 hours ago||
Names don't necessarily have to describe what they label, but it helps.

Language can naturally evolve in weird ways over time, but you're riffing off a term coined less than 2 years ago, and even citing Karpathy just to ignore what he meant by "vibe".

ayaros 4 hours ago|||
Maybe it's just me but I don't like the word "agentic." It feels like it's been driven into the ground by large companies and their marketing departments (I'm looking at Microsoft). I don't particularly like the terms in this article either, although they are better than nothing. I'm hoping a set of agreed-upon terms can come about organically.
komodo99 6 hours ago||
I feel a useful vibe method that isn't highlighted since everything went 'agentic', is the 'autocomplete on steroids' IDE tool. If I, say want a function in python that does stupid homework statistics, and I start with

  def averages(data:List, average=True, mean=True, mode=True): -> Dict
i'd have a pretty good chance of it doing the boring boilerplate for it. When copilot first was a thing, it was really good at this, and might still be, I just don't do coding full time anymore. I did feel much more like a participant though.
VBprogrammer 5 hours ago|
It's probably difficult to keep up with the pack and keep this level of engagement in the code. It's too easy to turn out tones of apparently good, but as yet untrusted, code using agents.

On the other hand, when you have kind of deterministic test you can come up with (testing against previous examples etc), it's never been easier to get some one off validation up and running. Hours of building disposable scripts doesn't feel productive but 10 minutes of promoting an AI can do amazing things, especially when you know it doesn't need to be production ready.

t-writescode 4 hours ago||
I think the temptation to go faster than one can comprehend is a very, very real one; but I think its consequences will be intense in the ultra-long-term. Of course, “most companies and code won’t exist in the long run”, so maybe that doesn’t matter; but human comprehensible comments vs hallucinated intentions, and well-structured and therefore easy to extend code are very important for future-proofing and minimizing sneaky, long-term bugs. And I think that will always continue to be the case since a lot of software needs to be written with exacting tolerances. Software doesn’t currently have an immune system to catch aberrations and destroy them, so every mistake in software written fully by an LLM is basically a prion, slowly filling up until the product cannot support its own weight anymore
VBprogrammer 4 hours ago||
Perhaps I have just been unlucky but I've yet to work at a successful company with a well written, easy to extend code base, even in the 20 years I was in the industry before LLMs arrived.

I guess I'm still slightly fortunate to be working with a code base which I have 10 years experience in and, in all honesty, AI has enabled me to consider making changes which I would have loved to have started years ago but wouldn't have been able to justify the time investment.

t-writescode 4 hours ago||
Very valid pushback. I think I imagine things getting worse when it’s AI that does it with no human in the loop; but how is that different from another team taking over your own repository? That’s something we’ve had forever. It is en masse now, which could present the issue I describe, so it might be another case of “the danger is scale”

But you’re right. We’ve always worked in imperfect codebases and usually there’s like a section of “this code was written with love, in a modern way, and by Jim” vs “this team of engineers had 4 days but now it supports all of prod, soooo here there be dragons.”

t-writescode 5 hours ago|
This spectrum also misses another state: “I write all the code” but it’s really using an LLM-enhanced auto-complete, like the new stuff in IntelliJ. In the “how much of your code is impacted by the LLM” conversation, calling using that tier of context-aware auto-complete, imo, really isn’t “none” anymore, but this article seems to imply it is.

I also don’t like the word “vibe” for anything you’re deeply invested and active in the guts of development. As others are saying, “agentic engineering” seems to align there.

As with everything, there’s definitely a danger of going too far into trusting the PC at which point the term flips to vibe, imo.

ayaros 5 hours ago|
The issue is "vibe" morphed from describing "vibefull" into a catch-all term for any AI usage. It provides a negative framing to anything it's used to describe by its association with the worst end-products of AI usage - badly written software, brainrot content, etc.
More comments...