{ Parking for coders only }

Creating records via a has_many :through association

Today I found a really odd situation while working on a Rails 4 project. I created a couple of data models having a many-to-many association with has_many :through in both directions. A bit of code will help clearing up things:

more...

active_importer

We all love using YAML or JSON for serializing and storing data that our applications will consume. But the truth is we will often need our apps to consume data coming in different formats.

more...

Continuum

It’s been a while since I last posted here, and the reason is Continuum. The last few weeks have been weeks of deep change in my life. I left my country, my family, and my job, to come work with a small innovative team of software developers in the south of the world.

more...

One search engine to rule them all

DuckDuckGo has captured my attention for a few weeks now, and it’s been a great experience so far. It’s not just about switching search engines, ditching Google completely, or anything like that. It’s about control.

more...

My quest for the right $EDITOR

Five years ago I was already into Ruby on Rails, and I was envy of Mac users because of TextMate. I watched every new Railscasts episode each week, religiously, and I envied Ryan Bates using that awesome editor that made things so easy. I mostly used Linux back then, and there were alternatives like gedit, but they were not the same.

more...

Objective-C

Objective-C is a relatively unknown programming language. Only recently, with the iPhone apps programming boom, it has managed to become more popular. The name itself induces some curiosity, subtly suggesting that there’s some Object Oriented Programming involved, with some C here and there. A clever pun, intended.

more...

Easier use of the vim-surround plugin

Tim Pope’s vim-surround plugin is awesome, but I sometimes find myself in a situation where I want to make it easier and more intuitive to use, perhaps inspired on how the equivalent functionality works in TextMate and Sublime out-of-the-box.

more...

Hello World!

I’m starting this new blog as an experiment on using jekyll for blogging from the terminal. It is a natural next step after my workflow has gravitated more and more towards the command line and Vim in the last few months.

more...