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.

Understanding Ruby Method Lookup

Ruby lets you express yourself like few other languages, with a minimum of boilerplate. It’s fantastic until it isn’t. Until one day when you think you’re calling the foo method you wrote last week, but instead, you end up calling a foo method that came with some gem from 2008. In these situations, knowing about Ruby’s method lookup rules will save your bacon. https://www.honeybadger.io/blog/ruby-method-lookup/

New tty-sparkline gem

The tty-sparkline gem renders sparkline charts in your terminal applications. You can control the display by configuring width, height, minimum, maximum and more. The charts can also be coloured based on data values that can be given upfront or streamed. Enjoy!

Automatically avoiding GraphQL N+1s

It’s hard to optimize queries when you don’t know in advance what the query will be. To avoid an explosion of database requests when a GraphQL query fetches nested data, it seems like you would need to analyze the query and create a plan for executing it efficiently. But that’s a lot of work, complex, and prone to mistakes. So how can you provide an API that’s not only flexible, but also performs well?

Rails Security Threats: Injections

One of the best things about Rails is that it protects your app from a wide variety of injection attacks with minimal development effort. But we’re never 100% safe. After all, Rails can’t protect us from our own bad decisions. We need to understand the threats so we know when we can lean on Rails and when we can’t. In this article, Diogo Souza introduces us to the OWASP Top 10 list of vulnerabilities and dives into injection vulnerabilities to show us how rails protects us against them and how we can protect ourselves. https://www.honeybadger.io/blog/rails-security-injections/

Loading older posts