Notes & Posts

  • Types & Functions Are Equivalent
  • Traversing an Array in Reverse
  • Swift's 'any' and 'some' Keywords
  • Functional Prefix Sum in Swift
  • Neighbors are Important
  • Simple is Hard
  • Dissatisfaction by Design
  • The Checkbox Conundrum
  • Weirdness of SwiftUI's ForEach Constructor with Ranges
  • Grouping Subviews for Accessible Collection View Cells

Coding

← Notes & Posts

Types & Functions Are Equivalent

Calendar June 10, 2026
Coding
Swift, Functional Programming
How a type and a function can be equivalent in Swift — declaring the same thing as a struct or as a function returning closures.

Traversing an Array in Reverse

Calendar August 4, 2025
Coding
Swift
Iterating a Swift array in reverse: comparing reversed() ranges against stride for clarity and performance.

Swift's 'any' and 'some' Keywords

Calendar May 1, 2025
Coding
Swift
What Swift’s ‘any’ and ‘some’ keywords actually do under the hood, and when to reach for each.

Functional Prefix Sum in Swift

Calendar April 26, 2025
Coding
Swift
Computing a prefix sum in Swift functionally with reduce(into:), compared to a plain loop.

Simple is Hard

Calendar May 31, 2024
Coding
Software Engineering
Why writing simple, obvious code is harder, and more valuable, than writing clever, complex code.

The Checkbox Conundrum

Calendar April 29, 2024
Coding
Tooling
The easily-missed App Store Connect checkbox that lets organization developers run apps on devices.

Weirdness of SwiftUI's ForEach Constructor with Ranges

Calendar April 25, 2023
Coding
SwiftUI
Why SwiftUI’s ForEach accepts a constant integer range without an id but warns on a non-constant one.

Grouping Subviews for Accessible Collection View Cells

Calendar April 11, 2023
Coding
Accessibility
How to make a custom UICollectionViewCell read as a single VoiceOver element by grouping its subviews.
  • Categories
    • Coding 8
    • Life 2
  • Tags
    • Functional Programming 1
    • Swift 4
    • Software Engineering 1
    • Tooling 1
    • SwiftUI 1
    • Accessibility 1