Posts

  • Use an enum to add roles to your User model

    In 2022 we were hiring for senior Rails developers. I always require that candidates provide their GitHub username so I can browse through their public repositories, issues they wrote, and pull requests to open source repositories. Real senior developers occasionally find a handful of bugs or missing features in third party components and fix it right away. And since GitHub is still home to most open source projects, your contributions to the community are to be found there. At the very least, you should have some interesting pet project up there.

  • How to convert all ISO timestamps to UTC in Ruby GraphQL

    I recently broke a mobile application by changing the timezone1 of the backend application. This came as a surprise because we were using ISO8601 timestamps with UTC offset in the API, so every client should still have been able to decode the timestamp correctly even though the offset had changed.

    1. You can spell it timezone, time-zone, or time zone according to StackExchange

subscribe via RSS