Hearthside by Caleb Hearth
Hearthside by Caleb Hearth
Caleb Hearth
Hi, I'm Caleb Hearth. I am a software engineer with over 14 years of experience in web development in Ruby on Rails and Postgres. I live in Denver, Colorado with my wife Hannah, our sons Henry and Oliver, and our dog Zeke. In my free time, I enjoy playing tabletop role-playing games, reading, and have occasionally been known to write Open Source software.
Latest Posts
The approach I take to defining ViewModels for SwiftUI was heavily inspired by Paul Hudson’s post Introducing MVVM into your SwiftUI project. In it, he advocates for defining class ViewModel inside an extension to the relevant view. By...
I’m frequently wanting to work with truncated dates in Swift apps, especially when dealing with Swift Charts. Foundation provides Calendar.startOfDay(for:) to get the first moment of a day, and that’s been really useful. The extension...
Starship is a highly-configurable, cross-shell prompt. I recently switched to using it and it sped up my prompt rendering from being noticably slow and taking probably half a second to render to an imperceptible 0.03s rendering time. It...
Sending a From header is part of building a polite crawler, along with respecting Robots.txt and sending a unique User-Agent. The From header simply contains an email address that can be used by the site’s owner to reach out if your bot...