Michael Enger

https://michaelenger.com/blog by @michaelenger@hachyderm.io

2 posts · 1 Votes

Tech

Subscribe via RSS

  1. Encoding an Object as a String in Swift

    For a project I’m working on I had a need for a Codable object which could be represented as a basic text string, and specifically not a JSON string. I was eventually able to find a solution so I thought I’d document it, partially to help anyone who has the same need but also invite anyone to correct me if there is a simpler way to accomplish this. Let’s say you have this struct: struct MyData { let text: String let number: Int } And you want to encode the data as a string in the following…

    0
  2. I Love the Computer

    In a recent discussion on the Aftermath Podcast about the ill effects of the current AI hype cycle, one of the editors said something that really resonated with me: I love the computer. — Chris Person This was in the middle of a rant about how these snake oil salesmen are ruining the space he loves with their insatiable avarice and, as much as I’d like to add my voice to the chorus of technologists who are legitimately angry at this social crime being committed, I’m going focus on that specific…

    1