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

見てわかるテスト駆動開発 / TDD Live and Workshop 2019 Spring

見てわかるテスト駆動開発 / TDD Live and Workshop 2019 Spring

Takuto Wada

April 11, 2019
Tweet

More Decks by Takuto Wada

Other Decks in Programming

Transcript

  1. ςετۦಈ։ൃ ͷ
    ࿨ా୎ਓ !U@XBEB

    ݟͯΘ͔Δ
    ςετۦಈ։ൃ

    View full-size slide

  2. UXBEB
    U@XBEB
    UXBEB
    ࿨ా୎ਓ

    View full-size slide

  3. ؂मɺ؂༁ɺ຋༁ͨ͠ຊͨͪ

    View full-size slide

  4. ελϯυ໊ϫΠϧυɾαόϯφ
    ΑΖ͓͘͠ئ͍͠·͢

    View full-size slide

  5. ࠓ೔
    ΍Δ͜ͱ

    View full-size slide

  6. 5%%ʹ͍ͭͯͷߨԋ

    View full-size slide

  7. ϖΞϓϩάϥϛϯά

    View full-size slide

  8. ίʔυϨϏϡʔେձ

    View full-size slide

  9. ςετۦಈ։ൃ
    ͱ͸Կ͔
    ϥΠϒίʔσΟϯάʹΑΔσϞ

    %
    &.
    0

    View full-size slide

  10. ʮಈ࡞͢Δ͖Ε͍ͳίʔυʯɻ3PO+F⒎SJFT
    ͷ͜ͷ؆ܿͳݴ༿͕ɺςετۦಈ։ൃʢ5%%ʣ
    ͷΰʔϧͩɻಈ࡞͢Δ͖Ε͍ͳίʔυ͸͋Β
    ΏΔҙຯͰՁ஋͕͋Δɻ
    ᴷ,FOU#FDL
    ʰςετۦಈ։ൃʱ·͕͖͑

    View full-size slide

  11. 5%%ͷαΠΫϧ
    1.࣍ͷ໨ඪΛߟ͑Δ
    2.ͦͷ໨ඪΛࣔ͢ςετΛॻ͘
    3.ͦͷςετΛ࣮ߦࣦͯ͠ഊͤ͞Δ 3FE

    4.໨తͷίʔυΛॻ͘
    5.Ͱॻ͍ͨςετΛ੒ޭͤ͞Δ (SFFO

    6.ςετ͕௨Δ··ͰϦϑΝΫλϦϯάΛߦ
    ͏ 3FGBDUPS

    7.̍ʙΛ܁Γฦ͢

    View full-size slide

  12. Write a program that prints the numbers from 1 to 100. But
    for multiples of three print “Fizz” instead of the number and for
    the multiples of five print “Buzz”. For numbers which are
    multiples of both three and five print “FizzBuzz”.
    ͔Β·Ͱͷ਺ΛϓϦϯτ͢ΔϓϩάϥϜΛॻ͚ɻͨ
    ͩ͠ͷഒ਺ͷͱ͖͸਺ͷ୅ΘΓʹň'J[[ʼnͱɺͷഒ਺ͷ
    ͱ͖͸ň#V[[ʼnͱϓϦϯτ͠ɺͱ྆ํͷഒ਺ͷ৔߹ʹ͸
    ň'J[[#V[[ʼnͱϓϦϯτ͢Δ͜ͱɻ
    http://tickletux.wordpress.com/2007/01/24/using-fizzbuzz-to-find-developers-who-grok-coding/
    http://www.aoky.net/articles/jeff_atwood/why_cant_programmers_program.htm
    σϞ'J[[#V[[໰୊
    %
    &.
    0

    View full-size slide

  13. w໰୊Λখ͘͞෼ׂ͢Δ
    wา෯Λௐ੔͢Δ
    wςετˠԾ࣮૷ˠࡾ֯ଌྔˠ࣮૷
    wςετˠԾ࣮૷ˠ࣮૷
    wςετˠ໌നͳ࣮૷
    લ൒σϞͷ·ͱΊ5%%ͷεΩϧ

    View full-size slide

  14. ςετͷߏ଄Խͱ
    ϦϑΝΫλϦϯά
    ϥΠϒίʔσΟϯάʹΑΔσϞ

    %
    &.
    0

    View full-size slide

  15. ʰY6OJU5FTU1BUUFSOTʱΑΓ
    ςετͷϝϯςφϯείετ
    ཧ૝
    ݱ࣮

    View full-size slide

  16. w໰୊Λখ͘͞෼ׂ͢Δ
    wา෯Λௐ੔͢Δ
    wςετˠԾ࣮૷ˠࡾ֯ଌྔˠ࣮૷
    wςετˠԾ࣮૷ˠ࣮૷
    wςετˠ໌നͳ࣮૷
    wςετͷߏ଄ԽͱϦϑΝΫλϦϯά
    ·ͱΊ5%%ͷεΩϧ
    ご清聴ありがとうございました

    View full-size slide

  17. υϥΠόʔ
    φϏήʔλʔ
    2人で1つのマシン、1つのキーボード
    ペアプログラミングによる演習

    View full-size slide

  18. ࡞ۀΛܾΊΔ
    ࠷ॳͷ໨ඪΛܾΊΔ
    ύʔτφʔΛཔΓʹ͠ɺࢧ͑ͯ΍Δ
    ஻Δ
    ͓ޓ͍ԿΛ΍͍ͬͯΔ͔೺Ѳ͢Δ
    تͿ
    ަ୅͢Δ
    ペアプログラミングのやりかた
    IUUQXXXIZVLJDPNZVLJXJLJXJLJDHJ "%""""%"&%"#"&"%'"'"#"$&"&"&"""#"#'

    View full-size slide

  19. 指差し重要
    ドライバーの前にキーボード

    View full-size slide

  20. Thinking out loud: 考えを声に出す

    View full-size slide

  21. wഎܠ͸ڞ༗͍ͯ͠ΔͷͰɺ͔͍ͭ·ΜͰ
    w50%0Ϧετ
    wςετίʔυͷ࣮ߦ݁Ռͱߏ଄
    wۤઓͨ͠఺ɺ౒ྗͨ͠఺
    wݴޠɺ؀ڥͳΒͰ͸ͷυϠϦϯά
    レビューで話すこと

    View full-size slide

  22. ςετͷແ͍ίʔυ͕
    طʹͨ͘͞Μ͋Δ

    View full-size slide

  23. w ʮϨΨγʔίʔυͷδϨϯϚʯ
    w lίʔυΛมߋ͢ΔͨΊʹ͸ςετΛ੔උ͢Δ
    ඞཁ͕͋Δɻଟ͘ͷ৔߹ɺςετΛ੔උ͢Δ
    ͨΊʹ͸ɺίʔυΛมߋ͢Δඞཁ͕͋Δz
    w ϨΨγʔίʔυʹ৮ΔͨΊͷ

    ޠኮͱٕ๏Λ੔ཧͨ͠ຊ
    w TUBDLPWFSqPXDPN͔Βͷ

    ඃݴٴ਺ୈҐ
    ϨΨγʔίʔυվળΨΠυ

    View full-size slide

  24. Ͳ͜·Ͱςετ͢Ε͹Α͍ͷ͔

    View full-size slide

  25. ݱ࣮ͷγεςϜ͸΋ͬͱෳࡶ

    View full-size slide

  26. w໰୊Λখ͘͞෼ׂ͢Δ
    wา෯Λௐ੔͢Δ
    wςετˠԾ࣮૷ˠࡾ֯ଌྔˠ࣮૷
    wςετˠԾ࣮૷ˠ࣮૷
    wςετˠ໌നͳ࣮૷
    wςετͷߏ଄ԽͱϦϑΝΫλϦϯά
    TDDのスキル
    ご清聴ありがとうございました

    View full-size slide