Friendly: a NoSQL ORM into MySQL
NoSQL solutions are gaining everyday more consensus (yes, and pure “hype” too..). Sometimes they represent a good solution for some application domain (or simply “working condition”) where a defined object model can’t be obtained or is not desirable.
Those are perfect cases for a NoSQL solution, but the next question is: another “stuff” to install, configure, manage, update, and so on?
With Friendly we can have a NoSQL solution (= schema free) deployed in well know (and maybe beloved) MySQL database.
First things first, install it:
$ sudo gem install friendly
Successfully installed sequel-3.8.0
Successfully installed will_paginate-2.3.11
Successfully installed friendly-0.4.3
3 gems installed
Let’s create a database in MySQL:
$ echo "create database friendly_db" | mysql -u root
Now simply look and this straightforward gist and see how simple and intutive it is:
Great, isn’t it? Now consider also the fact that it can run perfectly with Memcached. :)
Twitter on 15.01.2010
New blog post on distributed Ruby with MagLev VM: http://bit.ly/4KMTrY - definitely a project to watch in 2010! (via @igrigorik).
It’s an incredible strong perfomarce environment for Ruby… surely worth watching for this year.
Alex Payne, in Don't Be A Hero
Alex Payne, in Don’t Be A Hero:
If someone is working at four in the morning, something is deeply wrong. Figure out what’s broken and delegate the work out evenly across your team such that it doesn’t happen again. Don’t pat your hero on the back for “pulling another late-nighter”.
This is one reason why, when looking for a job a few years ago, I didn’t consider working for any company whose job description implied (or stated) that I’d be expected to work extremely long hours regularly and not have a family life. Such companies are either run by “heroes” or expect to hire one. (Usually for the same salary as a nine-to-fiver and with a trivial equity stake.)
I resent the commonly held belief that this is an unavoidable part of “startup culture”. (It’s completely avoidable.) Such beliefs encourage workaholism, especially among young people, and cause poor-quality products, employee burnout, and high turnover.
I don’t want to be a part of any company that’s so poorly managed, or simply so cheap, that employees are expected to forego a healthy lifestyle. No job is worth that.

