Fresh Beginning
  • Home
  • Portfolio
  • My Clothing Shop
  • Etsy Clothing Store
  • Buy Me A Coffee
  • Patreon
  • Speaking
  • Reading
  • About Me
  • Contact Me
Subscribe

Memory

A collection of 4 posts
Swift Value and Reference type semantics - Structs, Classes, Struct inside Class, Class inside Struct
memory semantics

Swift Value and Reference type semantics - Structs, Classes, Struct inside Class, Class inside Struct

Long ago Swift introduced a nice concept differentiating between value and reference semantic using Struct and Classes. As we all know, Struct is a value semantic, which means when value of one struct is assigned to another struct, only value is copied, not the reference - Which in other words
Dec 22, 2019 9 min read
When to weakify
Swift

When to weakify

Today I am going to talk about one of the discussion prone topics on iOS platforms. Detecting memory leaks and when to apply weakify. The topic came up while I was recently performing a code review and there were some discussions on whether there is a memory leak or not.
Oct 24, 2018 9 min read
Advanced debugging in iOS
lldb

Advanced debugging in iOS

Other day I was watching this excellent Session on Advanced debugging with Xcode and LLDB presented at WWDC-2018. My post may be called as a gist of this talk, since this post summarizes the talk and all the examples mentioned in this post are taken from the Apple's video with
Jul 23, 2018 17 min read
Swift - Fighting  memory leaks in closures
Swift

Swift - Fighting memory leaks in closures

Swift is a great language. In fact, it's among my top 3 favorite languages. It is quite strict in terms of discipline and best practices which pay off in the long-term to offer performance and crash-free experience to end-users. There are also many ways where things can go wrong. Today
Apr 1, 2018 10 min read
Fresh Beginning © 2025
Powered by Ghost