Re:Today I accept that Rails is yesterday’s software
by bphogan on Monday May 09, 2016 @02:38PM
(#11662059)
You will indeed have to re-implement stuff Rails gives you. But more importantly, you will have to maintain it.
I maintain a large-ish Sinatra app that should've been done with Rails. Update cycles on the gems are a nightmare. It feels cobbled together. it's a "half baked homegrown version of Rails."
Someday I will just move the logic to a new Rails app and be done with it. It was a terrible idea.
* your experience may vary. :)
Re:Today I accept that Rails is yesterday’s software
by hkarthik on Monday May 09, 2016 @03:42PM
(#11662541)
Any sufficiently complicated Sinatra app contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of Rails.
Re:Today I accept that Rails is yesterday’s software
by elliotec on Monday May 09, 2016 @03:07PM
(#11662283)
My experience was exactly the same. Sinatra is for super tiny things. Rails is for most things.
Re:Today I accept that Rails is yesterday’s software
by tchow on Monday May 09, 2016 @03:30PM
(#11662461)
What is a large-ish app? Just for comparison's sake?
What makes it large-ish? The number of tables? The number of views?
What is the problem that large-ish apps give that Rails solves?
Genuine questions, I only do small projects and I honestly don't see a huge benefit to using rails, despite having used it before.
http://www.sinatrarb.com/
That said, you will have to re-implement machinery that rails gave you for free. If you're building a simple API, there will be obvious simplicity benefits. If you're trying to build a server-side rendered web application, you may long for some things that rails provided (of course, you can use libraries and create simpler patterns than rails provided).
Note that going the sinatra+libs (or any "micro" framework for that matter) route places a higher burden on the development team when it comes to documentation. If you implement a scheme for server side templating/rendering outside of what is provided, you will be in a world of pain in a relatively short time if you do not maintain good documentation.