Ruby/RoR News Digest 2-8.11

Rails 6.0.1 release, active storage changes in Rails 6, persisted queries in GraphQL and many other interesting things
08 November 2019   230

Greetings! I hope your week went great! Here's new "gemmy" programming news digest.

Get familiar with programms, that write themself, how Ruby uses memory exactly, the hide cost of Ruby 2.7 dot-colon method reference usage and many more interesting things.

Guides

  • Persisted queries in GraphQL:Slim down Apollo requests to your Ruby application

Persisted queries are designed for reducing request size by only sending a query ID that is stored on the backend, which is then retrieved and executed; guide covers this topic fully.

  • Writing a program that writes itself

Tutorial about quines in Ruby

Articles

  • How Ruby Really Uses Memory: On the Web and Beyond

New articel by Schneems, totally must-read about the Ruby memory allocation algorithm and what it does when you add thread

  • The hidden cost of the Ruby 2.7 dot-colon method reference usage

Another fee you will be paying for not so "free" Ruby's syntax sugar

  • Rails 6 - Active Storage changes

Detailed look on the changes that was made to one of the main Ruby on Rails gems in version 6

  • Use GitHub Actions for Rails CI with Postgres

This guide gives you the look on the beta version of GitHub's Actions which gives you an opportunaity to run arbitrary workflows, including tests, after certain things happen within your git repository.

Updates

  • Prism

Allows you to build frontend web apps with Ruby and WebAssembly

  • Rails 6.0.1 released

Some bugs are fixed; get more details by clicking on the link above.

  • Tabulo

A terminal table generator for Ruby that may be used, for example, in a live coding session.

Video

  • Episode #214 - Plugging in AnyCable

Ruby/RoR News Digest 9-15.11

The delegation challenge of Ruby 2.7, feedback about writing own Ruby book, testing at scale at Stripe podcast and even more
15 November 2019   156

Greetings! I hope your week went great! Here's new "gemmy" programming news digest.

Learn how to handle attachmens in Action Text in Rails 6, download large Heroku Postgres backup, check the update of Tomo and more.

Guides

  • Handling Attachments in Action Text in Rails 6 

Second part of the Action Text tutorial that focuses on blocking files by type, how files are rendered, and previewing PDFs.

  • Downloading Large Heroku Postgres Backups

Learn how to download big Heroke postgres backups in a proper and convenient way.

Articles

  • The Delegation Challenge of Ruby 2.7 

This is a somewhat odd situation where a change to arguments changes delegation so things are handled differently in Ruby 2.6, 2.7, and 3.0. It’s a tough nut to crack and a great example of language design related edge cases.

  • Feedback About Writing A Technical Ruby Book 

Author’s experience writing a book about programming.

Updates

  • Tomo

A "friendly" command-line tool for deploying Rails apps

  • Strings::Case

This solution allows you to convert strings between different cases

  • Reek

It will detect your code's smell, whatever that means

  • Invisible Captcha

Spam protector for Rails apps

Video

  • Testing Active Job in Ruby on Rails

Podcast

  • Discussing Testing at Scale at Stripe

In 48 minute interview, Nelson Elhage who spent 7 years at Stripe spearheading developer productivity initiatives, shares what he learnt and digs into why Stripe created the Sorbet Ruby type checker.