Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>Code that's 98% correct is completely useless.

Whoa! Really? Seems like modern software releases would be excited to achieve 98% with the incredible amount of bug fixes/patches released very quickly after the massive beta test known as release day.



Code has to be 100% correct or else it’s considered a bug (assuming it’s syntactically valid).

Code that is 98% correct is actually much worse than no code at all. That’s the kind of code that will introduce subtle, systemic faults, and years later result in catastrophic failure when the company realizes they’ve been calculating millions of payments without sales tax, or a clever hacker discovers they can get escalated permissions by passing a well-crafted request etc.


There's also unintended behavior in more subtle ways. Ideally stuff can be formally verified, but that's not practical for most things.


Won't fix. Working as expected. <ticket closed>

That wouldn't be a meme if it was something that doesn't happen


If the 98% correct code works, and provides value then it is better than no code at all, yah?


You are looking at code like a production line. It's a semantic construction.

Code 0.1% wrong, sends you to the Sun instead of the Moon, debits your account instead of crediting...


What's your metric for the "percentage the code is wrong"? Is it how many lines of code were wrong, or how many test cases the code fails?

Presumably if AI-generated code passes every test case, but would fail on edge cases that some human programmer(s) did not anticipate in their suite of tests, the humans potentially might have made similar coding mistakes as the AI if they had had to personally write the code.


For AI to generate code for a test case we would need AGI.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: