Should I use a framework for Ruby?

I've painted Ruby again, after two years without touching it, and am considering programming for the web with Ruby. However, I found that the Ruby on Rails framework is too big and bloated for my liking. This is usually a matter of preference, but in my case, I just want to be able to program on the web without worrying about structuring my code with a RoR-like structure.

When programming for the web with Ruby should I be using a framework? Is it recommended? If you could recommend a simple one, what would it be?

Thank.

+2


source to share


4 answers


Even if you are not using a framework or very light weight, you will notice that as your application grows, you will try to replicate existing features of Rails or other MVC frameworks to solve your problems. By the end of the day, you will still find yourself in a heavy mass, whichever path you choose.



-1


source


Simple and minimal structure for ruby sinatra



+6


source


IMO using a framework is a good idea (don't reinvent the wheel, etc.). Just find the one that suits you.

Besides Rails, I've heard about Merb , Camping , Sinatra, and Ramaze . For a quick comparison, you can read this post . For some other ideas, check out 10 alternative Ruby webframes .

EDIT . As noted in the comment, Merb and Rails is a merge and according to Merb creator Ezra Zygmuntowicz (see blog post ), Merb Rails and Rails Merb " , so I think Merb is not that light .

EDIT2 . As pointed out in another comment, the purpose of this merge is to make Rails malleable so that you don't have to use all Rails if you don't want to.

+2


source


Sinatra is a very good choice

+1


source







All Articles