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   500

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 18 - 24.01

Matz' interview from Ruby Russia 2019, JIT compiler by Red Hat, Reverse Coverage tool guide and many other interesting things
24 January 2020   82

Greetings! I hope your week went great! Here's new Ruby news digest.

Learn about the modern Ruby serializers, how to speed up your Rails apps and how to migrate to strong parameters.

Articles

  • Yukihiro Matsumoto: "Ruby is designed for humans, not machines"

Creator of the Ruby language once again visited largest Russian Ruby event and his interview is finally available

  • Modern Ruby Serializers 

Check the history of various serializers, all the way to the introduction of SimpleAMS, a new serialization library, created by the author of the post and check how it compares to other options

  • MIR: A lightweight JIT compiler project

Red Hat's light JIT compiler development had begun

Guides

  • Rails is Fast: Optimize Your View Performance

Learn how to speed uo your Rails app

  • Reverse Coverage: Find which tests execute which lines of code

Guide on ReverseCoverage tool that can show which tests execute which lines of code

  • URI.escape is obsolete. Percent-encoding your query string

Rails and non-Rails approaches to properly encoding your query strings now, because the URI.escape is quite an old method

  • From Single drop-down to Multiple check-boxes

Learn how to move from a belongs_to/has_many to has_and_belongs_to_many association in a live Rails app.

  • Ruby 2.7 allows placing of comment lines between fluent dots

Tiny, but handy new feature may not know about

  • The Complete Guide to Migrate to Strong Parameters

Rails 4.0 had added strong parameters so, if you’re still using protected attributes anywhere though, you may benefit from this tutorial.

Video

  • How to use AWS Cloud9 for Ruby on Rails development