Automatic Observation Tracking in UIKit and AppKit: The Feature Apple Forgot to Mention TL;DR: iOS 18 and macOS 15 secretly ship with automatic observation tracking for UIKit/AppKit. Enable it with a plist key, and your views magically update when your Continue reading
I’m now losing weight, thanks to Stelo and Cronometer. But now I’m irritated at my various health apps because they want to show my average weight over a span of time—and not the rate at which I’m losing weight, which Continue reading
Out of curiosity I used ChatGPT to generate some documentation for text editor fields in Android with Jetpack Compose. I didn t validate the contents, and the links are incorrect but it s a damned interesting use case for documenting your code. My Continue reading
Or how I realized I loved to solve strange and interesting problems which are utterly useless to me in the real world. Today I finally created a public GitHub repository called Rabbit Holes which I intend to populate with various Continue reading
I just read the following article: Stop Using Function Parameters Now. It was an article which called for using a Javascript feature for passing parameters, which in a language like Swift could be done using default parameter assignments and named Continue reading
One of the more common problems we encounter when writing software is the problem of parsing a file. Generally that involves parsing a text file that is, turning an array or stream of characters into a data structure that can then Continue reading
A design pattern is defined as general, reusable solution to a commonly occurring problem within a given context in software design. The idea is that when you encounter a problem, it provides a ready to use template for helping to Continue reading
I m putting this here so I have a place to look for this later. In macOS, iOS, tvOS, etc., there are a number of target conditionals that are set in TargetConditionals.h on Xcode which allow you to detect what you re Continue reading
I hate Swift. I know this isn t the sort of thing that, as a developer of macOS and iOS software I m supposed to say. After all, Swift is new, Swift is great, Swift has idioms which prevent you from getting Continue reading
Answering a question found on Marginal Revolution, an economics blog which I periodically follow: Long-time MR reader here. I have a question: what is the appropriate framework to think about incentives (economic or otherwise) for electric power utilities to beef Continue reading