Hacker News new | ask | show | jobs
by GuB-42 520 days ago
But is it really a C++ problem?

When you have async, lambdas, generics, functional programming, etc... then traditional debugging becomes a nightmare. Talk about debugging to someone who makes heavy use of these features and they will usually avoid the subject and talk about logging, unit tests, etc...

C++ as a language is not the worst here. But it mostly depends on how you use it. Do "C with classes" and you will be fine, code like the author does, with boost and all that, and it will be horrible. It is not that his code suck, it is that he is using a paradigm that makes it hard to use a debugger. Maybe he should consider logging and unit tests :)

This is not a criticism of the author, in fact, it shows that he takes debugging seriously and considers practical problems. The debugging situation is quite terrible right now, and it is great seeing that people are trying to do something about it. And yes, it is hard.