Throwing from a destructor

Posted by on Dec 18, 2012 in articles, c++ | No Comments

I just read a very interesting article about throwing exceptions from destructors, by Jon Kalb and Dave Abrahams. The article itself is nicely written and goes through some of the exception-safe advantages (for me RAII is by far the best reason to write solid exception-safe code) and explains why throwing an exception from a destructor might get […]

Please, please, follow the SRP principle

Posted by on Dec 8, 2012 in rant | No Comments

As those who work with me certainly know by now, I am a strong proponent for the SRP and try to practice it and convince others to do the same whenever I can. SRP stands for Single Responsibility Principle, and states that a class should have one responsibility and one, and only one, reason to change. […]