Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Ruby; Exported

Ruby; Exported

Sapporo RubyKaigi 2012

Tatsuhiko Miyagawa

September 15, 2012
Tweet

More Decks by Tatsuhiko Miyagawa

Other Decks in Technology

Transcript

  1. About Me • Tatsuhiko Miyagawa • @miyagawa • San Francisco,

    CA • COOKPAD Inc. US Sunday, September 30, 12
  2. >  `date`   #  =>  "Sat  Sep  15  09:20:07  JST

     2012\n" >  %x{echo  oops  &&  exit  99} #  =>  "echo\n" >  $?.exitstatus #  =>  99 Sunday, September 30, 12
  3. $!  $@  $;  $,  $/  $\ $.  $_  $>  $<

     $$  $? $~  $=  $*  $&  $`  $' Sunday, September 30, 12
  4. "Perl's special variables are one of the biggest mistake I

    made in Ruby." Sunday, September 30, 12
  5. #  WSGI def  hello(environ,  start_response):    start_response(“200  OK”,  [  

         (‘Content-­‐Type’,  ‘text/plain’)    ])    return  [“Hello  World”] Sunday, September 30, 12
  6. #  Rack app  =  -­‐>(env)  {    return  [  

           200,          {  'Content-­‐Type'  =>  'text/plain'  },            [  'Hello  World'  ]    ] } Sunday, September 30, 12
  7. #  PSGI my  $app  =  sub  {    my  $env

     =  shift;    return  [          200,        [  'Content-­‐Type',  'text/plain'  ],        [  'Hello  World'  ]    ]; }; Sunday, September 30, 12
  8. CGI::Application Apache IIS lighttpd CGI.pm CGI fastcgi mod_perl Jifty Mason

    Catalyst Mason::CGIHandler Catalyst::Engine nginx HTTP::Server ::Simple Sunday, September 30, 12
  9. PSGI Plack::Middleware Catalyst CGI::App Jifty Dancer Apache lighttpd HTTP::Server::PSGI Perlbal

    mod_psgi Plack::Handler::* (CGI, FCGI, Apache) Starman Twiggy uWSGI Corona Feersum Mojolicious Sunday, September 30, 12
  10. We chose Rack (over WSGI) to copy from: It's newer

    and simpler. Sunday, September 30, 12
  11. “The nicest thing about being late is that there are

    plenty of things left to steal.” Sunday, September 30, 12
  12. Too many ::’s! Hard to type nor say. People tend

    to shorten the names. e.g. MXMARMR (MooseX::MetaAttribute::Role::Meta::Role) Sunday, September 30, 12
  13. Ruby • Yajl • Psych • unicorn • thin •

    puma • doorkeeper • kaminari • paperclip • resque • pry • factory_girl • capybara Sunday, September 30, 12
  14. Starman Starlet Twiggy Markapl Corona Pinto Xslate Carton Confusing for

    a bit, but it feels more "real". Sunday, September 30, 12