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

Play と Scala のこれまでとこれから

Play と Scala のこれまでとこれから

Play meetup (2014/05/24) での挨拶的なスライドです。

Toshiyuki Takahashi

May 24, 2014
Tweet

Transcript

  1. Play ͱ Scala ͷ͜Ε·Ͱͱ͜Ε͔Β

    View full-size slide

  2. #rpscala ελʔτ
    • Scala ͸ࠓΑΓͣͬͱϚΠφʔͩͬͨ
    • ͳΜ͔ Twitter ͕࢖ͬͯΔΒ͍͠
    • ͳΜ͔ 4sq ͕
    • ͳΜ͔ LinkedIn ͕

    View full-size slide

  3. Lift > Play
    • Play ͳʹͦΕͬͯײͩͬͨ͡
    • Scala ͱݴ͑͹ Lift

    View full-size slide

  4. Lift
    • View-First
    • MVC ʹ๞͖࢝Ί͍ͯͨ͜ΖɺະདྷΛײ͡Δ

    View full-size slide

  5. Lift
    • API ͕೉͍͠
    • ΍ͬͺࣗ෼ʹ͸ Scala ͸ແཧͳͷ͔ɺͱ୭΋
    ͕ࢥ͏
    • ࣮ࡍ͸ Lift ͷ API ͕ಠಛͳ͚ͩ

    View full-size slide

  6. Lift
    • υΩϡϝϯτ͕଍Γͳ͍ͷͰٽ͖ͳ͕Βιʔ
    εΛಡΉ
    • Θ͔Βͳ͍…
    • ࣮ࡍ͸ Lift ͷιʔε͕(ry

    View full-size slide

  7. (#ůŖ_Ŗ)ů ~ᵲᴸᵲ

    View full-size slide

  8. Wicket
    • Java ͷ Web ϑϨʔϜϫʔΫΛ Scala Ͱ࢖͏
    • Wicket ͕ൺֱతਓؾͩͬͨؾ͕͢Δ
    • ͦͷ͏ͪ Scala Ͱศརͳͷ͕ग़Δͱ͍͍ͳ͋

    View full-size slide

  9. ࠞಱ
    • ͦ΋ͦ΋ৄ͍͠ਓ͕͍ͳ͍
    • sbt, dispatch Λݟͯࠔ࿭
    • ษڧձΛͯ͠΋ٙ໰͕શ͘ղܾ͠ͳ͍
    • ໱ʑͱͯ͠ؼΔ

    View full-size slide

  10. Scala ౦๺

    View full-size slide

  11. Scala ౦๺
    • ຖि໦༵഑৴
    • ਒ࡂͰ։࠵͞Εͳ͘ͳΔ·Ͱ113ճ։࠵

    View full-size slide

  12. yabe
    • Play ͷαϯϓϧΞϓϦͷ͋Ε
    • Scala Ͱ΋ී௨ʹ MVC ͢Ε͹Α͔ͬͨͷ͔ʂ
    • Ͱ΋·ͩ ʮJava ͷϑϨʔϜϫʔΫʯײ

    View full-size slide

  13. ΍ͬͺΓ Play ͸·ͩ·ͩͩΑͶʙ

    View full-size slide

  14. –Goro Inogashira
    “΄ʔ͍͍͡Όͳ͍͔ɹ͜͏͍͏ͷͰ͍͍
    ΜͩΑ͜͏͍͏ͷͰ”

    View full-size slide

  15. ͜Ε͸͍͚Δʂ
    • ͍͚Δؾ͕͢Δʂ
    • Scalate ͋Δ͠ʂ
    • ORM ͸…·͋ͳΜͱ͔ͳΔΑʂ

    View full-size slide

  16. Play! Framework 2.0

    View full-size slide

  17. Play 2.0
    • ͍ͭʹ Scala ʹ΋ϑϧελοΫ MVC ϑϨʔϜ
    ϫʔΫ͕ !

    View full-size slide

  18. 1MBZग़ͨΜͰ͔͢ʂ
    ΋͏-JGU࢖Θͳͯ͘ྑ͍ΜͰ͔͢ʂ

    View full-size slide

  19. όάͬͯΔ͡Όͳ͍Ͱ͔͢ʂ

    View full-size slide

  20. ΊͬͪΌόάͬͯͨ
    • Play 1.x ܥϢʔβʔൃڰ

    View full-size slide

  21. Play ͸ pull req Λڭ͑ͯ͘Εͨ
    • (” ՞ਊ ՞)”ແཧ໼ཧྑ͍࿩ʹͯ͠΍Δ
    • ਓபͬͯ͜͏͍͏͜ͱͩͬͨͷ͔ɻ
    • ͋ɺόάοͯΔɻͳΔ΄ͲͳΔ΄Ͳʙɻ
    • ࠓ೔͸όά౿ΜͰͳ͍ͳɻௐࢠग़ͳ͍ͳʙɻ

    View full-size slide

  22. ͦΕͰ΋ Play Λ࢖ͬͨ
    • ϞμϯͳWeb։ൃΛ໨ࢦ͍ͯͨ͠
    • less ͱ͔ coffee ͱ͔ websocket ͱ͔
    • ඇಉظΧοίΠΠ
    • ΍ͬͺΓܕ҆શΠΠωʂ

    View full-size slide

  23. ͪΐͬͱ੝Γ্͕Δ
    • ڞ௨ͷFW͕Ͱ͖ͯͰͭͳ͕Γ͕૿͑Δ
    • Java Ϣʔβʔ͕ Scala ίϛϡχςΟʹࢀઓ

    View full-size slide

  24. Made in Japan ૿͑Δ
    • play-memcached
    • scalikejdbc
    • nscala-time
    • play20-auth

    View full-size slide

  25. 4DBMB$POGFSFODFJO+BQBO

    View full-size slide

  26. Scalaconf ͱ͸ͳΜͩͬͨͷ͔
    • James Roper ͞Μͷ Play ϥΠϒίʔσΟϯά
    • Play ͛͢ʔʂ
    • ͍΍·ͯΑɺ͜Ε͍͢͝ͷ IDEA Ͱ͸ ??

    View full-size slide

  27. 200ਓ͖ͨ
    • ※༗ྉΠϕϯτͰ͢
    • ͨͿΜ Play ͳ͠Ͱ͸͜Μͳʹू·Βͳ͔ͬͨ

    View full-size slide

  28. Play ͕ఆண࢝͠ΊΔ
    • ͳΜ͔ͩΜͩͰΈΜͳ׳Ε͖ͯͨ
    • ͩΜͩΜ҆ఆ͖ͯͨ͠
    • ͘͢͝ྑ͍Θ͚Ͱ͸ͳ͍͚Ͳɺ͏·͘΍͍ͬͯ
    ͚Δײ
    • पลϥΠϒϥϦ΋੒ख़࢝͠ΊΔ (Slick,
    Scalikejdbc)

    View full-size slide

  29. Play ͸͢Ͱʹఆ൪

    View full-size slide

  30. Scala ͱݴ͑͹ Play
    • Scala Λ࢝ΊΔਓ͕࠷ॳʹ৮Δͷ͕ Play

    View full-size slide

  31. DwangoɺPHP ΍ΊΔͬͯΑ

    View full-size slide

  32. ʮPlay2/ScalaͰυϝ
    ΠϯۦಈઃܭΛར༻͠
    ͨେن໛WebΞϓϦ
    έʔγϣϯͷεΫϥϜ
    ։ൃͷצॴʯ

    View full-size slide

  33. ͟Θ…͟Θ…
    • ※ ࢲ͸ devsumi ߦͬͯ·ͤΜ
    • PHP ͷձࣾ΋͟Θ͟Θͯ͠·ͨ͠

    View full-size slide

  34. Dwango ͕ Scala ࢖ͬͯΔ
    ͕ͬͭΓ

    View full-size slide

  35. ؾ෇͍ͨΒΈΜͳ΍ͬͯΔ

    View full-size slide

  36. ͦΖͦΖϚΠφʔͰ͸ͳ͍

    View full-size slide

  37. ίϛϡχςΟ΋͋Δ

    View full-size slide

  38. ڭ͑ͯ΋Β͑Δ

    View full-size slide

  39. ஌Γ͍ͨ͜ͱ
    จ๏
    ࣮༻త
    ӡ༻
    ϕετϓϥΫςΟε

    View full-size slide

  40. Play 2.3 ΋ग़Δ͜ͱͩ͠

    View full-size slide

  41. ͱ͍͏Θ͚Ͱ

    View full-size slide

  42. Play meetup
    ΑΖ͓͘͠ئ͍͠·͢

    View full-size slide