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.

RubyConf 2015: The Hows and Whys of Immutable Data Structures

Immutable data structures give us peace of mind, but using them is challenging. How do you build an immutable list? Why would you use one? Join us and learn what makes a data structure “persistent”, the holy grail combination of immutability and performance. We’ll see not just how to use them, but also why they’re a good idea and how they work. Most importantly, we’ll see how these data structures are useful in real-life programming scenarios. Master this cornerstone of functional programming and learn the answer to the ultimate riddle: how do you change a list while leaving it unchanged? [more inside]

Time difference in Ruby on Rails

How many minutes has passed since the beginning of this job? How many hours do we have to wait? If you’ve asked these kind of questions while programming on Ruby on Rails you’ll probably get no answer on Rails docs. But there is a solution. [more inside]

How to compare version strings in Ruby

Sometimes you need to support different versions of an API inside your ruby code. And, sometime, you will need to compare version strings in order to make a feature available. But how do we compare if a version is greater than another one? It’s simple: use Gem::Version! [more inside]

Breaking the News: Wisper + Pub-Sub

As Rubyists, we often find ourselves trying to figure out the best way to both abstract out logic into self-contained components, as well as how to effectively send messages between objects. The publish-subscribe pattern is one solution to this problem, though it is far less common in Rails applications. This blog post looks at how to implement pub-sub in Ruby by using the wisper gem

Loading older posts