Taking a look at Merb

I’ve been playing around with merb recently (version 0.4 was released last week). Merb is a small ruby MVC web framework. It concentrates on providing a small core of features and leaves it up to you to do the rest either through plugins or custom code. For example, it doesn’t provide a database ORM layer but you can can use ActiveRecord, DataMapper, or Sequel by selecting the appropriate plugin. The Merb code is small and easy to understand. One of the nice things about it is that you can dive in and understand what’s going on in a very short amount of time.

From initial impressions, what I like so far:

  • Small, easy to understand, clean code.
  • Mailers make a lot more sense than in Rails
  • Parts: the return of components
  • Agnostic with regard to database ORM and templating language
  • A more flexible routing system than rails
  • Better handling of file uploads than rails
  • ‘provides’ method for handling multiple content types is nice

Looking at the latest release it looks like merb has reached a state where it’s a viable framework for building your entire application (rumour has it that hulu.com is built on merb). Other uses that I’ve heard of are to combine merb with a rails application to speed it up e.g. using merb to handle file uploads or api calls, but using rails for the other parts of the application.

The downside to merb is that there is very little documentation at the moment. The following are some good resources to get started (Some of it is a little out of date as merb has had a lot of changes over recent months).

Overviews

Docs

Intro Tutorials

A series of articles on why merb is great

File uploads

Misc

Hey,

Thanks for taking a look at Merb. We've been working really hard since the 0.4 release to improve the speed of the framework, and we're now super-speedy (string rendering hovers at around 2000 requests per second and template simple rendering is around 1000rps).

So yeah: in addition to having a sane architecture (which leads to things like cleaner mailers), we're nice and speedy too :)

Enjoy Merb!

Aidan,

If u 'play' around some more ;let me know as I'm thinking of doing a new appl (mobile mini-appl) on Merb.

Lal

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
15 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.