Software Dev

Scroll Hitch Rate

Xcode 12 is adding a new metric to objectively track how smoothly your app scrolls. This is kind of cool since scrolling smoothness feels right and is a sign of a good design.

Via iOS Dev Weekly.

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

The Prototype Mindset

We developers spend so much time focusing on the details of our work that we sometimes forget about the big picture. The presentation below from try! Swift Tokyo has some really helpful perspective. ๐Ÿคฏ

Think about building the right thing before building it right.

Why are you making software? Know your motivations. It affects how you do your job.

Who do you write code for? Think about how you relate to your company and the end user.

What happens when your tech stack changes? Be resilient in your career. Try new things while also shipping apps.

Be less precious about code.

Realistically, how long will this code last? How robust is robust enough? Be pragmatic. Almost all the code Iโ€™ve written in the last few years is gone by now, either retired or completely rewritten.

Donโ€™t try to be perfect. Donโ€™t hold back out out fear.

Real artists ship.

Steve Jobs

How often do you test? Unit tests are a means to an end. Passing unit tests alone does not mean itโ€™s a good 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

Point-Free Composable Architecture

A new software architecture! Hurray! ๐Ÿ™Œ๐Ÿคท๐Ÿปโ€โ™‚๏ธ

I’m filing this away as an idea to try on my next app because all other architectures are still just annoying in some way, and this one has a good name. ๐Ÿ˜†

This architecture is designed to work with SwiftUI and UIKit on any Apple platform (iOS, macOS, tvOS, and watchOS).

๐Ÿ‘‰Composable Architecture, the library

Via iOS Dev Weekly.