Skip to content

Collin Donnell

  • PhotosMy photo blog.
  • MusicMy music website.

  • Something I Miss When Coding Swift

    I know it’s not safe and goes against the whole ethos of Swift, but after having worked a lot in Ruby, being able to generate methods at runtime is a killer feature, and I miss it dearly. Swift is all about safety and static analysis, and those are totally valid goals for a language to have. That doesn’t change the fact that manually writing out a bunch of nearly identical methods across multiple classes is tedious.

    I would also argue that in a lot of cases, even if the Ruby approach is less safe, being able to generate methods and properties at runtime can be less error-prone. If I only have to write that code once, it’s a small surface area for bugs.

    Before I used Ruby on Rails, it had a bad reputation in my mind, because all I ever heard was how much it relied on “magic.” At the time, I interpreted magic as meaning that how Rails worked was somehow unknowable. It’s not, though. Once I started actually learning Ruby and then Rails, I could see exactly what was happening.

    The magic of Rails is really just Ruby’s dynamic runtime — Rails uses introspection and code generation to define methods dynamically instead of upfront. Since I had a really strong background in Objective-C, which also features a dynamic runtime, this immediately made sense to me.

    And just to be clear — I know Swift. I’m a Swift programmer. I’ve been using Swift as long as it’s existed. This isn’t a knock on Swift. I’m not even sure Swift should be able to do this. What I do know is that I hate writing more code than I have to, and when a language saves me from that, it makes me very happy.

    February 22, 2025
    Ruby, Ruby on Rails, swift

  • Reflections on Incident Metering

    I wrote a post on my photo blog about incident versus reflective metering in photography. I thought it could be interesting to people who follow me here. If you’re only using the meter in your camera or a shoe-mounted meter, you’re using a reflective meter. The post goes into detail about why reflective metering is pretty limited, why you might want to get an incident meter, and shows some examples I took over the weekend.

    December 10, 2024

  • Stop Infantilizing Trump Supporters

    For the past eight years, maybe longer, I’ve had this idea I think a lot of people shared. That idea was that Trump supporters or Fox News conservatives, or whoever, were being duped. They were voting for and believing the things they did because they were being lied to and had bad information.

    I’ve heard this referred to as coddling, but I like the term infantilizing better. By that I mean, they’ve been treated like children who didn’t know any better. I’m done with that. I’m ready to treat these people like adults. Adults that have access to the same information everyone else does and who have made a choice to support the heinous things and repugnant individuals they do.

    I’m not going to assume they’re stupid or being tricked. Even if they were, I don’t care anymore. I’m going to treat them like adult humans who have the capacity to make their own decisions and be judged on them. I’m going to believe them when they say horrible things, repeat conspiracy theories, or degrade others.

    n the past, I’ve thought (and maybe still do) that a lot of Trump voters know they’re talking bullshit. They don’t expect to be taken seriously. Or maybe they do believe it, but they’re so used to being treated with kid gloves, they think they can get away with it. Fuck them. I don’t care. They said it. I’m going to believe them.

    They heard Trump say “we will root out the communists, Marxists, fascists, and the radical left thugs that live like vermin within the confines of our country,” and say that immigrants were poisoning the blood of our country, and didn’t have enough of a problem with it to support someone else.

    I’m going to respect my fellow Americans enough to take their words and actions at face value. I’m going to judge them in the same way I would anyone else who said or believed those things.

    December 3, 2024

  • Updating My Bluesky Handle Was Surprisingly Easy

    I just updated my Bluesky handle to @collin.social. It took roughly ninety seconds to complete, and I can still use the actual domain for other things.

    When I had looked at doing the same on Mastodon, it involved configuring a WebFinder route that returns JSON, and once I did, it wouldn’t actually change my handle that’s displayed on Mastodon. With Bluesky, it was just a matter of adding a TXT record to my domain and hitting verify.

    I like and use Mastodon, but this is exactly the kind of user experience thing that makes it non-viable for anyone other than tech enthusiasts.

    November 26, 2024
    Bluesky, Mastodon

  • Keyboard Shortcut for Proofread on macOS

    Of the Apple Intelligence writing tools that were released in beta recently, I’ve found the ones which try to rewrite your text in any way to be pretty bad, at least for me. The one feature I’ve been using many times a day, however, is “Proofread.” It’s sort of between macOS grammar/spellcheck and Grammarly. It’ll see where you missed a comma, fix capitalization, and that sort of thing without changing the tone of your text. It’s even smart enough to not mess up your formatting when writing in Markdown.

    In fact, I like it so much I set up a keyboard shortcut for it. If you don’t know, you can set up keyboard shortcuts on your Macintosh for any menu item. I made mine control-command-p. If you’ve never done this before, Apple has a support page that will show you how it’s done.

    November 20, 2024
    Apple Intelligence, macOS

  • Why Can’t iOS Have Smart Folders?

    On macOS, Apple has the concept of a “Smart Folder” that is found in all kinds of places. Sometimes they’re called something else, but it’s the same concept. Just off the top of my head, they exist in Mail, Contacts, Finder, Music, and Photos.

    The only apps I know about that have added them for both macOS and iOS are Reminders and Notes, although I’ve found the implementation of them to be a bit weird. In both of those, you can’t add sub-conditions, so you can say all or any of a list of conditions, but you can’t say “all of these conditions and any of these conditions.” It might sound like a small thing, but it’s not.

    Anyway, back to the topic. I want this, and I want Apple to add it. Part of me wonders if it’s just a matter of there not being an equivalent to NSRuleEditor in UIKit or SwiftUI, and so every app would have to implement the control on their own1.

    Apple Photos is the one where I really miss this because Photos libraries tend to be so big, and there are so many ways to slice them. For example, “I want to only see photos taken with this or that camera in the last six months.”

    I know this whole thing probably sounds very specific and nerdy to anyone who doesn’t use this feature, but I do, and I think Apple should add it. It’s been fifteen years, Apple. I believe in you. You can do it.


    1. Which is what Reminders and Notes did. ↩
    November 19, 2024
    iOS, macOS

  • Took Threads Off My Phone

    Yesterday, I took the Threads app off my phone. I’d started to think that maybe three different apps for text-based social media (Mastodon, Threads, and Bluesky) were too many, but really, it’s just that Threads kind of sucks, and I was tired of wasting my time on it.

    Here’s how I’d classify the three as they stand right now:

    Threads

    Mostly shows me posts from people I don’t know or care about, and is full of engagement bait and MAGA trolls. It’s like Instagram Reels as text-based social media. You either like that or you don’t. I think the algorithmic timeline makes it really easy for trolls to find people to start fights with.

    Mastodon

    Mastodon is great for me since I only use it through Ivory, and a lot of my friends are there. The problem with Mastodon is that it has terrible discovery, and while it’s full of a bunch of my tech friends, there aren’t a lot of people on it who aren’t tech-enthusiasts. I’d like both, ideally.

    Bluesky

    It feels the most like Twitter minus the features I don’t care about and without the trolls. I’m sure they’ll show up — like they do everywhere — but without the algorithmic timeline Threads has, I might not be as personally exposed. A lot of people I know are moving to Bluesky, and I’m also connecting with non-tech people. Another big thing is that it doesn’t feel as cut off as Mastodon sometimes does. I never considered it a positive sign that when breaking news happens, you usually find out about it on Mastodon via people posting screenshots from Twitter.


    Since it doesn’t seem like 100% of the people I care about will ever be on one or the other, I’m sticking with Mastodon and Bluesky for the foreseeable future.

    November 18, 2024
    Threads

  • Collin Dot Everything

    I’m not going to say that I’m proud to have spent the amount that a .blog domain costs, but I did, and I’ve moved my primary blog to it. Everything, including the RSS feed and old post URLs should just work.

    I don’t know how else to put it but that my other sites were already collin.photo (photo blog) and collin.band (music stuff), and I thought it would be funny to have all three. We’ll see how I feel when it comes time to renew the domain in a year, but for now I’m quite pleased with myself.

    November 18, 2024

  • Where to Follow Me (Mastodon, Bluesky, etc)

    Since the world of text-based social media seems to be having another shakeup, I felt like this would be a good time to let people know where to find me across all of the places. As of now, I’m using all of these, so follow me on whichever you like.

    • Here, obviously (RSS, mailing list)
    • Mastodon @collin@ruby.social
    • Bluesky collindonnell.bsky.social
    • Threads @fishermansporch
    • My photo blog (RSS, mailing list)
    • Instagram @fishermansporch
    November 17, 2024

  • My Boring Coding Font Answer

    Joe Steel wrote a post about how he uses different monospaced fonts for different apps. I feel boring now since I just use SF Mono for everything (the default in recent macOS).

    October 24, 2024

Previous Page Next Page

Blog at WordPress.com.

  • Subscribe Subscribed
    Collin Donnell

    Have a WordPress.com account? Log in now.

  • Collin Donnell
    View site in Reader
    Manage subscriptionsSign upLog in
    Report this content
    Collapse this bar