Software Dev

What Adding Dependencies Will Do To Your App in 2020

I like the title of this article because it recognizes that pulling third-party dependencies into your app has a cost.

👉 What Adding Dependencies Will Do To Your App in 2020

And yet we all do it because it also has its benefits. 🤦🏻‍♂️😂

That article is a realistic and practical look how the dependencies affect your app in terms of app launch times, app size, and build times. It compares Swift Package Manager 🤓, Carthage 🤷🏻‍♂️, CocoaPods 😬, manual dependency management 🥺, and Git Submodules 🤮.

I still have a dream of zero dependencies 🤩, but I know it’s not realistic in a complex app. 😑

Via iOS Dev Weekly.

Software Dev

Reducing Your App’s Memory Footprint

Retain cycles, timers, big images, caching. These are a few reasons why your app might be using more memory than it should.

It might be a good time to audit your app and see how much memory it’s really using.

Lazy loading, implementing memory warning methods, using NSCache, autorelease pools. These are a few ways to deal with it.

Also, let’s say, just make a clean, focused software design. 🤷🏻‍♂️

👉 How To Reduce Your App’s Memory Footprint

Software Dev

We All Hate Error Handling. Here Are Some Tips.

Error handling makes everything more complicated. Ugh! What do you do if a network call times out (pretty common)? Or you’re trying to save an image and there is no disk space (less common but can happen)? Or that thing that’s never supposed to happen happens (occasionally happens)?

I mean, you have to do something, right? Ugh. 🤦🏻‍♂️

Here are some tips. Thanks to Swift By Sundell for giving this topic some attention.

👉 Propagating user-facing errors in Swift

Via iOS Dev Weekly.