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.

Full page caching in Rails with a memcached cluster and middleware

A little while ago I wrote a post on how to implement full page caching for a Rails app using Nginx and Redis; I have since replaced the single Redis instance with a memcached cluster and a middleware instead of Nginx to improve scalability and simplify things by removing some dependencies. Post: https://vitobotta.com/2020/10/04/full-page-caching-in-rails-part-2-memcached-and-middleware/

Currency Calculations in Ruby

You’re doing some currency calculations in your app. It seems to be working well. But after a while, strange discrepancies emerge. The books stop balancing. People get mad. All because the code treated currency like any other number. In this article, Julio Sampaio shows us which of Ruby’s number classes are unsuitable for currency, and walks us through better options. https://www.honeybadger.io/blog/ruby-currency/

Loading older posts