
Overloading vs. Overriding: Telling Them Apart in Swift
Overloading and overriding. Two concepts with names so similar you might wonder why they had to be.
Read articleARCHIVE · 21
Follow the trail from foundational concepts to practical engineering decisions.

Overloading and overriding. Two concepts with names so similar you might wonder why they had to be.
Read article
The first hurdle when learning Swift is optionals. The question mark in String?, if let, guard let, !, and ??. With so many forms of syntax, memorizing each separately can easily turn the rules into a jumble.
Read article
When building an app with Swift, your initialization code eventually starts looking like this.
Read article
Abstract Factory groups mutually compatible objects into product families and replaces them at once. Using a Swift theme example, this article explains how to prevent composition errors and choose between it and Factory Method.
Read article
The final part of the series is about money. If you have run an agent through an API, you may have noticed something odd on the bill. Input tokens cost vastly more than output tokens. Given the architecture from Part 1, that is only natural. Every turn resends everything from the system prompt through the full conversation history, so in a 50-turn agent session, the same system prompt is effectively billed 50 times…
Read article