Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there any potential disadvantages in using a Ruby framework other than Rails?

I would like to use a lighter framework than Rails (Sinatra/Ramaze/Camping) but am concerned that by doing so I will not be able to use a lot of shared libraries that have been tailored to Rails in the form of plugins. Is this a major concern or are most of these plugins usable across different Ruby frameworks?

Are there any other potential disadvantages in using a Ruby framework other than Rails?

like image 316
Yen Avatar asked May 03 '09 08:05

Yen


2 Answers

You can still use gems in all of the frameworks you mentioned, so a ton of stuff is reusable. Want to swap in a new ORM, no problems. Want a fancy shmacy syntax highlighting, no problems. Rails has been making a huge push to move away from the old plugin model to use gems exclusively.

If one of the other frameworks fits your needs better use it. Keep in mind that when it comes to documentation and samples rails has more.

If I was learning Ruby and wanted to try out a web framework I would probably go with Rails not because its better, but because its got much better tooling and documentation.

like image 158
Sam Saffron Avatar answered Oct 01 '22 15:10

Sam Saffron


Most Ruby modules used by Rails (even ActiveRecord) can be used without Rails. But then you lose the extra benefit of integration provided by Rails. You may have to work extra hard to glue Ruby modules to the framework of your choice. Please also note that most of the documentation about Ruby modules used by Rails tells you only how to use that module with Rails.

like image 29
pts Avatar answered Oct 01 '22 15:10

pts