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.
Finding Bugs in your Ruby Benchmarks
This post follows up on benchmarking Rubygems and covers a benchmarking bug making the benchmark invalid and how to make benchmarks more readable.
Simple shortcuts to get more out of Bundler
Did you know Bundler can do much more than just install gems? I’ve just shared convenient shortcuts to my most-used Bundler features in a new post on Everyday Rails.
Questions about GDPR? I've been involved in the entire compliance process. AMA
I have the feeling that there is a lot of uncertainty in the developer and startup community regarding GDPR. I am the author of Passenger and have been involved in my company’s entire compliance process, from legal research, to setting up the data processing register, to educating employees, to modifying systems and processes. Since I have a developer/Ruby background, maybe I can help. Ask me anything.
Frozen middleware with Rack freeze
This post explains about freezing middleware with rack-freeze
Enhanced Filterable concern for Rails models
Expanding on Justin Weiss’ idea of Filterable concern, here is an improved version that makes your code more maintainable and intention revealing. https://hspazio.github.io/2018/rails-filterable-concern/
ActiveRecord - performance tips #1: N+1 queries problem
Series of blog posts explaining ActiveRecord features. The first one is about N+1 queries problem and how to deal with it. [more inside]
sho: Experimental post-framework view library
Sho is an experiment to provide view layer that is “just Ruby” (= follows the regular intuitions of Ruby programmer, not introducing some hidden conventions that are not deductible from the code) and reuses regular Ruby concepts for code sharing, parameters passing and flow structuring instead of introducing its own concepts like “helpers”, “exposures”, “locals” (completely unlike local variables!) and so on.
footty - football.db command line tool / client for world cup (russia 2018)
Hello, for the upcoming football world cup in russia 2018 - the world’s biggest show (3+ billion fans) - I’ve put together a little command line tool / client called footty that lets you query the online football.db HTTP JSON API services for upcoming or past matches. Enjoy the beautiful game with ruby. Kick off in four days.
Adding Automated Speech Recognition for Phone Calls to Ruby on Rails Applications
Speech recognition is all around us these days, but how about putting it on the phone. Daniel Phillips shows how to build speech recognition into your a Twilio call using Rails.
Rails API and Facebook login (featuring Doorkeeper and OAuth 2 authorization)
A quick guide to using Rails API and Facebook login (with help of Doorkeeper) https://medium.com/hyperoslo/rails-api-and-facebook-login-featuring-doorkeeper-and-oauth-2-authorization-a2aa3af8ce15
Starting with Rails - how to set up a development environment
This (very) basic tutorial might be a starting point for anyone (of your friends) who’d like to find out how it feels ‘to be a coder’. https://prograils.com/posts/starting-with-rails-how-to-set-up-a-development-environment
From the Asset Pipeline to Webpack in Rails
Haven’t use Webpack yet with Rails? Is not just for SPA applications. Here is a overview on how to move from the Asset Pipeline to Webpack. https://sipsandbits.com/2018/06/07/from-the-asset-pipeline-to-webpack/
The Rails presence Method
A quick dive into a lesser used, but useful Rails method.
Semaphore Boosters - automated parallel testing for Rails available to all
A feature that helps you to automate parallelizing your RSpec and Cucumber tests in a few clicks is now available to everyone. It has helped many teams to reduce their Rails CI build times by as much as 2 hours. Learn how it works and try it: https://semaphoreci.com/blog/2018/06/07/automated-parallel-testing-for-rails-available-to-all.html
Tell Don't Ask Principle in Ruby
In this video you’ll learn how to use the Tell Don’t Ask Principle to write better Ruby code! https://www.youtube.com/watch?v=3BaKc-hWGmA
A Simple Way to Decrease Complexity of Routes in Rails
Sometimes, when you are working with a large codebase, your routes.rb files grow really fast and become very dirty. [more inside]
Lessons learnt in the fourth year running a Ruby consultancy
Hi all! Àlex from MarsBased here, a 100%-remote Ruby & Angular consultancy from Barcelona. After four excellent years, we wanted to share some lessons learnt in the last one with all of you: most of them are good for freelancers and business owners, irrespective of the technologies and sectors. [more inside]
Match stream
Hi! Recently I had to handle large files in memory using lazy enumerators. When I was testing I realized that there is no built in matcher in RSpec to test if two enums are the same, so I built a custom matcher for this. [more inside]
Should you break up your monolithic application?
Marco Palladino of Kong discusses the whens and hows of how to break up a monolithic application into #microservices
Upgrade Your JS Debugging In Capybara w/ Browser Extensions
Debugging client code in integration tests can be difficult. Our usual workflows are broken because we don’t have the right tools at our disposal, but it doesn’t have to be this way! Here is how to use the browser extensions you know and love in your tests. [more inside]
world-cup.json - Open world cup in Russia 2018 football data in json
Hello, using the sportdb machinery (gems, command line tools and build scripts in ruby) I’ve put together a new free public domain dataset for the (football) world cup in Russia 2018. The world’s biggest (sport) event kicking off in about a week. Enjoy the beautiful game with ruby and datasets in json or sql :-). PS: Find the (activerecord) sql to json script in the yorobot automation repo.
Errata release for Everyday Rails Testing with RSpec now available
I was hesitant to post this here, but Leanpub has disabled email notifications of new releases as they transition to GDPR (for good reason). I released a large, errata-focused release of Everyday Rails Testing with RSpec this evening, as a free update to anyone who’s ever bought the book over its six-plus year run. Help me get the word out? https://leanpub.com/everydayrailsrspec/
Use “barewords” to embrace the true power of late-binding in Ruby
This is the RubyTapas episode most often-cited as a fan favorite, and it’s now free for everyone!
Ruby's redo, retry and next keywords
Wrote a primer on Ruby’s little known redo keyword.