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.

Proposal for a better Hash#include?

In the interest of making life easier for other Ruby developers (and myself, of course) I’ve written down a proposal for a better Hash#include? that would allow us to easily compare hashes with other hash in order to see if they contain a sub-set of one another. [more inside]

{ a: true, b: false }.include?({ c: true}) is really just { a: true, b: false }…
I don’t it’s the wrong method name, as I explain in the piece. I think Hash#inc…

Gourmet Service Objects

I just wrote a blog post about Gourmet Service Object. Service Objects contains the business logic of your Rails app while keeping your controllers and models really thin. I’ve been using this pattern™ for about 3 years now, it helps me deliver clean, expressive and reusable code that’s easy to test.

Passing LISPy Code As data in Ruby

LISP is essentially boiled down into this for the Rubyist: you have lists, which can contain not just data, but code (functions), and to do that, sometimes a function can become a piece of data, be added to a list, queried as code again when the time calls for it. All in a lazy manner. Let me try to illustrate this for you in Ruby. [more inside]

My RubyMotion Process, Custom Forms, and Date Fields - Screencast

For the past 5 episodes, we’ve been building the Tasker application, and as of episode 20, it’s basically ready to go except for a few more tweaks. So in this episode, we’re going to clean things up by utilising MIMInputToolbar, TPKeyboardAvoiding, input views and input accessory views. This episode also looks a little into my process for splitting out views into reusable chunks. Many of you use Formotion, but this episode is going to give you a look at how easy it is to build custom forms just by utilising some simple pods and gems. [more inside]

Loading older posts