News for hackers. Stuff that matters.
Re:Rails is omakase by VeejayRampay on Thursday December 27, 2012 @02:49PM (#4974719)
Rails is "heavy" because it does a lot of things that you'll end up having to recode by hand with any other "lighter" solution.
Re:Rails is omakase by dragonwriter on Friday December 28, 2012 @01:28PM (#4978802)
Not so much recode by hand as actively choose components that provide the functionality. Sure, you might have to recode a bit of the between-components wiring if the separate components you choose don't natively support each other, but its hardly as if you'll generally have to recode the major components themselves.

Sure, Sinatra doesn't come with ActiveRecord like Rails does, but you can use ActiveRecord on its own with Sinatra -- or use Sequel or DataMapper or whatever other ORM [or non-ORM persistence solution] you prefer -- with Sinatra, you don't have to code your own by hand. Similarly with other components.

Re:Rails is omakase by coenhyde on Thursday December 27, 2012 @04:32PM (#4975146)
Sure. If you're building a traditional web app. The sort of web app Rails is good at. But if you are constructing an api, you can use ligher and alternate technologies that will get the job done faster and better.
Re:Rails is omakase by uxp on Thursday December 27, 2012 @05:37PM (#4975431)
Like what? Rails is great for APIs, because APIs, especially RESTful and Hypermedia APIs, can literally be a standard webapp with JSON views instead of HTML.

I've never built a SOAP API in Ruby, so maybe Rails wouldn't work with that very well. XML-RPC might also be a little tough, but I honestly can't think of any significant difference between a "traditional web app" and a RESTful API. They're a perfect example of code reuse in MVC (or Model2 if you want to be pedantic).

Re:Rails is omakase by hosh on Friday December 28, 2012 @01:42PM (#4978884)
Re:Rails is omakase by VeejayRampay on Thursday December 27, 2012 @06:41PM (#4975679)
People keep repeating that like it's some commercial gimmick, but what does it really mean? How is Rails or rails-api not suited for APIs? What's lightweight? What's easy?

And more particularly since you seem to know about this, what other option would you favor?

Re:Rails is omakase by coenhyde on Thursday December 27, 2012 @09:04PM (#4976087)
Well Sinatra seems pretty nice. I'm a node.js developer so I use Restify and Express. But I practically build api's exclusively. I've spent a lot of time cleaning up after terrible Rails applications. Replacing bits that are too slow or difficult to maintain with smaller more nimble node applications.
Re:Rails is omakase by grabastic on Friday December 28, 2012 @10:48AM (#4978080)
"what does it really mean?"

It means he's a node troll. They take a shot at the dominant frameworks any chance they can get. Node trolls have reached the level of obnoxious arrogance that early Rails developers were once mocked for. Don't feed the trolls.

Re:Rails is omakase by coenhyde on Friday December 28, 2012 @08:00PM (#4980482)
It's about using the right tool for the job. Most developers never seem to understand that. Everyone seems to want the same magic bullet for everything.