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

10 Years: LL, you and me

10 Years: LL, you and me

Tatsuhiko Miyagawa

August 04, 2012
Tweet

More Decks by Tatsuhiko Miyagawa

Other Decks in Technology

Transcript

  1. 10 years: LL, you and me Tatsuhiko Miyagawa @miyagawa Aug

    4, 2012 LL Decade at Ginza Blossom, Tokyo Sunday, September 30, 12
  2. About • Tatsuhiko Miyagawa • @miyagawa • github.com/miyagawa • cpan:

    MIYAGAWA • San Francisco, CA Sunday, September 30, 12
  3. tokuhirom created a repo while I was asleep. Without my

    permission :) Sunday, September 30, 12
  4. #  WSGI def  hello(environ,  start_response):    start_response(“200  OK”,  [  

         (‘Content-­‐Type’,  ‘text/plain’)    ])    return  [“Hello  World”] Sunday, September 30, 12
  5. #  Rack class  Hello    def  call(env)      

     return  [              200,              {  “Content-­‐Type”  =>  ”text/plain”  },                [“Hello  World”]        ]    end end Sunday, September 30, 12
  6. #  PSGI my  $app  =  sub  {      

     my  $env  =  shift;        return  [                  200,                [  ‘Content-­‐Type’,  ‘text/plain’  ],                [  ‘Hello  World’  ],        ]; }; Sunday, September 30, 12
  7. 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
  8. 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
  9. • Copied the templates • Looked at how Werkzeug catches

    exceptions with stracktrace • Ported to use Eval::WithLexicals and Devel::StackTrace Plack-Middleware-InteractiveDebugger Sunday, September 30, 12
  10. Lessons • Don't just borrow the idea. Copy it (PSGI)

    • Copy the ecosystem too (Plack) • Be aware of the difference in notations when copying it :) 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. When in doubt, we can always look at what WSGI

    or Rack do. Sunday, September 30, 12
  13. “There’re only two hard things in Computer Science: cache invalidation

    and naming things.” -Phil Karlton Sunday, September 30, 12
  14. “There’re only two hard things in Computer Science: cache invalidation,

    naming things and off-by-one errors.” -Phil Karlton Sunday, September 30, 12
  15. 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
  16. Ruby • Yajl • Psych • unicorn • thin •

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

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