Hacker News new | ask | show | jobs
by IshKebab 961 days ago
I don't think it's really any more difficult to build sane C++ codebases than any other language. The issue is not sanity; it's safety.

It's extraordinarily difficult to build a significant C++ codebase without segfaults and UB. You end up wasting a huge amount of time debugging that stuff.

Any time I've lost fighting Rust's borrow checker has easily been paid off by not having to debug segfaults.

1 comments

Not my experience at all. I work on very large C++ code bases and haven’t had a bug in production for more than 5 years. The trick is solid tests and using tools like Valgrind/Helgrind to remove all memory issues.
It also depends on what kind of application you're developing and the resource usage patterns.
Not at all. Tests + Valgrind/Helgrind (and similar tools) can cope with pretty much anything.