7

Fuck memory leaks, end of rant

Comments
  • 0
    Are you removing all your event listeners? Gets people every time.
  • 1
    Use Rust scrub
  • 1
    But more ram. Cheaper than dev time.
  • 2
    It depends a lot on the language, some are more prone to leaks than others.

    C# rarely have big problems with leaks but you still get null ref or similar, often for the same reasons you get memory leaks in c or c++.

    You fail to keep track of variable lifetime and scope ;)

    Rust was designed specifically with these problems in mind so that the compiler should catch most of those problems at compile time.

    You can still create leaks in any language if you have bad logic and or flow.

    So the real solution is to find patterns if code that avoid the problem.
Add Comment