Sinatra 培培培培
Sinatra培训介绍
什么是Sinatra
谁是Sinatra
不认识
怎么办
STFW
http://en.wikipedia.org/
wiki/Frank_Sinatra
大段英文(T_T)
My WayAnd now, the end is near;
And so I face the final curtain.My friend, I’ll say it clear,
I’ll state my case, of which I’m certain.
I’ve lived a life that’s full.I’ve traveled each and every highway;
And more, much more than this,I did it my way.
Regrets, I’ve had a few;But then again, too few to mention.
I did what I had to doAnd saw it through without exemption.
I planned each charted course;Each careful step along the byway,
But more, much more than this,I did it my way.
Yes, there were times, I’m sure you knew
When I bit off more than I could chew.
But through it all, when there was doubt,
I ate it up and spit it out.I faced it all and I stood tall;
And did it my way.
I’ve loved, I’ve laughed and cried.I’ve had my fill; my share of losing.
And now, as tears subside,I find it all so amusing.
To think I did all that;And may I say - not in a shy way,
No, oh no not me,I did it my way.
……
大叔们的偶像
WHO CARESFORGET IT.
$ mate hi.rbrequire 'rubygems'require 'sinatra'get '/hi' do "Hello World!"end-----------------------------$ gem install sinatra$ ruby hi.rb== Sinatra has taken the stage ...>> Listening on 0.0.0.0:4567
宅OTAKU
史上最简单的Web App
“ Don’t think of Sinatra as 'tiny' Rails. Think about it as the fastest way to get your ruby code to respond to HTTP requests. It’s not just for small applications, its also great for prototyping ideas and as a middleware for APIs and exposing data as a RESTful resource.
-- Aaron Quinthttp://www.quirkey.com
“ 不要把 Sinatra 看成是迷你版的 Rails 。要把它看成让 Ruby 代码响应 HTTP 请求的最快的一种方式。 它不仅能够用来写小型应用程序,而且也是一种把创意转化为原型的极佳的工具,也是一个把数据展示成 REST 风格的资源和 API 的中间件。
-- Aaron Quinthttp://www.quirkey.com
优点
1,500 v.s. 100,000
Sinatra v.s Rails Metal
生产环境
数据来源:吴江 @JavaEye
敏捷
讲 ? 师
XXX 认证工程师YYY 认证工程师...∞年 Ruby 开发经验∞ 年 Java 开发经验∞ 年 Sinatra 开发经验
讲师 !
?
?
??
??
?
??
?
访问我们的博客http://cn.rubylearning.com/blog/
WELCOME!
ようこそ! 欢迎!
歡迎!
为了节省大家的时间
不接受任何提问
谢谢
Referencehttp://www.yeeyan.com/articles/view/andyhu1007/18946
http://www.sinatrarb.com/http://ruby.about.com/od/sinatra/a/sinatra1.htmhttp://en.wikipedia.org/wiki/Frank_Sinatrahttp://www.slideshare.net/jiang.wu/ruby-off-railshttp://www.javaeye.com/topic/349203