News
Inside DigitalOcean's Reserved IP Rails migration | DigitalOcean
Reserved IPs (formerly named Floating IPs) is one of our oldest products, and it has changed little since its launch in 2015. As DigitalOcean grew over the years and more customers adopted Reserved IP as a High Availability solution, we started ex...
Automate GitHub API Calls With Ruby, Keyboard Maestro, and 1Password CLI
One of the perks of the “Ultimate” version of Ruby on Mac is access to the private GitHub repo. As a developer — especially one who loves automation — it was tempting to try to completely automate inviting new Ultimate customers to the repo.To do ...
Rails adds beginless range support to clusivity | Saeloun Blog
Now that Ruby 2.7 has added the support for beginless range, Rails 7 also adds support to include the beginless range in ActiveRecord inclusivity/exclusivity validators.Prior to Rails 7, if we were to add a validation to a Product model where the ...
Visitor Pattern in Ruby - Examples from Rubocop | wasabigeek
In this post, we’ll learn about the Visitor design pattern and it’s tradeoffs by looking at a real world example: Rubocop, a Ruby linting and formatting library.What is the Visitor design pattern?The visitor design pattern separates the operation ...
A Comprehensive Guide to Rails Internationalization (i18n)
Thanks to the Internet, our big Earth has suddenly become a small place, in the sense that your customers on the other side of the world are now as close to you as your next door neighbor. However, the solution to the problem of distance is not ev...