This Week I Learned #24

Assumed audience: people interested in learning and metacognitive tools. What's this?

Here are some of the things I learned this week, in the order I’ve noted them down.

# Programming

  • Moment.js is now in maintenance mode. I have used it on several occasions in the past, without realizing that it has fallen out of favor as of late. I looked for an alternative to display relative dates on the microblog page and settled up on the more lightweight date-fns.
  • This week I have been grappling with an annoying SwiftUI bug that only affects simulator builds. The stack trace isn’t of much help and no amount of view hierarchy tweaks got rid of it entirely. Initially I was under the impression that either my code or one of my external dependencies were doing something horribly wrong, but this post from Peter Steinberger made me realize that it is a rather widespread issue. For the time being, I am commenting out the code branch that triggers the issue when running the app on the simulator.
  • I refreshed my knowledge on variable fonts in CSS and the considerations to make when working with them thanks to this wonderful guest lecture by Chad Mazzola. Hope my students enjoyed it as much as I did!