Hacker News new | ask | show | jobs
by threethirtytwo 12 days ago
no force pushes. And probably not an intern.

But code that never gets looked at and only tested? Yes. And as AI gets better this will be happening in all companies... more and more.

2 comments

Anyone who lets the LLM put out unreviewed code is shockingly negligent and bad at his job. It certainly might be the case that many people are bad in such a way, but that doesn't make it acceptable.
I accept it. You will too. Eventually. As AI improves, the reviews will just become more and more just time wasting blockers.
How do you know your testing is complete if you're not sure what the underlying code does?
Testing will never be complete.

  def plus(a, b):
    return a + b
The above code, if a and b are integers have 2^64 test cases for full coverage. Code being much more complex then that on average will have a magnitude more test cases needed for full coverage... likely more test cases then all of the code humanity has ever wrote since the dawn of programming.

Testing is a statistical sample. You sample a small subset out of the full domain of possible tests and that sample you hope is somewhat representative of the actual population of tests. To put it in a sentence: If my suite of tests is correct then it is more likely that the entire full universe of every single possible test for my program can all be correct.

Realistically though the universe of all possible tests is so large that it's basically impossible for any sample to be a good representation of it. A suite of test does help up confidence that things will be MORE correct, but the sample size is so small it is almost guaranteed that you missed something.