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

見てわかるテスト駆動開発 / TDD Workshop

Recruit
PRO
August 19, 2021

見てわかるテスト駆動開発 / TDD Workshop

2021年度リクルート エンジニアコース新人研修の講義資料です

Recruit
PRO

August 19, 2021
Tweet

More Decks by Recruit

Other Decks in Technology

Transcript

  1. ݟͯΘ͔Δςετۦಈ։ൃ ࿨ా୎ਓ  !U@XBEB 📷🙆 Apr 12, 2021 @ リクルート

  2. t-wada t_wada twada 📷🙆 📹🙅 🙆 ΑΖ͓͘͠ئ͍͠·͢

  3. ςετۦಈ։ൃ ͱ͸Կ͔ % &. 0

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

  5.  ࣍ͷ໨ඪΛߟ͑Δ  ͦͷ໨ඪΛࣔ͢ςετΛॻ͘  ͦͷςετΛ࣮ߦࣦͯ͠ഊͤ͞Δ 3FE   ໨తͷίʔυΛॻ͘

     Ͱॻ͍ͨςετΛ੒ޭͤ͞Δ (SFFO   ςετ͕௨Δ··ͰϦϑΝΫλϦϯάΛߦ͏ 3FGBDUPS   ̍ʙΛ܁Γฦ͢ 5%%ͷαΠΫϧ
  6. 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
  7. લ൒σϞͷ·ͱΊ5%%ͷεΩϧ w໰୊Λখ͘͞෼ׂ͢Δ wา෯Λௐ੔͢Δ wςετˠԾ࣮૷ˠࡾ֯ଌྔˠ࣮૷ wςετˠԾ࣮૷ˠ࣮૷ wςετˠ໌നͳ࣮૷ wςετͷߏ଄ԽͱϦϑΝΫλϦϯά

  8. ςετͷߏ଄Խͱ ϦϑΝΫλϦϯά % &. 0

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

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

  11. 5%%࣮श

  12. '"2

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

    TUBDLPWFSqPXDPN͔Βͷ ඃݴٴ਺ୈҐ ϨΨγʔίʔυվળΨΠυ
  14. ˞l(004zͱݺ͹Εɺ 5%%ͷ࡭໨ͷόΠϒϧͱͳΔ ࣮ફςετۦಈ։ൃ

  15. IUUQTHJIZPKQCPPL

  16. IUUQTXXXBNB[PODPKQEQ

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