logoalt Hacker News

jonhohle • yesterday at 9:30 PM • 6 replies • view on HN

I used to think writing safe code in C/C++ was a matter of skill. However, after finding more than a few issues with AFL at a FAANG in code written by engineers with the highest engineering title, I changed my mind. Incredible tool.


Replies

fasterik • yesterday at 9:49 PM

It is a matter of skill to a large extent, though. A skilled programmer will write fewer bugs on average than an unskilled one. They'll know the patterns to avoid and have a higher bar for quality. Nobody can write 100% bug-free code, independent of programming language. Also, job title might correlate with skill but it doesn't rule out incompetence at the highest levels.

➕ show 4 replies
Conscat • today at 1:43 AM

I think that good use of static analysis and fuzz testing is a part of the skill to detail-oriented programming languages.

PorciiVorbesc • yesterday at 10:44 PM

>I used to think writing safe code in C/C++ was a matter of skill.

It's a matter of how many fucks the devs gave about doing quality work. You can find inexperienced people deliver quality work simply because they're passionate and they care (Half-Life was made in part by people with no prior game or coding experience), and you can find supposed rockstars deliver slop because for whatever reason they don't care, they just want to punch in, collect paychecks, then punch out.

FAANG stopped being a benchmark of skill a while ago. It's a skill of griding leetcode and 7 stage interviews to get it, then resting and vesting till you can jump ship to something better or get mass layd off.

➕ show 2 replies
printer_in_pink • today at 10:17 AM

It is a largely a skill issue. My first litmus test is: is the codebase using the standard library? If so, it's probably insecure garbage. Nothing in libc is usable in a high quality code base, hell not even the humble sin() function is sensible with its retarded errno nonsense.

➕ show 1 reply