Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写一个中型 Web 应用程序,并计划使用backbone.js 使其基于 MV*/JS。我可以选择使用 Sinatra 或 Rails 进行基于 REST API/会话的身份验证。你会选择哪一个,为什么?
这个问题与 Backbone.js 关系不大,与应用程序的整体复杂性有很大关系。
Rails 提供了许多 Sinatra 没有的特性:
如果您不会从这些功能中受益,那么 Sinatra 是一个不错的选择,因为它的设计极简(不到 2,000 行代码)。