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? [more inside]

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…

4 Ideas for Improving Testability in Web Apps

Here I share some of my programming tactics for achieving testability in Rails apps. The strategies include: Explanatory (not exploratory) dry runs, Backdoors, and Interface Hooks. [more inside]

@Jack, please fix your certificate.
sorry about that. I’m working on it now– latest update of Chrome stopped trusti…
fixed
Loading older posts