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.
New features in Rails 6: Multiple databases, parallel tests, Action Mailbox and more
With the release of Rails 6 on the horizon, we examine the framework’s new features piece by piece:
Using Que instead of Sidekiq
A comparison between Que and Sidekiq for processing background jobs:
Testing Ruby on Rails Migrations
Is testing Ruby on Rails migrations possible? Does it make sense? In this blog post, we explore a way to test migrations that have been actually used in a PR submitted on Solidus, an open source eCommerce platform based on Ruby on Rails. Read the article HERE!
How Ruby 2.6 allowed me to do another open source contribution
Thanks to Ruby 2.6.0 release and my another open source contribution, httparty gem started to support setting HTTP write timeout. Enjoy!
An RSpec time issue (and it’s not due to timezones)
An investigation into why a test fails only 30 minutes per day.
Zero configure Dockerfile for Rails
The bankai-docker generate Dockerfile for your Rails project without any configuring.
Tech Book Face Off: Rails AntiPatterns Vs. The Rails 5 Way
In taking a look at two Ruby on Rails books, I found that even when dealing with modern frameworks, older books can still be more useful than new ones.
Action Cable vs. malloc_trim
Yet another Ruby memory usage benchmark, but this time from the Action Cable point of view:
Jekyll 4.0.0 Upcoming! First Alpha Pre-Release Out! Faster Built Times And Much More
Hello, thanks to Frank Taillandier (@DirtyF) and friends for the latest (and greatest) updates. Jekyll 4.0.0 Upcoming! First Alpha Pre-Release Out! Faster Built Times (Thanks to Caching and More), Many Bug Fixes & Updates and Much More. What’s Jekyll? The World’s #1 (Static) Website Compiler (Yes, in Ruby). Cheers. Prost. PS: For more Jekyll News Bytes, see @PlanetJekyll.
How arrays work under the hood
My attempt on explaining how Ruby’s arrays work under the hood - I dive a little into how arrays are represented in C and how dynamic arrays are lies [more inside]
Ruby has no class methods
This was the second article that I ever wrote, and Matz retweeted it! One of my proudest moment yet :) Do give me feedback! [more inside]
A scary side of ActiveRecord's find
You may not know how a tiny oversight might affect your application - learn about a scary side of ActiveRecord’s find
Quick and easy admin options for Rails
This article presents some options for extending your existing applications with a pre-generated, customizable admin console. [more inside]
Why Ruby on Rails Is Still a Good Choice in 2019
Ruby on Rails is almost 15 years old but it’s nowhere close to passing on from the world of programming. While no longer among the most popular, Ruby on Rails is still widely used in 2019, offering maturity, stability, and high code quality. Let’s see what else makes this framework a good choice for your project in 2019–
Elixir Programming: Facts to Know for Better App Development
There many well-known web development languages as Python, PHP, and Ruby that have been successfully used by developers for a long time. There has recently been brought a new technology that is being thoroughly discussed which is called the Elixir programming language. [more inside]
Do you really know public, private and protected in Ruby?
How well do you know the public, private and protected access in Ruby? Do you REALLY know the details? 🤔 Dive deeper into the nuances in our latest blog post -
A Deep Dive into Routing and Controller Dispatch in Rails
Let’s explore how routing works under the hood in Rails. How does a web request make it all the way to your Rails controller?
Deploying Machine Learning Models for Ruby applications using PyCall
Previously, we have trained a really simple model that was predicting income level between “<= 50K” and “> 50K”. It was a very simple classification problem for which we could use Sklearn-porter to generate Ruby code based on the trained model. This time I decided to pick a more complicated dataset for regression problem. To complicate the project a little bit more and make it look more like “real-life”, we implement Sklearn’s pipeline that will transform the data into the shape expected by an estimator. Let’s implement PalmSpringsBnB that is able to suggest a list of prices based on information about the property.
Released merkle_tree gem
A merkle_tree is a Ruby implementation of binary tree of one-time signatures known as Merkle tree. You can verify if a message belongs to the tree, update any leaf to create a signature for a new message or expand the tree with new nodes. Enjoy!
Keep your state changes local
Short article on managing mutations in code in a way that will minimize the chance for bugs.
Interview with Jesus Castello
Jesus Castello talks about the Roda Framework, its uses and stats around its performance. https://www.driftingruby.com/episodes/interview-with-jesus-castello