40 points · by jarrodtaylor · 14y ago · 16 comments
There are still a few plugins I'm writing now (DataMapper REST services, Stripe boilerplate, user accounts, URL based commenting, Linode stack script, etc.), but since the whole project is moving along nicely, even getting a decent amount of downloads, I thought I'd share.
It's my first gem and my first public project.
What's wrong with Padrino? Why did you make this? Why is this better?
I just wanted to use something a little more lightweight and unstructured. Without the plugins, Vesper is basically just a Sinatra app. You can organize it as MVC, or not. There's not much abstraction from adding code to a Sinatra app, and everything glues together nicely. Also, I really like developing plugins this way (put the code from an app into a git repo, and you're done).
I didn't understand it that way :).
Well, the thing is that I see your approach as equally "structured" as Padrino. If I want to use Vesper Plugins, I have to use Vesper. So your approach - in my eyes - is not "more unstructured", its more "a different kind of structure". As far as I can see it, you don't put a lot of weight into controller/routing-things, but have more emphasis on plugins, which Padrino mostly lacks.
But the fact that you didn't use Padrino and implemented your own structure on top of Sinatra shows that Padrino didn't fit your bill - so my curiosity just springs from the that fact. I always see this as a chance to find new needs and insprirations that Padrino can support and use. So, rant away :).
Aside from the asset-handling problem, bundler can easily support loading plugins from git(hub), as long as they are gems. Why didn't you just settle for that? Then, the only problem that remains is asset handling. There, I am quite in favor of not polluting the main project, but I also don't want to add a asset compilation toolchain just for that :/.
“Three measures of Gordon’s, one of vodka, half a measure of Kina Lillet. Shake it very well until it’s ice-cold, then add a large thin slice of lemon peel.”
Glad someone caught it though.
We do use the Sinatra plugin system only, though...
I admit that we are a bit behind in regards of apps-as-libraries, but I would prefer to handle that in standardized ways (using gems as distribution format and copying assets using an asset compiler instead of an installation routine).
Also, Padrino encourages not developing any plugins for it - raw Sinatra plugins are very much preferred, but are not compatible to your format.
If Padrino encourages not developing plugins, then yes, that would be a big difference.
By Sinatra plugins, I'm guessing you're talking about extensions (http://www.sinatrarb.com/extensions-wild.html)? If so, how are they not compatible with Vesper?