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.

Using [array].include? often, did you consider Set?

Writing [array].include? often? Do you know that in many cases Set[array].include? might be faster because it offers a constant look up time when array look up is linear - grows with the size of the array. Check out a simple benchmark results. And compare it to Java (if you’re interested)!

Good, but I want to note that writing code that way is not good at all. The thi…

Why I Stay Behind The Version Rat Race

What are the risks associated with being on the latest gem versions? Should you allow auto-updates to dictate when your software versions get bumped? Read more

But, obviously, security updates are an exception. I think this needs to be…
hey Ivan–only seeing your feedback now sorry. You’re absolutely 100% right abou…

Specification Pattern

Implementation of Specification pattern described in “Domain-Driven Design: Tackling Complexity in the Heart of Software” by Eric Evans. Flexible way to combine and chain business rules by using boolean logic. Read More.

Select or Create Field with Selectize.js

Sometimes you need users to create associated records while filling out a form but it’s hard to do with the built-in Rails forms. Selectize.js gives us a great option for building a select or create field all-in-one to choose associated records or create new ones when filling out a form. https://gorails.com/episodes/select-or-create-with-selectize-js

Loading older posts