#413 — August 23, 2018

Read on the Web

Ruby Weekly

Using Lambdas to Simplify Varying Behaviors in Your Code — An excellent article on how lambdas are used to remove conditionals and apply design patterns including specific, real-world use cases.

Keith R. Bennett

The Curious Incident of the Shadow in the Run-Time — No, this isn’t the latest teen vampire novel, but a look at how shadowing in various guises can cause confusion in Ruby code.

Paul Fioravanti

Ruby, Meet Rollbar — Detect errors in your production Ruby apps with our lightweight SDK, then debug them within minutes before your users notice. Get unlimited errors during your free trial.

ROLLBAR sponsor

Scaling Rails at Instacart: Distributing Data Across Multiple Postgres Databases — Some of best articles come from companies explaining how they solve real issues, just like Instacart does here.

Doug Hyde

▶  Discussing Ruby Performance with Nate Berkopec — Nate is both a prolific blogger on the topic of performance in Ruby and he’s a Ruby performance consultant too, meaning you’re sure to learn a few things from this hour-long chat.

Ruby Rogues

RubyFlow: A Ruby Community Link BlogRubyFlow is a community blog we run (all you need is a GitHub account to post) and has become one of our main sources of links, so if you have a library, tutorial, or something else Ruby related, post about it there.

RubyFlow

💻 Jobs

Ruby on Rails Developer at Kollegorna (Remote) — We build first-rate digital products, have nice perks, the finest colleagues, and won’t work you to death.

Kollegorna

Technical Architect – London — dxw helps public sector teams build better digital services. You’ll help our teams build great services and coach & grow the team.

dxw digital

Find A Ruby Job Through Vettery — Vettery specializes in dev roles and is completely free for job seekers. Create a profile to get started.

Vettery

📘 Tutorials

Indexes on Rails: How to Make The Most of Your Postgres Database“Optimizing database queries is arguably one of the fastest ways to improve the performance of the Rails applications.” Read this post to see how.

Karol Galanciak

Statements and Expressions in Ruby — Find out the difference between statements and expressions in Ruby, with a concrete, but highly unusual example.

Jared Norman

From Service Objects To Interactors — Once you’ve evolved to using service objects, it’s a good idea to formalize the “how” so you don’t end up with service object soup.

Jared Rader

Upgrade Rails From 5.0 to 5.1 — Six simple steps.

Ombu Labs

Cut Your Heroku Bill in Half — Autoscaling That Just Works

Rails Autoscale sponsor

Clean Module Injection in Ruby — Monkeypatching is often labeled as ‘evil’, but sometimes it’s the best of many bad options. Here’s how to be ‘evil’ in a cleaner way.

Harry Stebbins

Solving the N-Queens Problem With Ruby — A coding challenge that involves placing N queens on a N x N chessboard and have every queen out of the reach of the other queens.

Jesus Castello

🔧 Code & Tools

Torque PostgreSQL: Support for More Complex PostgreSQL Concepts — Makes handling complex PostgreSQL types, such as enums and intervals, easier, as well as adding support for CTEs/auxiliary statements.

Carlos Silva

Seeing Red? Catch Performance Issues With SolarWinds AppOptics — Application & infrastructure monitoring, performance metrics, distributed tracing & code-level insights – fast.

SolarWinds AppOptics sponsor

um: Create and Maintain Your Own 'man' Pages — In what has to be one of the cooler ideas we’ve seen lately, um lets you, um, make man pages on whatever you do using Markdown.

Sinclair Target

A Huge Collection of Ruby One-Liners — Mostly file oriented stuff, like adding blank lines into files, adding line numbers into text files, counting lines, selective printing of certain lines..

Benoit Hamelin

Geocoder: A Complete Ruby Geocoding Solution — Version 1.5.0 came out just recently.

Alex Reisner

RuboCop: The Ruby Static Code Analyzer and Formatter — Perhaps you know about it already, but since we haven’t linked it in a while and releases are still coming thick and fast.. this is a handy tool to have in your Ruby arsenal.

RuboCop Headquarters