Tutorials
Diagnosing performance issues in Rails applications
Almost everyone who works on a large Rails application will eventually have to deal with performance problems. For better or worse, there are dozens of different types of performance problems, which can make it hard to identify which one you’re de...
How to Create a AWS Lambda Layer of Your Gemfile / Ruby Gem Dependencies
If you use AWS SAM to build and deploy your serverless Ruby functions, it'll take care of building your dependencies on a function by function basis and package them up for deployment. Great!But if you don't want to use SAM, using gems with native...
Truemail - configurable framework agnostic plain Ruby email validator/verifier. Verify email via Regex, DNS and SMTP
Email validation is a tricky thing. There are a number of different ways to validate an email address and all mechanisms must conform with the best practices and provide proper validation. The Truemail gem helps you to validate emails via regex pa...
Migrating Classic Slack Ruby Bots to Granular Permissions
Slack recently introduced granular permissions and is now requiring all new apps to use those. The old apps are called classic apps, and new apps are called … apps. Slack also provided a migration guide.As of December 4th, 2020 Slack no longer acc...
Automatically migrate database when pushing to Heroku
I used to freak out when seeing this, but most of the time it is caused by me forgetting to run rake db:migrate after deploying a feature which has new database migrations.If you view logs of the app, and see there’s an error saying ‘relation “tab...
Why you shouldn’t inherit from Ruby’s core classes (and what to do instead)
Sooner or later you’ll want to subclass Ruby’s String, Array, or Hash. In this now-free RubyTapas video, you’ll learn why that’s a bad idea… and what to do instead.Director’s commentary: This was originally published as RubyTapas episode .
How do I make testing a habitual part of my development work? - Code with Jason
One of the most common questions asked by Rails developers new to testing is: how do I make testing a habitual part of my development work?It’s one thing to know how to write tests. It’s another thing to actually write tests consistently as a norm...