Get the latest tech news
Stylish Bugs
bugs Whenever a bug is discovered, it’s immediately apparent that three things have gone wrong. They used the wrong language, and this never would have happened if they’d written it in the bugfree language.
There’s likely some other way to write yuv2rgb, or arguments to be made about whether it’s representative of C code in general, but in my opinion it’s a pretty good match for the kind of function that contains the errors we’re trying to flush out. My delightfully bug free code was not the result of skillful intention or refined technique, just happy coincidence. Sometimes we get lucky, and sometimes other people get unlucky, and there’s always something to point to, haha, that never happens here, but we need consider that it could be more luck than skill when discussing isolated incidents.
Or read this on Hacker News