Tag Archives: lifetime

Thinking About Object Lifetime

Several times in the last few years, I have written about the subject of memory management, garbage collection, and object lifetime. Some of essays I’ve written on this subject include: The Semantics of Garbage Collection More Thoughts on Resource Recovery Other Resource Recovery Approaches Resource Management Revisited Recently, I was thinking about this issue again… Read More »

Other Resource Recovery Approaches

In The Semantics of Garbage Collection, I explained why I don’t like the term garbage collection. I also introduced the term resource recovery, and suggested that this change in naming could generate a useful change in viewpoint. In the next article, More Thoughts on Resource Recovery, I traced some of the history and side effects… Read More »

More Thoughts on Resource Recovery

In The Semantics of Garbage Collection, I explained why I don’t like the term garbage collection. I also introduced the term resource recovery, and suggested that this change in naming could generate a useful change in viewpoint. Many programmers have been indoctrinated with the belief that garbage collection is the solution to all memory problems,… Read More »

The Forgotten OO Principle

When talking about Object Oriented Programming, there are several principles that are normally associated with the paradigm: polymorphism, inheritance, encapsulation, etc. I feel that people tend to forget the first, most important principle of OOP: object lifetime. One of the first things that struck me when I was learning OOP in the C++ programming language… Read More »