r/C_Programming • u/8d8n4mbo28026ulk • Aug 26 '26
Reliability Lessons From SQLite - Richard Hipp | SSW 2026
https://www.youtube.com/watch?v=V_qzqY1bb7I
39
Upvotes
r/C_Programming • u/8d8n4mbo28026ulk • Aug 26 '26
View all comments
Show parent comment
3
u/8d8n4mbo28026ulk Aug 26 '26
Myself, I heavily use static analysis and sanitizers. I think that's all standard practice by now. I plan on getting into fuzzing for an upcoming project, but not sure on the details yet.
The one thing I use the most is probably
assert(). If there's one thing to take away from the talk, is using that helpful helpful macro! The second most important thing that was said, in my opinion, is structuring your code to be testable in the first place. Even my most trivial programs now (~300 lines) use a platform layer instead of calling into the OS interfaces directly. Not only does this allow you to be cross-platform, it also allows you to mock these functions and simulate failures.I don't do nice documentation and comments. Or good version control for that matter :( I don't really measure test coverage, let alone going for 100%. I've never done mutation testing -- actually the first time I've heard of that! Then again, none of my hobby projects has ever come even close to the complexity of something like SQLite :)