---
title: "Ruby 2.6 Preview 2 Released"
publication: "Ruby Weekly"
issue: 402
published_at: "2018-06-07"
canonical_url: "https://rubyweekly.com/issues/402"
---

This week's Ruby news, issue 402       

#402 — June 7, 2018 

[Read on the Web](https://rubyweekly.com/issues/402)   

Ruby Weekly   

[Ruby 2.6 Preview 2 Released](https://www.ruby-lang.org/en/news/2018/05/31/ruby-2-6-0-preview2-released/) — Another step closer to Ruby 2.6 with this feature packed preview which includes a JIT compilation feature you can play with, the `RubyVM::AST` module for parsing Ruby code, the `then` alias for `yield_self`, [infinite range syntax](https://medium.com/square-corner-blog/rubys-new-infinite-range-syntax-0-97777cf06270), [new constant naming rules](https://medium.com/square-corner-blog/new-class-naming-rules-in-ruby-bb3b45150c37), the [exception keyword arguments](https://medium.com/square-corner-blog/rubys-new-exception-keyword-arguments-4d5bbb504d37), and more. 

Yui Naruse   

[Stripe is Building a Ruby Type Checker](https://medium.com/byteconf/stripe-is-building-a-ruby-typechecker-d6cd7cee6abf) — It’s called _Sorbet_ and Stripe presented it at RubyKaigi. It’s a serious project (9 month of work by 3 people) and there are plans to open source it _eventually_. 

Kristian Freeman   [![\](https://copm.s3.amazonaws.com/ea76d2f2.png)](https://semaphoreci.com/landers/boosters-rails?utm_source=rubyweekly&utm_medium=email&utm_campaign=boosters-rubyweekly-20180607) 

[Slow Rails Test Suite? Make It Run in 2 Minutes or Less](https://semaphoreci.com/landers/boosters-rails?utm_source=rubyweekly&utm_medium=email&utm_campaign=boosters-rubyweekly-20180607) — Automatically parallelize large Ruby test suites in one click. Deliver working code faster with Semaphore Boosters — no configuration required. 

Semaphore sponsor   

[http.rb is Great and Here's Why](https://twin.github.io/httprb-is-great/) — Janko details why [http.rb](https://github.com/httprb/http) (aka. `httpa`) is his favorite Ruby HTTP client library, making a very compelling argument. 

Janko Marohnić   

[An Analysis of Memory Bloat in Active Record 5.2](https://samsaffron.com/archive/2018/06/01/an-analysis-of-memory-bloat-in-active-record-5-2) — You may not be surprised to learn Active Record allocates more objects than it should, but _how many_ more objects is a bit shocking. Sam concludes that _“we need to carefully review Active Record internals and consider an implementation that allocates significantly less objects per row.”_ 

Sam Saffron   

▶[Use "barewords" to Embrace the True Power of Late-Binding](https://www.rubytapas.com/2018/06/05/barewords/) — In a newly-free (and very popular) episode of RubyTapas, learn how to use “barewords” for decoupling names from their sources of information. 

Avdi Grimm   

[An Initial Ruby 2.6 Preview 2 Benchmark](https://www.reddit.com/r/ruby/comments/8o5vb6/ruby_260preview2_benchmark_hint_its_good/) — Thibaut updated a Kiba ETL benchmark and ran it against 2.0, 2.5, and 2.6 and raw 2.6 gives a 17.7% improvement over 2.5. 

Thibaut Barrere   

[What's Been Happening at RubyKaigi 2018](https://blog.bigbinary.com/2018/05/31/rubykaigi-2018-day-one.html) — Ground reports from Sendai, Japan where Ruby’s home conference, RubyKaigi, has been taking place. I found [day 2](https://blog.bigbinary.com/2018/06/01/rubykaigi-2018-day-two.html) to be the highlight, particularly Koichi Sasada’s [talk on the Guild prototype.](http://www.atdot.net/~ko1/activities/2018_rubykaigi2018.pdf) 

Prathamesh Sonpatki   

[Some Favorite Ruby Community Resources](https://schwad.github.io/ruby/rails/community/resources/2018/05/03/my-favorite-ruby-community-resources.html) — Aww shucks… we made the list. 😊 

Nick Schwaderer  

💻 Jobs  

[Sr. Fullstack Engineer (Remote)](https://www.stickermule.com/careers) — Sticker Mule is looking for passionate developers to join our remote team. Come help us become the Internet’s best place to shop and work. 

Sticker Mule   

[Senior Software Engineer at Redbubble](https://grnh.se/i57d76ja1) — We provide a unique work environment for our full-stack devs; with pair programming. Our team values feedback & high code quality. 

Redbubble   

[Ruby Expert? Sign Up for Vettery](https://www.vettery.com/tech?utm_source=newsletter&utm_medium=cooper-rubyweekly&utm_term=tech&utm_content=grouped&utm_campaign=ad-58140) — Vettery matches top tech talent with fast-growing companies. Take a few minutes to join our platform. 

Vettery  

📘 Tutorials  

[Unassociated Records in Rails 5](https://campedersen.com/2018/05/15/unassociated/) — Ever want to get all the records that _don’t_ have any records for a given association? Rails 5 has made it a bit easier. 

Cam Pedersen   

[Examples of Some 'Hidden Jewels' in Ruby's Standard Library](http://katafrakt.me/2018/06/06/hidden-jewels-ruby-stdlib/) — Things like Abbrev, Zlib, and DRb. 

Paweł Świątkowski   

▶[How to Enable Direct Uploads with ActiveStorage](https://gorails.com/episodes/direct-uploads-with-rails-active-storage) 

Go Rails   

[Interesting Problems: Mondrian](http://www.zenspider.com/ruby/2018/06/interesting-problems-mondrian.html) — Using Ruby to recreate a work of art by Piet Mondrian. 

Ryan Davis   

[Coding Sidekiq Workers the Right Way](https://dev.to/jamby1100/coding-sidekiq-workers-the-right-way-4jij) — If you ever worked on an application that has Sidekiq workers then it’s likely you wish you had read this beforehand. 

Raphael Jambalos   

[Conditional Execution with a DSL in Ruby](https://railsguides.net/conditional-execution-with-dsl/) — A small DSL using success and failure callbacks makes for a cleaner interface. 

Andrey Koleshko   

[Ruby's Redo, Retry, and Next Keywords](https://blog.appsignal.com/2018/06/05/redo-retry-next.html) — Do you know the difference? We’ll give you a retry if not… 

AppSignal   

[Using Concurrent Ruby in a Rails App](https://blog.bigbinary.com/2018/06/05/using-concurrent-ruby-in-a-ruby-on-rails-application.html) — Learn how to not swallow exceptions when using Concurrent Ruby’s Futures and avoid hard-to-find bugs in multi-threaded code. 

Midhun Krishna   

[Rails 5.2 Adds allow_other_host Option to redirect_back Method](https://blog.bigbinary.com/2018/05/30/rails-5-2-adds-allow_other_host-option-to-redirect_back-method.html) — Avoid redirecting away from your site in certain situations, if you wish. 

BigBinary Blog   

[Write Better Code. Free 10-Day Pass to Sharpen Your Ruby Skills>>](http://go.pluralsight.com/C0043143) 

Pluralsight sponsor   

[Quick Tip: Make Big Numbers More Readable in Ruby](https://www.rubytapas.com/2018/05/29/make-big-numbers-readable-in-ruby/) 

Avdi Grimm  

🔧 Code & Tools  

[Rubex: A Ruby-like Language for Writing Ruby C Extensions](https://github.com/SciRuby/rubex) 

SciRuby   

[Track Ruby Performance in Real-Time](https://www.datadoghq.com/dg/apm/ruby-tracing/?utm_source=Advertisement&utm_medium=CooperPress&utm_campaign=CooperPress-RubyWeeklyS) — Get full-stack monitoring and alerting for Ruby apps and 200+ infrastructure integrations. [Try Datadog free](https://www.datadoghq.com/dg/apm/ruby-tracing/?utm_source=Advertisement&utm_medium=CooperPress&utm_campaign=CooperPress-RubyWeeklyS). 

Datadog sponsor   

[Asynchronize: Easily Make Multiple Methods Asynchronous](https://github.com/kennycoc/asynchronize) — Make methods asynchronous, using threads, with a single definition. 

Kenneth Cochran   

[DeepPluck: Pluck Attributes From Nested Associations](https://github.com/khiav223577/deep_pluck) — Now supports Rails 5.2. 

Rumble Huang         

Curated by [Cooperpress](https://cooperpress.com/) 

[Change your email address](https://rubyweekly.com/edit_subscription/*|UID|*) or[Stop getting this newsletter](https://rubyweekly.com/leave/*|UID|*) 

© Cooper Press Ltd · Fairfield Enterprise Centre, Louth, LN11 0LS, United Kingdom
