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.
Ruby and PHP comparison in 2018
We compare Ruby vs. PHP in 2018 to find the main pros and cons of critical aspects of both technologies. All statistics shown below is relevant for June 2018.
Monitor your server metrics on your own machine
I’ve created a gem that collects and aggregates your server metrics so you can see things like CPU load, memory/swap/disk usage, and top 10 processes by cpu and memory. Like a tiny version of Scout or New Relic but with minimal dependencies. Its perfect for small projects where services like the one mentioned above would be overkill (and not free). It can be run as a standalone Sinatra app or mounted on any rails application. This is a community so clone away and commit back all improvements.
Why You Too Should Learn Elixir
Learn Elixir not because you will get a better job out of it, but because learning functional programming will make you a better programmer.
Under the Hood: “Slurping” and Streaming Files in Ruby
In Ruby Magic #14, we’ll look into the difference between “slurping” and streaming files in Ruby. Along the way, we’ll learn about I/O, and how Ruby reads files line by line without slurping the whole file content into memory.
Adding Webpacker to a legacy Rails app
There was not a day without a new JavaScript framework these past years. The problem is, Rails does not provide any proper support for those new toys. Unless you get the hang of a gem called Webpacker
Using Google Analytics Gtag with Turbolinks
explains how to get it working with a simple example.
ButterCMS vs. WordPress: A Typical Project Journey
What’s the difference between using ButterCMS and WordPress? We show you a typical project journey from day 1 to launching your blog using both services
Never send a human to do a machine's job. Business Intelligence in RoR
Let me introduce you to Blazer gem, which allows you to write and visualise SQL queries. [more inside]
What is Deis?
This post explains what Deis is and how to work with it
If vs. Unless in Ruby
Do you find unless to be confusing? I know I do. Especially if it’s combined with one or more boolean operators.
stale_options 0.1.1
stale_options is a gem for caching HTTP responses. The gem was built with an idea to implement a class which will create options for ActionController::ConditionalGet#stale? method. It allows to cache any kind of object, not only record or collection (unlike of #stale?).
Write bash/zsh autocomplete in Ruby
This post teaches you to write Bash and Zsh support tab-completion scripts in Ruby! by saveriomiroddi
Digging into Rails' template finding
I just published my second post of the “Disassembling Rails” series to explain how Rails’ template finding works
Ruby's Sort and Sort_by
Whenever I hear the word sort in a programming context, I get instant flashbacks from my high-school days. It’s like going back in time for a few seconds.
Whay Is a Ruby Reducer?
The term comes from the world of functional programming, and it’s often paired with map. You’ve probably heard the term map/reduce if you’ve been in the programming world for more than a few months.
Spreadsheet Architect v3.0.0 Released
v3.0.0 of your favorite spreadsheet library for Ruby, Spreadsheet Architect, is now released! For those that don’t already know Spreadsheet Architect is the bee’s knee’s for creating any format of spreadsheets within your Ruby or Rails projects. Now you know. Check out the Changelog for the sweet deets. https://github.com/westonganger/spreadsheet_architect
What Is a Ruby Enumerable and Why Would You Use It?
The Ruby Enumerable module deserves the top spot in the popularity contest. It packs so many great methods that it’s hard to think of an application that wouldn’t use it.
How in demand are Ruby on Rails developers in 2018?
What are some of the stats around Ruby on Rails developer hiring in 2018? We examine an article by Yoel Blum. [more inside]
HTTPX (0.1.0) - an HTTP client
HTTPX is an http protocol client library in ruby which supports concurrent requests (using HTTP/2 and HTTP/1 protocol features), modular features and a simple API.
How to Use the Ruby Map Method
I think it’s so cool that the Ruby map method exists. It means that Ruby has support for higher-order functions, and functional programming. [more inside]
How to Use Strings in Ruby
I remember when I first heard about strings. I wanted to create a command line application that would ask the user for his name and age. Read it here
Scoping records to the current account in Ruby on Rails applications
A simple approach to ensure that user can only modify their own records in a Ruby on Rails application. [more inside]
E-Commerce on Rails: Inside Shopify's Tech Stack
Shopify is one of the oldest and largest Rails apps in existence. Today, they power over 600k online stores. This is how they’ve managed to scale with Rails.