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

That’s a very loose definition of “correct code”.

If you write out of bounds or occasionally read memory you didn’t allocate and how do you know you get away with it, so that you can declare the code “correct”? Your program may crash only once in a thousand years.

In my book it still would be incorrect as soon as it breaks the interface contract of the API, even if it never crashed or misbehaved.

Also, in your definition, you can’t complain if a program stops running after even a tiny OS upgrade it wasn’t “purposely built for”, for example because it that didn’t exist yet at the time the program was compiled.



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

Search: