ã¡ãã£ãšããæŽå²
次ã«ã極端ãªããã°ã©ãã³ã°ãšãã¹ãã®æ¹æ³ã®1ã€ã«ã€ããŠèª¬æããŸãã ããããæåã«-ããšã¿ïŒ ã¯ããã¯ããããã¯ããšã¿ã§ããç§ã«ãšã£ãŠã¯éåžžã«è¯ãè»ãäœã£ãŠããäŒç€Ÿã§ãã 圌ãã¯ãã¹ããšã©ãé¢ä¿ããŠããã®ã§ããããïŒ ã¯ããæãããã«ïŒ ããã180 km / hã®é床ã§ãœãããŠã§ã¢ãã¹ããè¡ãããã§ã¯ãããŸããã ããã¯æãã ããã 楜ããããæããªã
TDDïŒTest-Driven DevelopmentïŒ ããŸãã¯ãç§ãã¡ã®æèŠã§ã¯ããã¹ãã«åºã¥ãéçºã¯éåžžã«èå³æ·±ãææ³ã§ãããç§ã«ãšã£ãŠã¯ãTDDã¯ããã¯ãŒã«ã«èãããã®ã§ãããã§ãããåŒã³åºããŸãã ãã£ãããã§ãããïŒ
ããã§ãç§ã¯äœã«ã€ããŠè©±ããŠããã®ã§ããïŒ ãããããšã¿ïŒ 倧éæ³°äžãTDDãéçºããã®ã¯ãã®äŒç€Ÿã§ãã ãã®æè¡ã¯ããšããšèªåè»è£œé ã«çŠç¹ãåœãŠãŠããŸããã 倪äžã¯å»æ£ç©ä»¥å€ã®çç£ã«å°ã倢äžã«ãªã£ãŠããããã¹ãŠã«å ããŠãè³¢æãªæ¥æ¬ã®å€¢ãå®çŸããã®ã«ååè³¢ã人ã§ããã TDDã®ææ æ·±ãæ¯èŠªã§ããTPSãããŸããã 圌ã®çŽ æŽãããã¢ã€ãã¢ã¯ãçµã¿ç«ãŠã®æåã®æ®µéã«å¿ èŠãªæ°ã®èªåè»éšåã®ã¿ãçç£ããããšã§ããã ãŸãããããã®éšåã«ã¯éåžžã«é«ãå質èŠä»¶ã課ãããŠããŸããã çç£ã®ããŸããŸãªæ®µéã®éã®ã³ãã¥ãã±ãŒã·ã§ã³ã®ããã»ã¹ã¯ãããã°ãããŸãã¯ããç°¡åã«ãå¿ èŠãªç¢æãšã¡ã¢ãåãã倧ããªããŒãã®ãããã§è¡ãããŸããã
ããããããã¯è»ã«é¢ãã話ã§ãããœãããŠã§ã¢ãã¹ããšã¯äœã®é¢ä¿ããããŸããïŒ å»æ£ç©ã®é€å»ã«ããããã¹ãŠã®å¡©ïŒç§ãã¡ã®å Žåãé床ã®åªåïŒã ããã¯ãäžéšã®ãããžã§ã¯ãã«ãšã£ãŠéèŠãªèŠå ã«ãªãå ŽåããããŸãã æ³åããŠã¿ãŠãããªãæ¥åžžçãªã·ããªãªãèããŠã¿ãŸãããã ããããããããããã«ã ããªãã¯é¡ã®æ±ã§åããã³ãŒããæžããå€å¯ãªãã§ãå€é£æã«é»åã¬ã³ãžã®ãã£ã¹ãã¬ã€ã«ã³ãŒããèŠãŸãã ãããŠãããã¯çŸããæ¥ã§ãã ã³ãŒããè¿œå ãããŸããã ãããã誰ãããã䜿çšããŸããã æ°æ¥ããŸãã¯æ°é±éã§ãããã³ãŒããçµ±åããŸããã ãããŠãæ¥ãã§æŸèæã§ã圌ãã¯ããã°ã©ã ã«è¿œã蟌ãŸããŸãã ãããŠããã€ãã¹ãŠããã§ãã¯ããŸããïŒ ããã©ãŒãã³ã¹ããã¹ãããã¿ã€ãã³ã° ç¹°ãè¿ãã«ãªããŸãããè·å Žã§åº§ã£ãŠèªåã®æ³ååã ãã§ç ããŸããïŒ ããŒãã£ãŒã®æªåé«ãæ³åãã誰ããç¥ã£ãŠããããã«ãæåããã³ãŒãã¯åçŽã«æ£ãããããŸããïŒã³ãŒãã«ã¯å°ãªããšã1ã€ã®ãã°ããããã³ãŒãã1è¡ãããªãå Žåã§ããã°ãå«ãŸããŸãïŒã
ãŸãã¯ãã³ãŒããç¡é§ã«ãªãã ãã§ãã ãããããã¡ããã圌ãæžãããšããç®æšã¯ãããŸãããããã®åŸãããŸããŸãªçç±ã«ããããã®å¿ èŠæ§ã¯åã«æ¶ããŸããã æ¶ããã®ã¯æ®å¿µã ã ãããŠããã£ãšçç£çãªãã®ã«æéãè²»ããããšãã§ããŸãããïŒ
ããã§TDDãå©ãã«ãªããŸãã ãŠããããã¹ããå¿ å®ãªããã°ããšããŠããçç£ã®ç¡é§ããæžããããã®æ£ããéãã®åŒ·åãªã¢ãŒã²ã³ã¹ã¿ãŒã³ãšããŠã ãããŠæãéèŠãªããš-ãã¹ãŠãæééãã«ãã¿ã€ã ãªãŒãªãã£ãŒãããã¯ã§è¡ãããŸãã ç§ã«ãšã£ãŠã¯çŽ æŽãããããŒãã¹ã§ãã
åŠã¶ã®ã¯é£ãã...
æå°ã§ã¯ãã€ãŸãçè«çã«ã¯ããã¹ãŠãéåžžã«ã·ã³ãã«ã«èãããŸããã TDDã¯äžèŠãããšéåžžã«ç°¡åã«æããŸãã å°ãªããšãã圌ã«ã¯2ã€ã®åºæ¬çãªã«ãŒã«ãããããŸããã äžéšãäžéšã§äžéšãäžéšã§ããã¯ã³ããŒã©ã³ãã®ã«ãŒã«ã¯äœã§ããïŒ èŠãŠã¿ãŸãããïŒ
- æ°ããã³ãŒããæžãã®ãå¿ããŠãã ããã ãã㊠ããŒããŒãããé¢ããŠå®å šãªè·é¢ã«ç§»åããå šåã§æŠã£ãŠãã ããã å°ãªããšãèªååãããªãã倱æããããŸã§ã
- ç¹°ãè¿ããªãã§ãã ããã äºãã«éè€ãããã¹ãŠãæé€ããŸãã
ç°¡åããã§ããã ãããããããã®ã«ãŒã«ã¯åŸããããå®è£ ãç°¡åã§ãã ãããã®ã«ãŒã«ã¯ãå¯èœãªéãæ£ç¢ºã«ããã»ã¹ã®è€éããæãä»ãããåªããŠããŸãã ãããŠããå°ãã
äœåºŠãã«ãŒã«ã«åŸãå ŽåïŒãããŠãç§ãã¡ã¯çãçããããŒããŒããä»ã®ã¬ãžã§ãããåããã¯ãŒã«ãªTDDã¹ããŒã«ãŒã§ããã倩åœã®ã¯ãŒã«ãã«ãã©ã¹ãå ããŠããããïŒããã¹ãããã³ãŒããæžãåã«ãã¹ããæžãå¿ èŠããããŸãã ã©ãããç§ãã¡äžäººäžäººãããŠã©ã»ã¬ã¬ãŒãªã³ãenãŸããæã£ãŠããã圌ã®äººçã§å°ãªããšãäžåºŠã¯æãåŸæããããšæã£ãŠããŸãã ãããã£ãŠãå°ããªäŸã§ã¯ãJavaã䜿çšããŠãå®å®ã®æœåšçãªåŸæè ã®ãã©ã¡ãŒã¿ãŒã枬å®ããŸãã ãªãã§ïŒ ã§ããããïŒ
ãã®äŸã§ã¯ããã¹ãã³ãŒãã¯æ°è¡ã§ãããçç£çãªã³ãŒãã¯1è¡ã§ã¯ãªããšããäºå®ã«é©ããªãã§ãã ããã ããã¯ãç¥èŠã容æã«ããããã«èšèšãããåãªãäŸã§ãã ããã§ãããã§äœãèµ·ãã£ãŠããã®ã§ããããïŒ
- ãªããžã§ã¯ããäœæããŸãã å®å®è¹ãæ£åžžã«äœæãããŸããã ãããŠãéåžžã®ç¶æ ã§ã¯ãåããŸããã ãããã£ãŠããã®é床ã¯æ¯ç§0ãã€ã«ã§ãã ããã¯å®å®è¹ã®æãæ£ç¢ºãªå®çŸ©ã§ã¯ãããŸãããã第äžã«ãç§ã¯å®å®è¹ã®éçºè ã§ã¯ãããŸããã第äºã«ããã·ã¢ã®æ £ç¿ã§ããããã«ãç§ãã¡ã®ç®çã«ãšã£ãŠã¯ããã§ãã ååé¡ã«é çªã«å¯ŸåŠããå¿ èŠããããŸãããŸããååãTDDã®åŸæ¥å¡ã«é»è©±ããããããã«ããªãŒã¬ããã¯ãã¶ã€ã³ã«åãçµãå¿ èŠããããŸãã
- APIãã¶ã€ã³ã åäœãã¹ãã¯æã幞éã§ãã 圌ãã¯èªåèªèº«ã§äžç²ã®ã³ãŒããè©Šãæåã®äººã«ãªãã§ãããã ãããŠãããã«å¿ããŠã圌ãã¯ç§ãã¡ã«å¿ èŠãªããŒã¿ãæäŸããæåã®äººã«ãªããŸãã ãã€ã³ãã¯ããã®ã³ãŒããæžãåã«ããŒã¿ãååŸããããšã§ãã ããã§ãã
- ãã«ãããªã³ã° çŸæç¹ã§ã¯ãå®å®è¹ã®ã¯ã©ã¹ã¯ç¹å®ã®éåã¢ãã«ããæé ãããŠããŸãïŒåé¢ãããŠããŸãïŒã 圌ãä»ç¥ã£ãŠããã®ã¯ãæšæºã®TDDãã³ãã¬ãŒãã衚瀺ã§ããã é転ã¢ãŒã ãã€ã³ã¿ãŒãã§ãŒã¹ã ãã§ãã èšèšã®ååãå«ãæååã¯ãå®è£ çšã§ã¯ãªããã€ã³ã¿ãŒãã§ã€ã¹çšã«ããã°ã©ã ãããŠããŸãã 倧ããªãã©ã¹ã¯ãã¹ã¿ãïŒãœãããŠã§ã¢ã³ã³ããŒãã³ãã®åäœã®ã·ãã¥ã¬ãŒã·ã§ã³ïŒã«ãã£ãŠãã¹ãããããŠãããã®å¯Ÿè±¡ã«ãªãããšã§ãã ãŸããç¹å®ã®ã¯ã©ã¹ã«é床ã«äŸåããªãããã«ããŸãã éåžžãå°ãªããšã1ã€ã®èŠå ã®äžæ£ç¢ºããå ãããŸãã ãããŠãè€æ°ã®äžæ£ç¢ºãã¯TDDãç°¡åã«åŠçã§ãããã®ã§ã¯ãããŸããã
- å¯äœçšã éåã¢ãã«ã®å€æŽã¯äœãæå³ããŸããïŒ äŸã«ç€ºãããã«ãç¹å®ã®ã¢ãã«ã®æé«é床ã«çãããªãã ãã§ãã
ã¯ã©ã¹ã®æåã®ãã¹ãã±ãŒã¹ã¯ãå¿ èŠãªéã®èª¬æã«å§åãããéåœã«ãããŸãã æåã ãã ãšããã§ã ããã§ãã¹ã¿ãŒã·ããã¯ã³ãã€ã³ããŒãã®äœæãéå§ã§ããŸãã
ãã¹ãã±ãŒã¹ããããäžèšã®äŸãšã¯ç°ãªããŸãã å®è£ ãåžžã«æããã§ã¯ãªããããªã±ãŒã¹ã 次ã«ãã¹ã¿ãå®è£ ããå§ãã䟡å€ããããŸããã¹ã¿ãå®è£ ã§ã¯ãæ®é ·ã«èšå®ãããã³ãŒããå ã®å€ã«æ»ãå¿ èŠããããŸãã ãªãããããã¹ãŠè¡ãã®ã§ããïŒ äž»ã«ãæ£ããããšããã¹ãããŠããããšãä¿èšŒããããã§ãã ããã¯éèŠãªèŠçŽ ã§ãããªããªããäœã®æé·ã«ãããå¿ èŠãªãã®ãæ£ç¢ºã«ãã¹ããããããšãä¿èšŒããã®ãã¯ããã«é£ãããªãããã§ãã
ãããã代æ¿ãªãã·ã§ã³ã®ç 究ã¯ç°¡çŽ åãããŠããŸãã ããã¯ãäž»èŠãªæ©èœã«å ããŠãã¢ã³ããããç Žå£ãã矩æ¯ã®å°çåŸã«å®¶ãå¥ç®ãããããéžé ããç¶è©°ããããå倧ãªã¡ã¬ã³ãŒãã®ç¥å£ã«å€å€§ãªåªåãæãããªãã£ããšããäºå®ã«ãããã®ã§ãã ãããŠããããã®æ°è¡ã®æãã³ãŒãè¡ãåããæ¶å»ããããšã¯å¿ççã«ãç°¡åã§ãã ããã¯ãã¡ããæ®å¿µã§ãããããã»ã©å€ãã¯ãããŸããã ããã§ããã¹ããå®å šã«å®è¡ããŠãåäŸã®ããã«ç·ã®ã¹ãã©ã€ãã楜ããããšãã§ããŸãã åãã§æããããã®ã¯æ®å¿ã§ç·ãããã 次ã«ãéè€ããæ å ±ãèŠã€ããŠæé€ããããã«ããããåªåãããŸãã æ¹åã§ããç¹ã確èªã§ããŸãã
ç§ã¯äžããããäŸã§äœãå«ãã§ããïŒ ç¶æ åºæã®é床ã é床ã¯äžåºŠã«2ãæã«ãããããè€éåããããŸãã ããã§ã¯ãã é転ã¢ãŒã ããæäŸããããšã«ãã£ãŠããã¹ãŠãèæ ®ããŠã¿ãŸãããã
ãã¹ããããäžåºŠå®è¡ããåŸãç§ã®æããé«å±±è²ã®èã®ã¹ããªãããJunitã«è¡šç€ºããããšä¿¡ããŠããŸããïŒç§ã¯äœ¿çšããèšåããã®ãå¿ããŸããã硬åã匷ããªã£ãã®ã§ãããããªããïŒã ä»ãå°ãããŠããªãã®ååž°ãã¹ããå®è¡ããŠããŸãã
æŽãæµããåŸ-å€ãè¯ãã²ããçããããžã§ãŒã¯ãèšãããã«ãç¹°ãè¿ããŸã
ãããã®å°ããªç¹°ãè¿ããTDDã®åºç€ã§ãã å€ãã¯è¡ãéãã§ãã 倧ããªã¹ããããèžãããšã¯éåžžã«ããããééãã§ãã ããããå°ããããããšã¯ãã¹ãã§ã¯ãããŸããã ããããªãªã³ãã¹ã®ç¥ã ãç§ãæ£ãããã©ã³ã¹ãèŠã€ãããŸã§ã©ãã ãèŠããã ã®ãã çµå±ã®ãšãããéåžžã«å°ããªéšåã§ãã¹ãŠãè¡ããšãã¬ãã¹ã³ã¯éåžžãã®æå³ã倱ããŸãã ãããéããããšããã£ãŒãããã¯å šäœã倱ããããã¹ãŠã®ããŒã¿ãæ£ããæ©èœããŸãã TDDãœã«ãã¯ãã¹ãŠå€±ãããã¬ãã¹ã³ã¯ããã«æå³ããªããªããŸãã ãããããŠããããå°ããã»ã©å€§ããå ŽåïŒãããéåžžã«ã¯ãŒã«ã«èãããŸãïŒãåé¡ã¯ç°¡åã«èŠã€ããããã£ãŒãããã¯ã確ç«ãããäžè¬çã«ç§èå°ãå²ãããŠãã³ãŒã³ããžã£ã³ãããŸãã ããã¯ãå人çãªçµéšãå£ããããŒããŒãã®å±±ã8é建ãŠã®ãã·ã¢èªã®é³ç¯ã®ãããã«ã®ã¿åºã¥ããŠèŠã€ããããšãã§ãããã©ã³ã¹ã§ãã
å°ããªã¹ãããã®ãã1ã€ã®å€§ããªå©ç¹ã¯äœã§ããïŒ è¿·ããªãã§ãã ããã çµå±ã®ãšãããé»åã¡ãŒã«ã¯çµ¶ããå±ããé»è©±ã¯å±ããŸãããæ°ãæ£ãããšããããŸãã ãŸãã¯ææªã®æª-ãææã®ãååã¯ãèªåã®é»ãåžè¡é¬Œã®å¿ã«æ£ãæã¡èŸŒãã§ãããã®ããã«éµãå©ããŠããŸãã æ°ãæ£ãããïŒ ããããå°ããªã±ãŒã¹ã§ã¯ãããã«åŽåç掻ã®æ¥éãªæµãã«æ»ãã®ã¯éåžžã«ç°¡åã§ãã ãã®ã±ãŒã¹ã¯ãå¿ããäžæ¥ãçµããŠææ¥ããç°¡åã«å§ããã®ã«ãæé©ã§ãã ãããŠããããèœã¡ããšããŠããããã¯ããã»ã©in蟱çãªãã®ã§ã¯ãªããå°ããªãã®ã§ãã ãããããã®ãããªãã¡ã€ã«ã¯èšå€§ãªéã®ããŒã¿ãæäŸãããããäœãååŸãããããã«ããããŸãã
æ®å¿µãªãããç¹°ãè¿ããŸãããæ£ãããµã€ãºã¯èª°ã«ãšã£ãŠãå人çãªåé¡ã§ãã ãã®ãããªã»ã°ã¡ã³ãã®éžæã¯ãçµéšãç¥èãããã³ã²ãã®ã¬ãã«ã«åºã¥ããŠããå¿ èŠããããŸããããã以å€ã®æ¹æ³ã¯ïŒ
ããŸããŸãªã¬ãã«ã®èšèš
äºåèšèšã¯ã©ããããå¿ èŠã§ããïŒ èª°ãç¥ã£ãŠãããããã¯çããããŠããªããããã®è³ªåã®1ã€ã§ãã ããã¯ãã¹ãŠãããžã§ã¯ãã«äŸåããŸãã ç§ãã¡ã¯ãããŒãã®ãœãããŠã§ã¢ãåŒãç¶ã䜿çšããŸãã ã»ãã¥ãªãã£äžã®çç±ãããç°åžžãªç¶æ³ã§ã®åäœã®1ã€ã2ã€ã®ç°ãªãã³ãã³ãã«ãã£ãŠæžã蟌ãŸãããšããŸãã äž¡ããŒã ã¯äžŠè¡ããŠåäœããããã°ã©ã ãäœæããŠããŸããã ããã°ã©ã ã«ã¯ç¹å®ã®ãã©ã¡ãŒã¿ãäžããããäœãã«åæããªãå Žåã¯ãããšãã°ãèµ·åãèªåçã«ãã£ã³ã»ã«ãããŸãã ãã®åé¢ææ³ã¯ããã®å Žåã®å è¡æè³ã¯äºãã«åæããå¿ èŠããã2ã€ã®ç°ãªããœãããŠã§ã¢ã§ããããã®å¹æã1ã€ã®ããã°ã©ã ããéæããããšã¯å°é£ã§ããããšã瀺ããŠããŸãã
ãŸããèŠä»¶ãããããªãå Žåã¯ã©ã®ãããªãã¹ããäœæããå¿ èŠããããŸããïŒ
å€ãã®äººããã®è³ªåãããŸãããç§ã¯ãã€ãŠéã«è¿·ã£ãã®ã§ãäœã«çããŸããïŒ ããŠãããã°ã©ã ãããšãã«ã©ã®ã³ãŒããã¹ã«ã«ããããŸããïŒ äœæãããã®ãã©ã®ããã«ç¥ã£ãŠããŸããïŒ åäœãã¹ãã¯èŠä»¶ã«çµã³ä»ããããã¹ãã§ããïŒ TDDã¯èªä¿¡ãæã£ãŠããããšçããŸãã
åé¡ã®å šäœçãªãã€ã³ãã¯ãæœåšçãªåé¡ã®äžæ°å³ãªé åããèŠæ±ãæ¥ããšããããšã§ãã ãããŠãç§ãã¡ä»²éã®ç 究è ãã¡ã¯ãç©ãããªæµ·å²žããçããšä¿®æ£ãè¥æ²ãªæµ·å²žãè¥ãåŠå¥³ããã®ä»ã®åã³ãäžéžãããããšããŠããŸãã
TDDã¯è©³çŽ°ã«ã€ããŠçŒãä»ããæäŸããŸãããããŸã倢äžã«ãªããªãããã«ããŸãã ãã®æ°ãæžããããã«ããŠãã ããã èšãæãããšãã³ãŒãèªäœãæžãããŠããã®ãšåãèšèªïŒæãéèŠãªã®ã¯å€§æåã®åäœãã¹ãïŒã§åäœãã¹ããæžããŠãã ããã
ãªãããããã¹ãŠã®æµ·å€TDDããããŸããïŒ
TDDãšã¯äœã§ããïŒ ããããããããèšèšææ³ãšèããããšæããŸãã ã€ãŸããåäœãã¹ãã®éçºè ã¯ãæ€èšŒã®éèŠãªç®çãæãããŸãã ãã ããã³ãŒãã®æ£ç¢ºæ§ãæ€èšŒããããšã«åæããå¿ èŠããããŸãã ãããã£ãŠããã¹ãŠã®èªå°å¿ã®ãããããžã§ã¯ãã¯ãåãå ¥ããã¹ããšèŠä»¶ãã¹ãã匷å¶ããŸãã åäœãã¹ãã¯åŒ·åãªåºç€ã§ãããå šäœãé©åã«æ©èœãããããã«å¿ èŠã§ãã ããã«ãããTDDã䜿çšããŠéèŠãªããšã«éäžã§ããããã«ãªããæ®éçãªæåãåã³ããããŠå€é¡ã®ãéã«ã€ãªãããŸãã ããªããèšããã®ã¯äœã§ãã楜åã
TDDã®ãã1ã€ã®éåžžã«åªããæ©èœã¯ãããèªäœãã¿ãŒã²ãããæ€èšŒããåªããæ¹æ³ã§ããããšã§ãã TDDã§ã¯ãåäœãã¹ããšã³ãŒãèªäœã®äž¡æ¹ã§ãç®æšã2åæå®ããå¿ èŠããããŸãã ãããŠããããã調åããŠé©åããå Žåã«ã®ã¿ãç·ã®ã©ã€ã³ã楜ããããšãã§ããŸãã
åãå ¥ãã³ãŒã
ã³ãŒãã«ãã¬ããžã¯éåžžã«äŸ¿å©ãªææ³ã§ãã ãã£ãŒãããã¯ãä»ããŠè¿œå æ å ±ãååŸããããã«äœ¿çšãããŸãã åäœãã¹ãã®å質ã«é¢ããæ å ±ã åæã·ã¹ãã èªäœããã«ãã«é 眮ããå¿ èŠããããŸãã ãããã£ãŠãåäœãã¹ããéå§ã§ããã¬ããŒãèªäœã¯1ã€ã®ããŒã ã§åä¿¡ãããŸãã ãã ããå°ãªããšãã¢ãžã¥ãŒã«ã®å°ãªããšã1ã€ã®ããŒãžã§ã³ãå®å šã«çµäºãããŸã§ãåæã«å€¢äžã«ãªã£ãŠã¯ãããŸããã
è¯ãããšã¯ããã·ã³ãããªãã倱æããããŸã§ãã«ãŒã«ã«åŸã£ãŠäœåºŠãã³ãŒãããŸã æžããŠããªããšããäºå®ã®ããã«ãTDDãããªãã«100ïŒ ã®ããŒã¿ãïŒçè«äžïŒäžãããšããããšã§ãã
ã³ãŒãã«ãã¬ããžã¯ãããå€ãã®æ å ±ãååŸããå£ãããŠã£ã³ããŠãä¿®æ£ããããã«å¿ èŠãªãã®ã§ãã
å£ããçª
ãŸãããªãã¬ãŒãã£ã³ã°ã·ã¹ãã ãæå³ãããã®ã§ã¯ãªãããšã«æ³šæããŠãã ããã å£ããçªãçé¢ã§ã§ããŸãã ãããã«ã€ããŠã話ããŸãã å¿çåŠã«ã¯ãã®ãããªèå³æ·±ãå®éšããããŸãã 家ã®çªã1ã€å£ããŠä¿®çããªããšãæéã®çµéãšãšãã«å®¶ã®ãã¹ãŠã®çªãå£ããŠããŸããŸãã
ãããŠããã«ITããããŸããïŒ ããªãã¯ãã§ã«ç§ãããããã¹ãŠãå°ããŠãããã®ãæšæž¬ããŠããããã«æããŸãã åäœãã¹ãã®ãªãã¯ã©ã¹ã¯ãå£ãããŠã£ã³ããŠãšåŒã°ããŸãã 圌ãæçµçã«è¡ãããšã¯ãåäœãã¹ããè¡ããªãäœåãªçç±ãæšãŠãããšã ãã§ãã ãããŠãããã¯ãŸããŸãæªåããŸãã
ã³ãŒãã¯ãã¹ããšåãèšèªã§æžãããŠããªãããïŒã»ãšãã©ã®å ŽåïŒããŠã£ã³ããŠãä¿®æ£ããã®ã¯å°é£ã§ãã
ãã£ãŒãšã¯ãããŒä»¥å€ã®é©åãªTDDãã©ã€ããŒã®å察åŽã«ã¯äœãåŸ ã£ãŠããŸããïŒ æ¢ã«ååšããããã°ã©ã ã®æ¡åŒµãšããã°ãã®æ©äŒã ããšããšãã¹ãèšèªã§æžãããŠããããã ãããã£ãŠãå¿ èŠãªãã¹ããæžãç¶ããã ãã§ãç±ãã«ã¢ã¡/ã³ãŒããŒ/ããŒã«/çœchã飲ã¿ã竹ãåžãããšãã§ããŸãã ããªããæããªããããªãã¯çªå šäœã®æå³ãç¥ã£ãŠããŸããããªãã¯ååž°ã§ãã®åé¡ã軜ãã¹ãã€ã¹ããããšãã§ããŸãããããŠãããã«ããã¯ãããŸã-幞çŠã ã¯ããã³ãŒããäœæãããŠããã以åã«ãã¹ããããŠããªãå Žåãéåžžã«é¡èã«ãªããŸãã ãŠã£ã³ããŠã¯çªç¶é³ŽããŸãããæ°ä»ããªãããšã¯ãããŸããã
ãœãããŠã§ã¢ã±ã¢
ãªããŠãã£ãããœãããŠã§ã¢ã«åžžã«ããããåœãŠããããªãªãŒã¹åŸã«ãœãããŠã§ã¢ã®äžè©±ããããããã®ãã©ãã»ã©èŠçãªã®ããªã©ã ãã ããTDDã䜿çšãããšããã®ããã»ã¹ã®çã¿ã軜æžã§ããŸãã ãããã®å°ãããŠè¶ é«éã®çžäºäœçšã®ãããã§ããœãããŠã§ã¢ã¯æåããã¡ã³ããã³ã¹ã®æºåãã§ããŠããŸãã ã¯ãããããŠãããã¯ãã¹ãŠãã«ããã ã·ã®é§é€ã«äŸ¿å©ã§ãããšèšããŸãã
ã§ã¯ãã©ã®ããã«ããŠå€æŽãæåãããã®ã§ããããïŒ TDDã䜿çšãããšãå¿ èŠã«å¿ããŠãã¹ãŠã«åŸãããšãã§ããŸãã ã€ãŸãããŠããããã¹ããšçŸåšåæã«ãã¹ããããŠãããŠããããå€æŽããªãã§ãã ããã äœããå€æŽããå¿ èŠãããå Žåã¯ããããã亀äºã«ããŸãã ã€ãã³ãã®æ£ãããããŒã¯æ¬¡ã®ãšããã§ãã
- å¿ èŠãªå€æŽãåæãã
- åäœãã¹ããå®è¡ãã
- ãããã®è©³çŽ°ãæžã
- å€æŽããå¿ èŠããããã®ãç解ããŸãã æ £ããŠããTDDæé ã«åŸã£ãŠãã ãã
- åå©ïŒ
TDDã®æšå¥šäºé
TDDã¯éåžžã«å³ãããã®ã§ãããå³ãããã®ã¯ãã¹ãŠç°¡åã«æãèœã¡ãŸãã ãããã£ãŠãçã®ããŒãã³ã¢TDD-shnikã«ãªãããå Žåã¯ãããéãã®äŸ¡å€ããããã®ã®ãªã¹ãããããŸãã
- ãŠãããã³ãŒããšãã¹ã察象ã®ã³ãŒãã¯åçã§ããå¿ èŠããããŸãã
- åäœãã¹ãã¯ãããšãã°ã¢ãã³ãšåããããå°ãããç¬ç«ããŠããå¿ èŠããããŸãã
- æ°žç¶çãªååã䜿çšããŸãã ããªããæ £ããŠãããããã¯ã ãããã£ãŠãããã²ãŒã·ã§ã³ãå€§å¹ ã«ç°¡çŽ åãããŸãã ãã¹ããããŠãããã«å¿ããŠããŠããããã¹ãã«ååãä»ããŸãã
ç§ãã¡ã¯äœãåŠã³ãŸãããïŒ
ãã¡ãããTDDã¯äžèœè¬ã§ã¯ãªãã®ã§ããã®ææ³ãçããã®ãã¹ãŠã«é©çšãã¹ãã§ã¯ãããŸããã ãããŠãã¡ããã圌女ã¯æéã®äžã§ä»ã®ãã¯ããã¯ãå ¬éããŸããã TDDã¯ããªãã®ããã ãã«ãããããªãã«åã£ãŠããã°ããã䜿ããŸãã ãã ããTDDã¯ããªãªãŒã¹ã®æ°æéåã«ã·ã§ããã¬ã³ããã±ããã©ã³ãã£ãŒã®ãã°ãçºå°ããŠãçã£ãããã«æ¯ãèãæãèµ°ããããééããªãåªããŠããŸãã ãããããã®é¢çœãããã»ã¹ããã¯ããã¯ãšã¯åŒã³ãŸããã ç§ã«ãšã£ãŠã¯ãããã¯ãã ã®äºå®å€ã®ã¢ã¯ã·ã§ã³ã§ããã£ã±ãé¢çœãç®æšãæã£ãŠããŸãã
TDDãå®éã«è¡ãã®ã¯ããã¹ãããã»ã¹ãšéçºããã»ã¹ã®äº€æã§ãã åæã«ãé«å質ã®èšèšãšããã»ã¹ã«ãããåªããèªèã®äžéç¹ãèŠã€ããŸãã ããããTDDã«ã¯èŠåŸãšæ±ºæãå¿ èŠã§ããããšãå¿ããªãã§ãã ããïŒæ±ºããŠïŒã
ããããã©ããªäººçã®ç¶æ³ã§ãããã§ãããéžæã¯å®å šã«ããªã次第ã§ãã ç§ã¯ããªãã®ãã¹ãŠã®åªåã§å¹žéãç¥ãã顧客ãããªããæãããªãããã«ããæŸèæãåºããŠãäžå¿«ãªäºçŽ°ãªããšã®ããã«ããã»ã¹å šäœãé ç³ã«é£ã¶ããã«ããŠãã ããïŒ ãã¹ãŠã®åã®å ç·ïŒ