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.

Software Dev

Uber’s Piranha Eats Your Stale Code

Feature flags are a great way to selectively introduce new features. it allows you to experiment and commit incrementally.

The only down-side to feature flags all the extra code, and in particular going back later together rid of all the crusty flag code flagging you feature on or off. This kind of tech debt can really pile up over time.

Apparently Uber uses feature flags in the thousands and without remorse. So they came up with this automatic way to wipe out your stale, disabled code. Perfect name, too!

πŸ‘‰ Introducing Piranha: An Open Source Tool to Automatically Delete Stale Code | on GitHub

Via iOS Dev Weekly. See also: The Mother of All Feature Flagging Systems for iOS

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.