Archive for May, 2011

Resource Acquisition Is Initialization

06.05.2011 Leave a comment

Short but to-the-point presentation about how to properly manage resources in C++ and Java can be found here.  In summary:

  • In C++ use destructors, you will get safe and succinct code;
  • In Java use the Dispose pattern (a try/finally block right after creating each resource), you will get safe and ugly code.

Also nice quote: “if PHP gets something right before your language does, you should reassess your life goals.”

Categories: Uncategorized