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

RailsとYesodの比較

 RailsとYesodの比較

Fujimura Daisuke

April 21, 2012
Tweet

More Decks by Fujimura Daisuke

Other Decks in Programming

Transcript

  1. ࣗݾ঺հ (2) Rubyͱࢲ • ੲ͸ABAPerͩͬͨɻ·ͱ΋ͳݴޠ͕΍Γͨ͘ͳΓRubyʹస޲ • ͔Ε͜Ε3೥൒͘Β͍ϑϧλΠϜͰRailsͷ࢓ࣄΛͯ͠Δ • Railsίϛολ @a_matsuda

    ࢓ࣄͯ͠Rails಺෦ʹ͚ͬ͜͏ৄ͘͠ͳͬͨ • WEB+DB PRESSͷRails3ಛूΛͪΐͬͱख఻ͬͨ • Railsͷ࡞ऀɺDHHͱ൴ͷಇ͘37signalsͷϑΝϯ Sunday, April 22, 12
  2. ࣗݾ঺հ (3) Haskellͱࢲ • The Little SchemerͰؔ਺ϓϩάϥϛϯάΛ஌Δ • Seven Languages

    in Seven WeeksͰHaskellΛ஌Δ • ελʔτHaskellͰຊ֨తʹHaskell͕޷͖ʹͳΔ • ݱࡏɺձࣾͰYesodΛࢼݧతʹಋೖத Sunday, April 22, 12
  3. Yesodʹͳ͍΋ͷ(1) σϓϩΠπʔϧ • Railsʹ͸Capistranoͱ͍͏σϓϩΠࣗಈԽπʔϧ͕͋Γ·͢ɻ • $ cap deploy ͰσϓϩΠ •

    $ cap deploy:rollbackͰલճσϓϩΠͨ͠ίʔυʹϩʔϧόοΫ • ͦͷଞɺSSHͰೖͬͯσϓϩΠ࣌ʹߦ͏࡞ۀͷࣗಈԽҰൠ͕ՄೳͰ͢ɻ • https://github.com/capistrano/capistrano/wiki/2.x-Getting-Started Sunday, April 22, 12
  4. Yesodʹͳ͍΋ͷ(2) CRUDͷੜ੒ • Rails͸scaffoldͰCRUD͕Ͱ͖Δίʔυ͕ੜ੒͞Ε·͢ɻ • ͜ͷҐͷίʔυ͕ ੜ੒͞ΕΔ • RailsྲྀͷRESTfulͳϧʔςΟϯάʹԊͬͨίʔυ͕ੜ੒͞ΕΔͷͰɺͦΕΛݩ ʹ։ൃ͍ͯ͠Ε͹ɺࣗવͱRailsతͳΘ͔Γ΍͍͢ίʔυʹͳΓ·͢ɻ

    • ࣗવͱRails wayͰ։ൃ͢Δ͜ͱʹͳΔͷͰɺ೰·ͳ͍ͰࡁΉͱ͍͏ར఺΋ɻ • YesodͰ΋೰·ͣ։ൃΛਐΊΒΕΔఔ౓ʹscaffoldͰίʔυΛੜ੒ͯ͠΄͠ ͍ɻ Sunday, April 22, 12