Trilogy: A New Database Adapter for MySQL from GitHub— GitHub uses Trilogy for connecting its Rails apps to ‘MySQL-compatible’ (e.g. MariaDB) database servers. Why use it over mysql2? It has no dependency on libmysqlclient or similar, so it can be easier to install and deploy, and it boasts improved performance under heavy loads. Compatibility varies, so take care and be sure to test if it will work for you. Matthew Draper (GitHub) |
Heroku’s Next Chapter, Says Bye to Its Free Plans— Heroku has played a huge role in the Ruby and Rails space over the years, but there’s recently been a lot of conjecture around its future. Salesforce (its owner) has responded with a public roadmap.. which sadly includes the discontinuation of its wildly popular free plans by the end of the year, so if you have apps on Heroku, it’s worth checking in on how they’ll fare. Bob Wise (Heroku) |
Ditching Active Record Callbacks— As useful as they can be, Active Record callbacks are a frequent pain point for Rails developers because they can be easily overlooked when debugging. After ending up in a tangle of callbacks, Jeremy’s team came up with a different approach (that I’m not that keen on myself, but you might!) Jeremy Williams |
📖 Articles, Stories & Videos |
The What, the Why, and the How of Bloom Filters— Bloom filters are a very interesting type of data structure that allow you to efficiently determine whether something is definitely not a member of a set or, to a certain level of probability, is a member of a set. They’re not difficult to implement either, as we see here. Rishi Jain |
Migrating a Rails App from Webpack to esbuild— Jakub explains how he’s migrated a project with over 300k lines of JavaScript code(!) from Webpack 4 to esbuild and, perhaps unsurprisingly, got far faster builds in the process. Jakub Kosinski |
Stateless Forms with the Rails Attributes API— If you’ve ever used a non-ActiveModel-based form in Rails before, you’ll appreciate this dive into the Attributes API, its use cases, and several examples of how to use it with real-world forms. Justin Searls (Test Double) |
▶ Discussing Postgres with Andrew Atkinson— Ruby-flavored Postgres database discussion covering areas like constraints, catching unsafe migrations, and analyzing query plans. Code with Jason Podcast podcast |
▶ The One About Layoffs— Brittany Martin and Brian Mariani tackle a difficult topic, but one that’s increasingly affecting developers in turbulent times. They share their own personal tales and try to offer some silver linings too. The Ruby on Rails Podcast podcast |
BabySqueel 2.0: An Expressive Query DSL for Active Record— Squeel was a project many years ago that monkeypatched Arel to enable the writing of more expressive queries. BabySqueel brings similar ideas to Active Record but with less monkeypatching. So if you’d rather write Post.where.has { created_at >= 2.weeks.ago } than the longer Arel-based equivalent.. give it a look. Ray Zane |
Find Ruby Jobs Through Hired— Create a profile on Hired to connect with hiring managers at growing startups and Fortune 500 companies. It's free for job-seekers.
Hired |
|
|