Tags » RAII

foonathan::blog() - How to handle errors in constructors without exceptions?

Sometimes you need to write code that can’t use exceptions. If that’s the case there isn’t an obvious way to handle errors in constructors, as they don’t have a return value. 29 more words

C++

Reboot Early, and Often!

A wise man once said to me “Reboot early, and often!” He said it many times actually. When you’re trying to troubleshoot programs for which you don’t have the source code, you tend to develop little rituals that you go through to “fix” them… 297 more words

Programming

Garbage Collection Without a Garbage Collector | Toptal

Manual memory management is a nightmare that programmers have been inventing ways to avoid since the invention of the compiler. Programming languages with garbage collectors make life easier, but at the cost of performance. 43 more words

C++