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.

Everything You Ever Wanted To Know About View Caching In Rails

If you’ve ever built a UI in Rails, you’ve probably noticed that views tend to get slower over time. That’s because adding features to a UI often means adding DB queries to the view. They add up. Fortunately, Rails provides us with an easy-to-apply band-aid in the form of view caching. In this article, Jonathan Miles introduces us to view caching, discusses when it’s appropriate to use, and covers common pitfalls to watch out for. https://www.honeybadger.io/blog/ruby-rails-view-caching/

hubba (github analytics) gem update - adds traffic (page views / referrers) reports

Hello, I have updated the hubba gem - a little github api helper for (auto-)generating statistics reports. New traffic reports include page views and clones, top/popular referrers, top/popular pages plus a catalog page with description and topics. For live (real-world) examples, see TRAFFIC.md, PAGES.md, REFERRERS.md, CATALOG.md. Cheers. Prost. PS: Note - the traffic reports require push access for data gathering for your github (personal) access token.

Glimmer DSL for Opal v0.3.0 Custom Shell Support

Glimmer DSL for Opal v0.3.0 is out with Custom Widget and Custom Shell support, allowing developers to webify their pure Ruby desktop apps with Opal on Rails without changing a line of code. New custom shell support enables launching windows (opening browser tabs) from a GUI just like opening windows in a desktop app. Routing is handled automatically so that developers can keep focusing on business GUI details. https://andymaleh.blogspot.com/2020/10/glimmer-dsl-for-opal-v030-custom-shell.html

Polyphony has a new io_uring backend!

I am pleased to announce the release of Polyphony version 0.46.0, which includes a full-blown io_uring backend. The io_uring backend uses a relatively recent new I/O API in Linux that is the future of I/O processing. The new backend provides more than double the performance of the libev backend, achieving over 120K requests/second using a basic “Hello world” HTTP server. [more inside]

Thank you, Sharon! Really appreciate your work on Polyphony

Test-Commit-Revert: A Useful Workflow for Testing Legacy Code in Ruby

When you inherit a legacy app with no tests, your first step should be to add them. But that can be a huge task! How do you even start? In this article, José will introduce us to a testing workflow called test-commit-revert (TCR) that is particularly useful for adding tests to legacy systems. He’ll show us practical examples and help us set up our tooling for minimal friction. https://www.honeybadger.io/blog/ruby-tcr-test-commit-revert/

Loading older posts