-4
votes
0answers
25 views

Debugging in C++ on Mac OS [migrated]

I've recently bought an Apple laptop. As a contest fanatic I downloaded Code:Blocks from the official site, since I'm trying to compete in programming in C++. Everything is working fine, except for ...
4
votes
2answers
488 views

Is there a term for the error-handling anti-pattern of discarding all available info and just returning failure?

From time to time (unfortunately way too often) I have to fix code such as this: // C++ code bool anyOldFunction(Param p) { try { ... if(some_condition_here) { handleErrorX(); return ...
20
votes
5answers
956 views

Is possible to write too many asserts?

I am a big fan of writing assert checks in C++ code as a way to catch cases during development that cannot possibly happen but do happen because of logic bugs in my program. This is a good practice in ...