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.

Use DidYouMean in your own code

DidYouMean, bundled with recent Ruby versions, does pretty error messages with suggestions, like undefined method 'cover' for 1..10:Range. Did you mean? cover?. If you want to implement the same functionality for your own entities (some tags, lexemes or metaprogrammed things), you will probably find this small wrapper gem useful.

Forget conditionals, use the Rail way

Most of the time, with growing uncertainty, code goes rightwards. Nested conditions are difficult to read and error prone. The real intent is to check success/failure path, so why not make it clear?

expensive and slow. cost of using exceptions for control flow compared…
Robert you need to benchmark the difference between an exception and a conditio…
To be clear I like that the author has identified all his nesting is an issue a…
That’s Railway pattern - in Trailblazer since version 2 :-) http://trailblaz…

7 Successful Stories From Ruby On Rails Web Development

Ruby is a programming language while Rails is the web application framework that implements it. Developed by Yukihiro Matsumoto, Ruby on Rails has found utility in some of the coolest and widely known projects worldwide. Here are few that catch the limelight. 7 Successful Stories From Ruby On Rails Web Development

I don’t get this “Ruby is a programming language while Rails is the web applica…

London Ruby Unconference 2017 on Oct 07

If you are in London, and love Ruby, come join us in this year’s edition! An ‘unconference’ is a gathering which aims to provide an open and creative conversation on a series of topics. It is unlike a normal conference in that there is no pre-planned agenda, no central organisation, no fixed speakers, and no eye-watering price tag! Details and Tickets here.

A Puzzle About Ruby Constants

While doing some refactoring, I stumbled on a case where Ruby constants didn’t behave as I expected. To figure out what was going on, I ended up drilling down into YARV instructions. It turns out that Ruby constant resolution is actually very complex! BLOG POST HERE

Loading older posts