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 RBS, Ruby's new Type Annotation System

Ruby’s flexibility has always been both its greatest strength and its greatest weakness. You can write amazingly expressive programs. You can also slip and break them in amazingly expressive ways. RBS is a new type annotation system in Ruby 3 that seeks to keep ruby’s flexibility while protecting us from some of its dangers. In this article, Julio Sampaio walks us through RBS. He explains the impact it has on metaprogramming, and he shows us how we can use it to make our own apps more robust.

ShinyCMS 21.06 - The 'Happy Birthday, Fliss!' Edition

Today is my flatmate’s birthday! And it was either name this month’s release for that, or call it ‘the unemployed layabout release’ - I finished my previous job on Friday (after 5 years!), and haven’t quite sorted out the next job yet :-o Anyway, for ShinyCMS, this month was mostly about finishing up the View Components conversion in the admin area that I started last month - although route partials got a complete rewrite along the way. [more inside]

Automatic code review with Pronto and GitHub Actions

Using Ruby style and formatting tools on legacy application is tricky. You make a small change to an existing file, run the linter to check your work, and–dang. So many style pre-existing style violations! Such noisy ensuing git commits! Here’s how I integrate Pronto and GitHub Actions to check PRs for style and security issues.

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.

Loading older posts