---
title: "Ruby 2.7.0 Preview 2 Released"
publication: "Ruby Weekly"
issue: 473
published_at: "2019-10-24"
canonical_url: "https://rubyweekly.com/issues/473"
---

This week's Ruby news.       

#473 — October 24, 2019 

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

Ruby Weekly  

[Ruby 2.7.0 Preview 2 Released](https://www.ruby-lang.org/en/news/2019/10/22/ruby-2-7-0-preview2-released/) — Progress towards a final Ruby 2.7 release on Christmas Day is going well! As a reminder, there are some big new bits in 2.7: ‘compaction’ GC (which defragments the memory space your programs are using), [pattern matching](https://speakerdeck.com/k_tsj/pattern-matching-new-feature-in-ruby-2-dot-7), irb enhancements (including multi-line editing support), and quite a bit more. It’s a perfect time to get playing. 

Yui Naruse   

[Fun with `each_with_object` and Other Enumerator Adventures](https://zverok.github.io/blog/2019-10-18-each_with_object.html) — This really _is_ fun and a demonstration that even if you’re an experienced Rubyist, there’s often another, cleaner way to achieve something. `each_with_index` is another one I find that’s worth using on occasion. 

Zverok   [![\](https://copm.s3.amazonaws.com/6a34039e.png)](https://dashboard.redisgreen.net/rubyweekly) 

[The Easiest Way to Run Redis](https://dashboard.redisgreen.net/rubyweekly) — Better monitoring, seamless scaling, durable and portable Redis hosting supporting all the latest features. 

RedisGreen sponsor    

[The Annual Fukuoka Ruby Award Competition is Back](https://www.ruby-lang.org/en/news/2019/10/16/fukuoka-ruby-award-2020/) — Every year, both Ruby’s creator, Matz, and a prefecture of Japan run a ‘Ruby competition’ with a prize of 1 million yen (about $9000) for Ruby-related projects built in the past year. Entries are due by December 11. 

Ruby Blog   

[Ruby's Lazy Enumerators](https://blog.saeloun.com/2019/10/23/ruby-lazy-enumerators.html) — In Ruby, you can make enumerators _lazy_ so that they are only run when the data they provide is actually needed. I did [a video about them](https://www.youtube.com/watch?v=Kg4aWWIsszw) several years ago if you want more depth. 

Alkesh Ghorpade   

[Rails 6.0 New Framework Defaults: What They Do and How to Safely Uncomment Them](https://medium.com/@dylansreile/rails-6-0-new-framework-defaults-what-they-do-and-how-to-safely-uncomment-them-586146f371e8) — When you run `rails app:update` on a Rails 5.2 app, it creates a file with 9 new default configuration settings. Here’s what they do and how you should use them. 

Dylan Reile  

💻 Jobs  

[Software Developer - Ruby](https://www.anynines.com/career/full-stack-developer-ruby?utm_source=newsletter&utm_medium=Ruby%20Weekly&utm_campaign=full-stack-engineer&utm_content=october) — Join our team and help to realize international cloud-native software projects based on Ruby on Rails. 

anynines   

[Senior Rails Engineer, Product (Remote)](https://fleetio.workable.com/jobs/1158538) — Stack: Ruby on Rails (5.2), Stimulus, Postgres & Heroku — We strive to keep our frameworks/libraries up to date. Perks: Remote team, competitive pay, meaningful company equity. 

Fleetio   

[Have You Tried Vettery?](https://www.vettery.com/tech?utm_source=newsletter&utm_medium=cooper-rubyweekly&utm_term=tech&utm_content=grouped&utm_campaign=ad-77583) — Vettery specializes in tech roles and is completely free for job seekers. Create a profile to get started. 

Vettery  

📘 Articles & Tutorials  

[Please Don't Write 'Clever' Code](https://www.oop.wtf/dont-write-clever-code) — _“I came across this code the other day, the author was quite proud of it but I would reject this PR in a heartbeat..”_ 

Jeremy Williams   

[Loading Additional Ruby Gems in Development](https://phili.pe/posts/loading-additional-ruby-gems-in-development/) — A way to temporarily bring other gems into your project without adding them to your primary Gemfile. 

Philipe Fatio   

[eBook: Best Practices for Optimizing Postgres Query Performance](https://pganalyze.com/ebooks/optimizing-postgres-query-performance?utm_source=RubyWeeklySecondary) — Learn how to get a 3x performance improvement on your Postgres database and 500x reduced data loaded from disk in this free pganalyze eBook. 

pganalyze sponsor   

[How Ruby Can Surprise You](https://tech.showmax.com/2019/10/how-ruby-can-surprise-you/) — Some difficult ‘interview questions’ that Showmax asks Ruby candidates. (These sorts of questions can be controversial as they merely test obscure language feature knowledge, so take the interview part of this with a pinch of salt.) 

Showmax Engineering   

[The One Who Created Elixir](https://www.welcometothejungle.co/en/articles/btc-elixir-jose-valim) — An interview with José Valim, a Rubyist that created Elixir, where he discusses the problems and the process that launched Elixir. 

Anne-Laure Civeyrac   

[Why to Use Active Support in Rails for Deprecation Messages](https://andycroll.com/ruby/use-a-deprecation-message/) — It’s essentially an ‘internal’ tool but you can use it too. 

Andy Croll   

[The Tools Rails 6 Introduced for Action Cable Testing.](https://blog.saeloun.com/2019/10/22/rails-6-adds-support-for-actioncable-testing.html) — ..and the bare basics of using them. 

Narendra Rajput   

[The Art of PostgreSQL: A Book to Learn How to Best Use SQL from Your Ruby App](https://theartofpostgresql.com) 

The Art of PostgreSQL sponsor  

🛠 Code and Tools  

[command_line: An Easier Way Execute Command Line Applications](https://github.com/DragonRuby/command_line) — Run a shell command, in a very Rubyish way, with access to standard in and out along with environment variables. 

DragonRuby   

[Lowkiq: Ordered Background Jobs Processing](https://github.com/bia-technologies/lowkiq) — A sort of Sidekiq-a-like for a specific use case. 

BIA Technologies, LLC   

[tapping_device: A Gem That Helps You Tracking Method Calls](https://github.com/st0012/tapping_device) — Built on top of `TracePoint`. 

Stan Lo   

[bundle-diff: Bundler Plugin for Showing Diffs of Bundled Gems Against Latest Versions](https://github.com/readysteady/bundle-diff) 

Tim Craft   

[Modulation 1.0: Explicit Dependency Management for Ruby](https://github.com/digital-fabric/modulation) 

Sharon Rosner     

🕰 **ICYMI** _(Some older stuff that's worth checking out...)_ 

- Jesus Castello explains [what Rails parameters are](https://www.rubyguides.com/2019/06/rails-params/) how best to use them.
- How to [create custom scaffold templates](https://web-crunch.com/how-to-create-custom-scaffold-templates-in-ruby-on-rails/) in Ruby on Rails.
- Ben Jackson runs through [working with SQL's 'time' value in Rails](https://engineering.ezcater.com/youre-not-in-the-zone).
- Here's [how to create temporary files](https://www.rubyguides.com/2019/05/ruby-tempfile/) in Ruby.
- Aaron Sumner looks at [using dual boot to upgrade](https://medium.com/oreilly-engineering/upgrading-rails-apps-with-dual-boot-e5c271e68a6e) your Rails apps.
- If you've a need for [a read-only Rails console, here's how to set one up](https://dev.to/molly_struve/how-to-setup-a-readonly-rails-console-1j1a).         

Curated by [Glenn Goodrich](https://twitter.com/ruprict) and [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
