Collection
Swift
Language features, API design, concurrency, and the practical mechanics behind better Swift code.
Fresh reading
Latest in Swift
Every article in this collection, using the same layout and reading rhythm as the main homepage.
-
Understanding Swift Ownership
Borrowing, consuming, and why Swift's ownership model matters.
-
Actor Isolation Essentials
A practical mental model for protected state and cross-actor calls in Swift.
-
Sendable in Practice
When Swift asks for Sendable and how to satisfy it cleanly.
-
Task Group Patterns
Running parallel async work in Swift with structured concurrency.
-
Error Handling Patterns in Swift
A compact guide to throws, Result, and typed domain errors.
-
JSON Decoding Strategies in Swift
Decode real-world payloads without turning models into a mess.
-
Defer Cleanup Patterns
Use defer to keep cleanup logic honest and close to the scope it protects.
-
Result Builder Design Notes
Design builder APIs that read clearly and stay predictable for callers.
-
Date Formatting in Practice
Choose formatting APIs that are resilient to locale, context, and product change.
-
Swift Package Structure Basics
Organize targets and modules so package growth stays manageable.
-
Error Context Patterns
Attach useful failure context without making calling code noisy.
-
Codable Versioning Basics
Keep decoders resilient when APIs and persisted formats evolve over time.
-
Task Cancellation Checkpoints
Build async work that stops promptly and predictably when priorities change.
-
Availability Design in Swift
Hide platform differences behind APIs that still feel clean to call.
-
State Machine Basics
Use explicit states to make complex flows easier to reason about and test.
-
API Naming Consistency
Small naming decisions compound into whether an API feels obvious or tiring.