Re:Learning Ruby: Things I Like, Things I Miss from Python
by syspec on Tuesday February 16, 2021 @06:44PM
(#26160393)
I have not tried Sinatra, only heard good things about it I will check it out. Thanks!
Re:Learning Ruby: Things I Like, Things I Miss from Python
by vidarh on Wednesday February 17, 2021 @06:54AM
(#26165392)
Sinatra is great - it's small enough to read the whole thing and understand it. But it's also very minimalist, so you might also want to look at Padrino, which layers neatly on top of Sinatra, yet is still small and ORM agnostic.
It's also fairly painless to start with Sinatra, and layer in components from Padrino if/when you need them. E.g. you can simply register Padrino's helpers, mailer, routing, rendering or cache components in a Sinatra app if/when you need them. They're just straightforward Sinatra plugins.
I prefer to start with Sinatra + Sequel for web projects. Sometimes Padrino + Sequel. As your project grows, sure, you'll pull in many things similar to Rails, and probably pull in some projects that started out with Rails too, but it allows you to be much explicit about which dependencies you pull in, why, and to limited where it gets pulled in.