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

Ruby Is Nice so We Are Nice

Shintaro Kakutani
November 02, 2017
5.2k

Ruby Is Nice so We Are Nice

Keynote on RubyWorld conference 2017

Video:
📺1: https://youtu.be/NctyqVznddg
📺2: https://youtu.be/P7AunfXSOTQ

Shintaro Kakutani

November 02, 2017
Tweet

Transcript

  1. RUBY IS NICE
    SO WE ARE NICE
    ֯୩৴ଠ࿠ !LBLVUBOJ

    3VCZ8PSME$POGFSFODFجௐߨԋ

    View full-size slide

  2. .BU[JTOJDFTPXFBSFOJDF

    View full-size slide

  3. XF3VCZJTUɻ3VCZJTU
    ͱ͸ɺl3VCZʹରͯ͠
    ୯ͳΔ͓٬͞ΜҎ্ͷ
    ؾ࣋Λ͍࣋ͬͯΔਓz

    View full-size slide

  4. ࣗ෼Ҏ֎Ͱ3VCZΛ࢖͍ͬͯΔ
    ਓͷ͜ͱ͕ؾʹͳͬͯߦಈͯ͠
    ͍Δ͋ͳͨ͸͔ͳΓ3VCZJTUͷ
    ૉཆ͕͋Γ·͢ɻ͍·ͷٕज़Ϩ
    ϕϧ΍஌ࣝ͸ؔ܎ͳ͍ΜͰ͢ɻ

    View full-size slide

  5. .BU[JTOJDFTPXFBSFOJDF

    View full-size slide

  6. 3VCZJTOJDFTPXFBSFOJDF

    View full-size slide

  7. .BU[͕φΠεͳͷ͸Θ͔
    Δ .BU[ౕ͍͍
    ɻ͔͠͠
    3VCZ͕φΠεͱ͸ʜ ࡢ
    ೔ͷجௐߨԋΛώϯτʹ
    ߟ͑ͯΈ·͠ΐ͏ʜ

    View full-size slide

  8. l3VCZz͸ϓϩάϥϛϯάݴޠͩ
    ͚ʹݶΒͳ͍ɻϥΠϒϥϦ΍ϑ
    ϨʔϜϫʔΫɺπʔϧ΍ΞϓϦ
    έʔγϣϯʜΈΜͳͷ࣋ͪدͬ
    ͨl࢖͏ਓʹͱͬͯͷྑ͍ײ͡z
    ͷશମɺͦΕ͕3VCZͷφΠεɻ

    View full-size slide

  9. ΈΜͳ͕3VCZʹ࣋ͪدͬͨ੒Ռ͕φ
    Πε͔ͩΒࢲͨͪ3VCZJTU΋φΠεͰ
    ͍Α͏ʜ͋Ε ੒ՌΛ࣋ͪد͍ͬͯ
    Δͷ͸3VCZJTUͰ͸ 3VCZJTUͷ੒Ռ
    ͕φΠε͔ͩΒ3VCZJTU͸φΠε
    3VCZJTU͕φΠε͔ͩΒ3VCZ͕φΠ
    εʹͳΔ ແݶϧʔϓ͔ͳ

    View full-size slide

  10. 3VCZͷφΠε͞͸ɺ3VCZJTU
    ͷ࣋ͪدͬͨl͍͍ײ͡zͷશ
    ମͱͯ͠ɺ3VCZJTU͕ҭ͍ͯͯ
    ͘ɺͱ͍͏ಈతͰࣗݾݴٴత
    ͳऴΘΓͷఆ·Βͳ͍׆ಈʹɻ

    View full-size slide

  11. 3VCZ,BJHJͷ.BU[ͷ
    جௐߨԋ͸l.BU[JTOJDFz͔
    Βl3VCZJTOJDFz΁ͱ͍͏
    ͷ͕࣮ࡍʹ͸ͲΜͳ෩ܠͳͷ
    ͔Λ঺հͯ͘͠Ε͍ͯ·͢ɻ

    View full-size slide

  12. ʜͱ͸͍͑ɺͦΕ͸͜ͷ࿭੕Ͱ
    ࠷ڧΫϥεͷ΢σϚΤͷεΰΠ
    ڃϋοΧʔͷ࿩͡ΌΜͶʜͱ͍
    ͏ؾ࣋ͪ͸Θ͔Δɻ3VCZJTUʹ
    ٕज़ͷϨϕϧ͸ؔ܎ͳ͍ɺͱ͍ͬ
    ͯ΋ٕज़ͷ෼໺ͷ࿩ͩ͠Ͷʜɻ

    View full-size slide

  13. 3VCZJTOJDFTPXFBSFOJDF

    View full-size slide

  14. ೥Ҏ߱ ͜ͷ೥ؒ
    ʹɺ
    3VCZΛۀ຿Ͱ࢖͍࢝Ίͨɺlී
    ௨ͷzϓϩάϥϚʔͷΈͳ͞Μ
    ʹ΍ͬͯ΋Β͑Δͱ͍͍Μ͡Ό
    ͳ͍͔ͳͱࢥ͍ͬͯΔ͜ͱ

    View full-size slide

  15. ೔தʹɺ͓ޓ͍ʹܟҙΛ
    ΋ͬͯ཰௚ʹɺ࢓ࣄʹؔ
    Θ͍ͬͯΔlؾ࣋ͪzΛ࿩
    ͢ػձΛܧଓతʹ࣋ͱ͏

    View full-size slide

  16. lඇެࣜzͰ͍͍ɻ΍Γํ΋ͲͷΑ͏ͳ
    ΋ͷͰ΋ߏΘͳ͍ɻ·ͣ͸෼͔Β
    Ͱ΋ɻl;Γ͔͑ΓzɺPOɺࡶஊɺ
    ໘ஊɺϥϯνʜɻϓϩάϥϚʔಉ࢜Ͱ
    ࢝Ίͯ΋͍͍͠ɺ ࣗ෼ͨͪͰखԠ͑
    Λײͨ͡Γɺඞཁͦ͏ͳΒ
    ϓϩάϥ
    ϚʔͰดͣ͡ʹ΍ΕͨΒ͍͍͘͢͝ɻ

    View full-size slide

  17. 3VCZ͸ίϯϐϡʔλʔʹ࢓ࣄ
    Λͤ͞ΔͨΊͷϓϩάϥϛϯά
    ݴޠͰ͋Δͱಉ࣌ʹɺϓϩάϥ
    Ϛʔʹϓϩάϥϛϯά͕lͨͷ
    ͍͠zͱ͍͏ؾ࣋ͪΛ఻͑Δlݴ
    ޠzͰ΋͋Δ ͍͢͝

    View full-size slide

  18. ૹΓख͕ײ͍ͯ͡Δؾ࣋
    ͪΛड͚खͷ৺ʹ࠶ݱ͞
    ͤΔͨΊͷݴޠͷ࢖͍ํ
    ͸lࢻzͱݺ΂ΔͷͰ͸ 

    ϙΤϜ

    View full-size slide

  19. 3VCZ͕ϓϩάϥϛϯάݴޠΛ
    ϝσΟΞͱͯ͠ײ৘Λಧ͚͍ͯ
    ΔΑ͏ʹɺl࢓ࣄzΛϝσΟΞͱ
    ͯ͠ײ৘Λಧ͚ΒΕ͍ͯΔ͔ 

    ϙΤϜͱͯ͠ͷ࢓ࣄ

    View full-size slide

  20. Ͱ͖͍ͯΔͰ͖͍ͯ
    ͳ͍ɺڧ͍ऑ͍ɺࣗ
    ৴͕͋Δෆ҆ͩɺ೰Μ
    Ͱ͍Δ΋΍΋΍͢Δ

    View full-size slide

  21. 3VCZΛ࢖ͬͯۀ຿΍ࣄۀΛ͓͜
    ͳ͏ػձ͸ͱͯ΋ͱͯ΋૿͑·͠
    ͨ Α͍͜ͱ
    ɻ͔͠͠ɺ3VCZͷ
    Α͏ʹφΠεͳײ৘Λ࢓ࣄΛ௨͡
    ͯಧ͚͍ͯΔ৬৔͸ಉ͚ͩ͡͸૿
    ͑ͯ͸͍ͳ͍ɺͱײ͍ͯ͡Δɻ

    View full-size slide

  22. ͩͬͯ·͋೉͍͠
    ͔ΒͶ

    View full-size slide

  23. 3VCZ͸ίϯϐϡʔςΟϯάύϫʔ
    ͷ૿େͱΠϯλʔωοτͷීٴ
    ͷաఔͰੜ·Εҭͬͨɺࣗ༝ͳɺ
    ࣗવͷɺ໺ੜͷιϑτ΢ΣΞ

    3VCZ͸ϋοΧʔୡ͕ͭͬͨ͘

    View full-size slide

  24. lϏδωεzͱͯ͠ͷιϑτ
    ΢ΣΞͮ͘Γ͸Ͳ͏ͯ͠΋
    ਓ޻తͳ؀ڥʹͳΓ͕ͪɻ
    ๻ΒϋοΧʔ͡Όͳ͍͠ʜ
    ળѱͷ໰୊Ͱ͸ͳ͍
    ɻ

    View full-size slide

  25. ໺ੜͷιϑτ΢ΣΞͰ͋
    Δ3VCZͷφΠε͞Λਓ޻
    తͳ؀ڥͰ͋ΔϏδωε
    ͷੈքͰϋοΧʔͳΒ͵
    զʑ͕l࠶ݱz͢Δํ๏

    View full-size slide

  26. ͦ͜ͰΞδϟΠϧ
    ϦʔϯͰ͢Α

    View full-size slide



  27. ϋοΧʔͱΞδϟΠϧ

    "What!?! That's obvious!" closely
    followed by "But Fowler explains it better
    than Unix traditions do..."
    ,$#)

    *%'+
    )BDLJOHBOE3FGBDUPSJOHCZ&SJD43BZNPOE
    IUUQXXXBSUJNBDPNXFCMPHTWJFXQPTUKTQ UISFBE

    View full-size slide

  28. The New Methodology

    ৽͍͠ํ๏࿦
    • Adaptive > Predictive
    ࣄલͷਫ਼౓ΑΓ΋ݱ࣮΁ͷదԠΛ
    • People > Process
    “ਓؒ”͸ιϑτ΢ΣΞ։ൃͷ࠷ॏཁίϯϙʔωϯτ
    • Self-Adaptive Process
    ϓϩηε͸ϑΟʔυόοΫΛ௨ͯ͡ҭͭ
    https://www.martinfowler.com/articles/newMethodology.html

    View full-size slide

  29. ྫ͑͹4DSVNͱ͍͏ΞδϟΠ
    ϧͳ࢓ࣄͷਐΊํͷϑϨʔϜϫʔ
    Ϋ͕͋Δɻ͜ΕΛφΠεΛಧ͚
    ΔϝσΟΞͱͯ͠ϙΤϜԽ͢Δ

    ಁ໌ੑ ݕࠪ దԠ

    View full-size slide

  30. ྫ͑͹-&"/ΤϯλʔϓϥΠζͱ͍͏૖
    େͳߏ૝͕͋ΔɻlϛογϣϯίϚϯυz
    ͱlվળͷܕzΛφΠεΛಧ͚ΔϝσΟ
    Ξͱͯ͠ϙΤϜԽ͢Δ

    λʔήοτঢ়ଶɺ໨తɺ࠷খݶͷ੍໿

    View full-size slide

  31. 3VCZΛ࢖ͬͯlͨͷ͍͠zͱײ
    ͡ΒΕͨͱ͖ͷड͚खͱͯ͠ͷ
    ؾ࣋ͪΛɺࣗ෼͕࢓ࣄͷૹΓख
    ͱͳͬͨͱ͖ʹɺͦΕΛड͚ख
    ͷ৺ʹl࠶ݱz͢Δ͜ͱʹ͚ۙͮ
    ͍ͯΔͩΖ͏͔

    View full-size slide

  32. 3VCZͷφΠεΛಧ͚Δ
    ϝσΟΞͱͯ͠ϙΤϜԽ
    ͢Δͱ͍͏؍఺͔Βઌୡ
    ͷݴ༿ΛோΊͯΈΑ͏

    View full-size slide

  33. lࣃंͷͭʹͳͬͨਓؒ͸ɺ
    ࢓ࣄΛָ͘͠Ͱ͖ͳ͍ɻ࢓ࣄ
    ָ͕͘͠ͳΔͷ͸ɺ࢓ࣄͷશ
    ମ૾͕೺ѲͰ͖ɺ࢓ࣄશମͷ
    ࣭ʹ੹೚Λ࣋ͭ৔߹Ͱ͋Δɻ
    ΫϦετϑΝʔɾΞϨάβϯμʔʰύλϯɾϥϯήʔδʱ

    View full-size slide

  34. lʮָ͠͞ʯʹ΋ϏδωεՁ
    ஋͕͋Γ·͢ŠŠ݁ہɺϞν
    ϕʔγϣϯ͕ͦ͜ϓϩάϥϚ
    ͷੜ࢈ੑΛࠨӈ͢ΔͷͰ͢ɻ
    ϚʔςΟϯɾϑΝ΢ϥʔʮμΠφϛοΫλΠϐϯάʯ
    http://bliki-ja.github.io/DynamicTyping/

    View full-size slide

  35. http://modernagile.org/

    View full-size slide

  36. 3VCZJTUJTUɻ
    3VCZJTU͕޷͖ɻ

    View full-size slide

  37. Ұൠࣾஂ๏ਓ೔ຊ3VCZͷձͷཧࣄɻ
    ૲ͷࠜͷ೔ຊͷ3VCZJTUͷ׆ಈʹ๏ਓ
    ֨Λ༩͍͑ͯΔɻ3VCZϦϑΝϨϯε
    ϚχϡΞϧ 3VCZJTU.BHB[JOF
    3VCZ,BJHJ ஍Ҭ3VCZձٞ
    3BJMT(JSMT+BQBOͳͲͷ׆ಈΛࢧԉ
    ͢ΔࣄۀΛ͓͜ͳ͍ͬͯ·͢ɻ

    View full-size slide

  38. 3VCZΞιγΤʔγϣϯ͸Ұൠ
    ࡒஂ๏ਓɻࡒʹ๏ਓ֨Λ༩͑ͯɺ
    ͓ۚʹ͍͍ײ͡ʹಇ͍ͯ΋Βͬ
    ͯ3VCZͷීٴͱൃలͷͨΊͷ
    ࣄۀΛ΍͍ͬͯͯ͢͝

    ݸਓͷݟղͰ͢
    ɻ

    View full-size slide

  39. 3VCZͷφΠε͞͸ɺ3VCZJTU
    ͷ࣋ͪدͬͨl͍͍ײ͡zͷશ
    ମͱͯ͠ɺ3VCZJTU͕ҭ͍ͯͯ
    ͘ɺͱ͍͏ಈతͰࣗݾݴٴత
    ͳऴΘΓͷఆ·Βͳ͍׆ಈʹɻ

    View full-size slide

  40. 3VCZ͕ϓϩάϥϛϯάݴޠΛ
    ϝσΟΞͱͯ͠ײ৘Λಧ͚͍ͯ
    ΔΑ͏ʹɺl࢓ࣄzΛϝσΟΞͱ
    ͯ͠ײ৘Λಧ͚ΒΕ͍ͯΔ͔ 

    ϙΤϜͱͯ͠ͷ࢓ࣄ

    View full-size slide

  41. ೔தʹɺ͓ޓ͍ʹܟҙΛ
    ΋ͬͯ཰௚ʹɺ࢓ࣄʹؔ
    Θ͍ͬͯΔlؾ࣋ͪzΛ࿩
    ͢ػձΛܧଓతʹ࣋ͱ͏

    View full-size slide

  42. ͍·ɺͰ͖ΔΞδϟΠϧ ֯੐య

    https://www.slideshare.net/kdmsnr/20130808agilesapporo
    Further Reading
    https://www.slideshare.net/takahashim/how-to-become-a-rubyist
    3VCZJTUೖ໳೥൛ ߴڮ੐ٛ

    http://rubyonrails.org/doctrine/
    5IF3BJMT%PDUSJOF %))

    View full-size slide

  43. RUBY IS NICE
    SO WE ARE NICE
    ֯୩৴ଠ࿠ !LBLVUBOJ

    3VCZ8PSME$POGFSFODFجௐߨԋ

    View full-size slide