| ▲ | natsucks a day 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. |
|
| ▲ | bob1029 a day ago | parent | next [-] |
| 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 a day ago | parent | next [-] | | 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 21 hours ago | parent | next [-] | | 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. | |
| ▲ | XorNot 17 hours ago | parent | prev [-] | | Except my code reading objectively sucks. Otherwise AI wouldn't have found numerous bugs in my existing code. Honestly reading the code is a lot less important then doing the in-person QA: actually using the product and testing the output. The tests are there to keep the AI on track but they can't tell you whether the actual thing you're trying to accomplish works. | | |
| ▲ | theoli 15 hours ago | parent [-] | | AI has found loads of bugs in code I have written and reviewed over the years, it's pretty humbling really. But very, very few of these bugs it finds were "likely" to create real production problems, while AI generated bugs sometimes are standing in the middle of the road so-to-speak. > actually using the product and testing the output This seem like an interactive application perspective. Some code I write processes millions of records in batch processing. It's an amount that is impossible to review the output of by hand, or even a representative sample. In these cases it makes sense to scrutinize AI generated tests and lean on strengthening that code reading and leveraging peers. |
|
| |
| ▲ | jghn 21 hours ago | parent | prev | next [-] | | > 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 a day ago | parent | prev | next [-] | | 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. | |
| ▲ | ricardobeat 21 hours ago | parent | prev | next [-] | | > 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! | |
| ▲ | suddenlybananas a day ago | parent | prev [-] | | Couldn't a faulty test be very risky by baking in incorrect behaviour? | | |
| ▲ | bob1029 a day ago | parent | next [-] | | 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 a day ago | parent | prev [-] | | 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 | | |
|
|
|
| ▲ | sandeepkd 20 hours ago | parent | prev | next [-] |
| 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. |
|
| ▲ | agumonkey 10 hours ago | parent | prev | next [-] |
| Today you can make it assist extensive reviews. This gets you lengthy case analysis arrays with extracted proofs of the expected results. |
|
| ▲ | marcelveselka 4 hours ago | parent | prev | next [-] |
| [dead] |
|
| ▲ | singpolyma3 a day ago | parent | prev | next [-] |
| 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. |
|
| ▲ | freecrow a day ago | parent | prev | next [-] |
| [flagged] |
|
| ▲ | cobwebcheck a day ago | parent | prev [-] |
| 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 a day ago | parent [-] | | 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. |
|