Ruby on Rails interview questions – part 2

Continuing the “RoR interview questions” sequel(part one here) , these are some general Rails concepts and technologies questions. Enjoy :).

Continue reading

Design Patterns: Ruby and Ruby on Rails

I am creating a new page on my blog, regarding Ruby and Ruby on Rails Design Patterns links.

Regarding Ruby Design patterns, there are (in my opinion) 2 major resources: The “Ruby Design Patterns” book of Russ Olsen and the Ruby Best Practices Blog. The Design page is about the rest of them :).

A first link: a slideshow regarding common design patterns (Observer, Decorator, Factory, Command) implemented both in Java and Ruby. Enjoy.

Windows live CD

When something goes wrong in Windows (I can’t boot, not even in safe mode), and I really really need that data, the first thing that crosses my mind is to use a Ubuntu Live CD. However, if Win was not shut down correctly, the ntfs partition can not be mounted.

Recovery disks are plenty on the internet. They all come bundled with all kinds of little programs to help you debug/recover your data. What if such a recovery disk would give you a standard win(explorer) inteface, with network access, disk utils, debugging tools? A trully Win Live CD.

Continue reading

Database UML tool for MySQL – automatic UML schema from DB

MySQL has a UML tool that also can reverse engineer the existing tables.
It is free (of course 🙂 ) and you can grab it from here: http://dev.mysql.com/workbench/

Ruby on Rails interview questions – Part one – Ruby

Ruby

This is the first article on the RoR interview questions. The purpose is not necessary to be used to ‘cheat’ on an interview, but to present some tricky things in Ruby and RoR.

Some (the majority) of the questions do not yet have answers. I will be filling the blanks.. soon 🙂

What is the duck typing?

The duck typing can be seen as one of the ruby implementation of polymorphism. The principle is: “If it walks like a duck and quacks like a duck, I would call it a duck.”. Below is an example of this principle (from http://www.javaworld.com/javaworld/jw-07-2006/jw-0717-ruby.html).

Continue reading