(Note: This post uses Swift 5.4 and the iOS 14 SDK)
There may be some circumstances where you want to encode/decode a model in multiple ways, depending on certain conditions or use-cases. There's a lot of potential solutions to this problem. Here's some of them.
(Note: This post uses Swift 5.2 and the iOS13 SDK)
It's been almost exactly a year since I started taking classes at Lambda School, and now I'm on the cusp of completing my time there and starting my job search in earnest (hit me up if you know a place!). As part of completing my "endorsement" (aka graduation), I need to write a "what I learned at school today"-style article. Once again you can probably read my hint of snarkiness, but also, again, I think this is a potentially useful exercise.
This weekend I was working on a framework for fetch operations, and was wanting an easy way to make access to a property atomic in order to prevent race conditions where multiple things try to access or change something at the same time, which could cause all sorts of issues.
After doing a bit of research, this ended up being a two-step process, but in the end it makes both creating and accessing this property easy and succinct.
Happy New Year! I realized recently that I haven't written in awhile and I never really wrote about Super Countdown Tracker, so I'm now taking care of both of those things.