Subverting control with weak references
Explores the use of weak references in JavaScript, focusing on WeakMap and WeakRef for memory management and subverting abstraction control.
Explores the use of weak references in JavaScript, focusing on WeakMap and WeakRef for memory management and subverting abstraction control.
Explains the memory leak issue with C# events and demonstrates how to implement the Weak Event pattern using weak references.
Explains the implementation details and changes to weak references in Swift 4, comparing the old and new runtime behavior.
A Swift developer introduces a 'strongify' function to simplify and clean up the common pattern of weak-strong dancing when avoiding retain cycles in closures.