The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
From Agency Life to Software Development: Q&A with Steve Polito [Podcast]
The Remote Ruby crew is joined by Steve Polito, a developer working at an agency, to have a Q&A about transitioning into being a full-time software developer working on products. If you’re a junior developer or in a similar situation, give this episode of Remote Ruby a listen.
Predicting the Future With Linear Regression in Ruby
The world is full of linear relationships. When one apple costs $1 and two apples cost $2, it’s easy to figure out the price of any number of apples. But what happens when you have 100s of data points? What if your data source is noisy? That’s when it’s helpful to use a technique called linear regression. In this article Julie Kent shows us how linear regression works, and walks through a practical example in Ruby. https://www.honeybadger.io/blog/ruby-linear-regression/
ActiveJob, GDPR and my contribution to Rails
Ruby on Rails has some built-in solutions to guarantee GDPR compliance. It is not ideal though. I made some effort to make the framework more complaint. https://frontdeveloper.pl/2020/04/activejob-gdpr-and-rails-contribution/
Exploring Method Arguments in Ruby: Part 2
The first part had a good response, so here is part two! [more inside]
Dissecting Rails Migrations
Let’s break down a migration process and find out how to write an effective migration. https://blog.appsignal.com/2020/04/14/dissecting-rails-migrationsl.html
Heya is a campaign mailer for Rails
Heya is a campaign mailer for Rails. Think of it like ActionMailer, but for timed email sequences. It can also perform other actions like sending a text message. I built Heya to replace part of Intercom in our Rails app at Honeybadger.io. (also: source code, reddit post)
Anyway Config: Keep your Ruby configuration sane
Learn how to escape the ENV Hell with Anyway Config from Vladimir Dementyev, author of AnyCable, TestProf, and Action Policy.
footballdb-clubs gem 2020.4 Update - top 2500+ football clubs from around the world
Hello, I’ve updated the footballdb-clubs gem that ships “out-of-the-box” wit the top 2500+ football clubs from around the world (incl. name matcher) for easy (re)use. What’s news? Now all clubs listed in the UEFA Champions League Statistics Handbook (1955-2019/20) and the UEFA Europa League Statistics Handbook (1971-2019/20) are included; all clubs from the 55 top (tier 1) UEFA leagues and much more. Enjoy the beautiful game with ruby. Cheers. Prost.
Custom Exception Handling in Ruby
Ruby uses exceptions for a wide variety of errors and unexpected results. This lets Rubyist handling more common errors as well as creating their own custom errors. Let’s see how to do that: https://blog.bearer.sh/handle-ruby-exceptions/
Testing Ruby decorators with super_method
When we write Ruby decorators often we need to override a simple method which returns a data set just to add a couple of fields. How can we test this scenario without writing complex specs? https://nebulab.it/blog/testing-decorators-with-super-method/
A guide to Webpacker’s YAML configuration
In this post, we’ll do a deep dive on the role of the webpacker.yml file for Webpacker configuration. https://rossta.net/blog/how-to-use-webpacker-yml.html
How to set up a continuous integration pipeline for a Rails dual boot
Best practices and step-by-step instructions for setting up a CI pipeline for a Rails dual boot. This tutorial uses CircleCI.
Podcast Interview: Sandi Metz
Sandi Metz is featured on this week’s episode of the Maintainable podcast. She discusses topics related to maintenance and legacy code, and some thoughts on the Rails framework and Ruby programming language (like why she wouldn’t use Ruby to build a robot that operates on babies). [more inside]
NomTracker (Barebones Calorie Tracker in React/Rails)
A little side-project I did using Rails and React. A small, barebones calorie tracker. Thought I’d share it! [more inside]
Dude Policy - gem for policy objects from perspective of user
Dude Policy - policy objects in Ruby on Rails application from perspective of current_user/current_account. [more inside]
Improve code readability with closures in Ruby
In my recent post I share the process of code reading and its complexity reduction with closures.