• 81 Posts
  • 399 Comments
Joined 1 year ago
cake
Cake day: June 7th, 2023

help-circle






  • If I do it straight after the constructor, then definitely but if I get distracted by something else then it’s only probably until I run it through valgrind and see the leak. These days, I mostly use smart pointers in new code though so there are fewer opportunities to need a destructor. It’s funny that I never forget when opening a file or db connection!





  • You should have basic maintenance knowledge like checking tyre pressure and the fluid levels in your car.

    By doing it all for them, you are perpetuating the learned helplessness encouraged by Microsoft and Apple over the last few decades and doing them no favours at all.

    Consider what they would do if you were unavailable to help them.