Top Banner
Sinatra 培培培培
36

Sinatra

May 07, 2015

Download

Technology

Daniel Lv
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Sinatra

Sinatra培训介绍

Page 2: Sinatra

什么是Sinatra

Page 3: Sinatra

谁是Sinatra

Page 4: Sinatra
Page 5: Sinatra

不认识

Page 6: Sinatra

怎么办

Page 7: Sinatra

STFW

Page 8: Sinatra

http://en.wikipedia.org/

wiki/Frank_Sinatra

Page 9: Sinatra

大段英文(T_T)

Page 10: Sinatra

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.

……

Page 11: Sinatra

大叔们的偶像

Page 12: Sinatra

WHO CARESFORGET IT.

Page 13: Sinatra

$ 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

Page 14: Sinatra

宅OTAKU

Page 15: Sinatra

史上最简单的Web App

Page 16: Sinatra

“ 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

Page 17: Sinatra

“ 不要把 Sinatra 看成是迷你版的 Rails 。要把它看成让 Ruby 代码响应 HTTP 请求的最快的一种方式。 它不仅能够用来写小型应用程序,而且也是一种把创意转化为原型的极佳的工具,也是一个把数据展示成 REST 风格的资源和 API 的中间件。

-- Aaron Quinthttp://www.quirkey.com

Page 18: Sinatra

优点

Page 19: Sinatra

1,500       v.s.           100,000

Page 20: Sinatra

Sinatra v.s Rails Metal

Page 21: Sinatra

生产环境

数据来源:吴江 @JavaEye

Page 22: Sinatra

敏捷

Page 23: Sinatra

讲 ? 师

Page 24: Sinatra

XXX 认证工程师YYY 认证工程师...∞年 Ruby 开发经验∞ 年 Java 开发经验∞ 年 Sinatra 开发经验

Page 25: Sinatra

讲师 !

Page 26: Sinatra

?

?

??

??

?

??

?

Page 27: Sinatra
Page 28: Sinatra
Page 29: Sinatra
Page 30: Sinatra

访问我们的博客http://cn.rubylearning.com/blog/

Page 31: Sinatra
Page 32: Sinatra

WELCOME!

ようこそ! 欢迎!

歡迎!

Page 33: Sinatra

为了节省大家的时间

Page 34: Sinatra

不接受任何提问

Page 35: Sinatra

谢谢

Page 36: Sinatra

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