RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Submit a post

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

Mastering Low Level Caching in Rails

Sometimes when your app is slow, it’s not your fault. Your code might be optimized to the teeth, but it won’t matter if it has to perform intrinsically slow tasks, like fetching data from an external API. In these situations, Rails’ low-level caching can be a life-saver. But caching is infamously tricky. It’s dangerous to go alone. In this article, Jonathan Chase guides us through the landscape of low-level caching. He covers the basics, but more importantly, digs into essential details of cache invalidation and points out common pitfalls.

Production Logs: How to Get the Most Out of Them

Logs are a fundamental part of diagnosing and fixing issues in your production system. I talk about 1) the importance of having a single command to immediately tail all relevant logs; 2) the need to ensure one line of log corresponds to one event (in order to play well with unix tools); 3) how to use the timeless awk command to parse your logs; 4) the value of being comprehensive in what you log, so that you can better diagnose issues and re-run failed requests after a bug has been fixed; 5) my system for recreating entire user session journeys by parsing my logs. Read more

Understanding Selection Sort with Ruby

If I asked you to sit down right now and sort a list of numbers, there’s a good chance that you’d intuitively rediscover the selection sort algorithm. It’s a simple approach that can have significant performance implications. That’s why it shows up so frequently in technical interviews - even though most developers never implement sorting from scratch. In this article, Julie Kent walks us through the selection sort algorithm, builds a working implementation in Ruby, and discusses its performance characteristics.

Loading older posts