This week's Ruby news, issue 269



Ruby Gaining A 'Safe Navigation Operator'

Matz has accepted a new element of syntax into Ruby. Instead of writing something like if u && u.profile && u.profile.avatar you’ll be able to write if u.?profile.?avatar .

Jamis Buck

The Dynamic Def

Interesting, clever, fun and crazy in equal measure. Jamis Buck looks at the potential for shenanigans with methods that are defined within other methods, from memoization to an entire text adventure.

Tobias Pfeiffer

The Not So Low Cost of Calling Dynamically Defined Methods

The effect of dynamically defined methods on performance from a real world project.

Imgix Sponsored

Responsive Images in Your Rails App in 30 Minutes or Less

With imgix, integrating responsive images into your app couldn't be easier. imgix resizes, crops, and processes images on demand and has a Rails gem for easy integration. Learn how to start delivering responsive images in under 30 minutes.

The JRuby Blog

Performance Improvements in the new JRuby

JRuby has been released and includes three key performance improvements on postfix rescues, define_method, and the JITing of blocks (not just methods).

Ruby News

The 2016 Fukuoka Ruby Award Competition

Matz and the Government of Fukuoka invite you to enter a Ruby competition with a top prize of 1 million yen. It’s open to anyone with a Ruby-focused project produced in the past 12 months.

Starr Horne

Understanding Ruby Refinements and Lexical Scope

“Like so many other great ideas, the original concept of refinements had to be tweaked in order to make it work with cold hard reality.”

Phrack Magazine

Attacking Rails Applications

While we can’t support using these techniques, it’s handy to see some of the potential security flaws in your apps.

Ken Collins

MS Open Source DataCamp Works Towards Ruby Improvements on Windows

“We got a lot of work done along with establishing some big milestones for those using Windows and/or SQL Server with Ruby.”


Full-stack engineers and support engineers, FreeAgent (Edinburgh or remote, UK only) We'd love to meet full-stack engineers and support engineers who would like to work on our award-winning online accounting product, which is made with love using Ruby, Rails, RSpec, React.js, Elasticsearch and MySQL. FreeAgent Full Stack Rails Engineer at Handshake (Palo Alto, CA) At Handshake we're helping students find and build their dream career. If you're interested in scaling to 10k+ RPM, building out our SOA, shipping new features fast, or just working with a great team, then apply! Handshake Lead Engineer at fast-growing YC startup (OnboardIQ) Hiring automation platform for hourly workers — companies like Munchery, Caviar, Shyp use us to vet 100% of their workforce. We raised $3.3m from top investors to become the “Linkedin for hourly workers”. Apply to be a core member! OnboardIQ

In brief

Jekyll 3.0 To Be Released at Live SF Event on October 26 news Meetup Benchmarking Ruby Refinements tutorial Starr Horne Defaulting to UUIDs In Rails tutorial Jon McCartie How to Measure Ruby App Performance with New Relic tutorial Nate Berkopec The Many Uses Of Ruby Case Statements tutorial Jesus Castello Building a Realtime Quiz with PubNub, Rails and React.js tutorial RealTimeWeekly Leveraging Rails' Custom Configuration tutorial Jerome Dalbert Delay API calls to Twilio with Rails, Active Job and Sidekiq tutorial Phil Nash Integrate bitcodin Video Cloud-Encoding Service with Ruby API Client tools Onboard easy with a Ruby API and encode your content with the same technology as Netflix and YouTube in a way that it plays everywhere with low startup delay and no buffering. Bitcodin Encoding Service Sponsored Why I'm Not Switching to Elixir From Ruby? video Andrzej Krzywda Refinery CMS 3.0.0 Released code news Now supports Rails 4.2. Refinery CMS SuperIMAP: Monitor Inboxes for Incoming Email, At Scale. code Rusty Klophaus Pundit: Your New Favorite Authorization Library code tutorial Lawson Kurtz Trix: A Rich Text Editor for Everyday Writing From Basecamp code Not Ruby but a CoffeeScript-based text editor for the Web from Basecamp (né 37signals). Demo here. Basecamp rails_db: Rails Database Viewer and SQL Query Runner code Inspect your Rails database via HTTP, see content of tables, export to CSV, EXPLAIN SQL and run SQL queries. Igor Kasyanchuk Fix bugs in production before your boss even notices. tools When people depend on your apps to work, you need Honeybadger. We give you complete visibility into production problems the moment they happen, and the tools you need to fix them. Try exception, uptime and performance monitoring for free. Sponsored