Fixing a Footgun in ActiveRecord::Core#inspect — Objects have an inspect method that returns a string representation that can be useful in development and debugging. ActiveRecord objects do too, with some added enhancements to highlight what you need to know. It turns out, however, inadvertently calling on ActiveRecord::Core#inspect in production can cause real performance issues.. Andrew Novoselac |
Explaining Thruster, 37signals' HTTP/2 Proxy to Speed Up Your App— Available as a gem, though written in Go, Thruster is an HTTP/2 proxy server that addresses some of Puma’s shortfalls around serving assets. Thruster is one of many options, which Bruno explains in this good-enough-to-have-been-a-blog-post discussion. Breno Gazzola |
Ruby Might Be Faster Than You Think— The “Ruby is Slow” mantra is so often chanted that many probably accept it without thought, but here’s a case where some minor tweaks result in Ruby being 5X faster than the compared language. (Say it with me “Ruby is fast enough.”) John Hawthorn |
JRuby 9.4.7.0 Released— The long standing, reliable, and performant JVM-based Ruby implementation takes another gentle step forward with dependency updates and several fixed edge cases. The JRuby Team |
📄 Articles, Tutorials & Videos |
Backup Strategies for SQLite in Production— Not Ruby specific, but a fantastic primer to a topic that may begin to affect more Rubyists as the idea of running Rails apps on SQLite in production continues to take off. Mohammad A. Ali |
Adding Your Ruby Gems to AWS CodeArtifact— Amazon Web Services is showing more love to Ruby by enabling the use of CodeArtfact as a private gem server. You can also set it up to pull gems from upstream sources (like rubygems․org) automatically so you can have your custom and public gems all on one server. Sébastien Stormacq (Amazon) |
XRB: Think ERB But Even More HTML-y— XRB is a simple template engine for Ruby that boasts being 10-20x faster than ERB (not to be confused with Erubi/Erubis, though) with a simpler syntax that’s closer to plain HTML (and which also supports Ruby style #{} interpolation). Samuel Williams et al. |
Don't Risk Out of Date Ruby & Rails Versions— Get a free security assessment and discuss how our incremental upgrade service — CodeCare Shield — can improve the speed, security and stability of your app. reinteractive/CodeCare® Shield sponsor |
|