I’ve tried to convince various colleagues over the years that using ActiveRecord models inside a migration is a bad idea. Data migration code should reside in a separate
raketask in my view. I expect I haven’t done a good job of explaining myself.
I was reminded of this once again when I happened across the good_migrations gem.
That means that if your migrations reference the ActiveRecord model objects you’ve defined in app/models, your old migrations are likely to break. That’s not good.
Perhaps I will sneak the gem into codebases I work on.
GitHub did a nice write up about _why the lucky stiff recently. It was a nice reminder about _why and how he influenced Ruby early on. He certainly had a big impact on me when I was first learning Ruby.
I wish I still had my chunky bacon t-shirt.
LiveView continues to grow and impress. I have used it a bit and I ran into some of the issues that Chris McCord talks about in his ElixirConf 2021 talk. The solutions he proposes seem to make a lot of sense to me. Wrinkles are being ironed out.
GitHub released a feature preview this week - Command Palette.
Just like keyboard shortcuts in an IDE, command palette lets you run commands and navigate across organizations, repositories, issues, pull requests, and more all within the GitHub UI.
⌘ + kyour way around GitHub - very nice.
I’ve been feeling irritable for at least the last few weeks. I don’t feel listened to. I’m anxious. I don’t feel good enough. I think I’m experiencing the ol' “burn out”.
I decided, in the interest of my mental health, to take the rest of the week off. I’m not sure this is going to be enough of a break, in fact I’m positive it won’t be, but hopefully it will help.