ã¤ãã³ãã«åå ãããçæ§ããããã¨ããããã¾ããã
ããã¦ãä¼å ´ãæä¾ãã¦ãã ãã£ãæ ªå¼ä¼ç¤¾ãã¯ã³ã´ãã¾ãããã¦ä¼å ´è¨å¶ãé ä¿¡è¨åçã ãå°½åããã ãã coji ããã«ã礼ç³ãä¸ãã¾ãããããã¨ããããã¾ããã
ä¹ ãã¶ãã® java-ja ã§ãããã java-ja ã¯ãã¯ã java-ja ã§ããã話ãã¦ãã¦æ¬å½ã«æ¥½ããã£ãã§ããã¾ã¨ããã¨ã TDD ã¯é»éã®å転ãªã®ã§ã¿ã㪠SBR(Steel Ball Run) ãèªãã§ãã ãããã
å½æ¥è³æã¯ãã¡ãã§ã(ã¾ãã slideshare ã®åãè¾¼ã¿ã«å¤±æããªãã ãã?)
ãã¢ããã®ãã¢ã¯ id:kompiro ã¨ãµããã§è¡ãã¾ãããid:kompiro ã¯åæ¥ Twitter ã§ç¡è¶æ¯ãããã«ãé¢ããã快諾ãã¦ããã¾ããããããã¨ããããã¾ããEclipse ã®ã·ã§ã¼ãã«ããæ©è½ã Quick-JUnit ãã©ã°ã¤ã³ããã㦠Kent Beck ãéçºãã¦ãã JUnitMax ã®ãã¢ãè¡ãã¾ããããªããªãé¢ç½ããã¢ãã & TDD ãã¢ãåºæ¥ãã®ã§ã¯ãªãããªã¨èãã¦ãã¾ãã
åå è å ¨å¡ã§è¡ããã¢ããã®ãé¡ã«ã¯åªå 度ä»ããã¥ã¼ããã¢ã§ä½ã£ã¦ãã¨ãããé¡ãåºãã¾ãããä¼å ´ãåã£ã¦ãããããªãã¢ã®ã³ã¼ããè¦ã¾ããããåãè¨è¨ã®ãã¢ã¯ä¸ã¤ã¨ãã¦ç¡ããæããã«ããã¨ãã¾ããããã¢ã§ç¸è«ãã¦è©¦è¡é¯èª¤ããªããã³ã¼ããæ¸ãã¦ããã¨ããçµé¨ããããã¨ããªãæ¹ã«ã¯ãé¢ç½ãçµé¨ã«ãªã£ãã®ã§ã¯ãªãããªã¨èãã¦ãã¾ãã
ä½é¨ãã¦ãããããã£ãã®ã¯ããã¹ãããå ã«æ¸ããã¨ã§ How ã§ã¯ãªã What ããèããã¨ããé ã®è»¢æãè¡ããã¨ã¨ããã¹ããéãæå°å®è£ ã¨ãªãã¡ã¯ã¿ãªã³ã°ãè¡ããã¨ã§å®è£ ãèªåãèããããããã£ã¨ã·ã³ãã«ã«ãªããã¨ã§ãããããããã¯ãããªãåºæ¥ãããã«ãªãã¨è¨ã£ã¦ãåºæ¥ãªããã®ã§ããããã£ã¦ãããã¡ã«ã ãã ãåºæ¥ãããã«ãªã£ã¦ããé¡ã®ã¹ãã«ã§ãããªã®ã§å½æ¥ã¯ãã®å ¥ãå£ãåé¡æèãæã£ã¦ãããã¨ããã«ç«ã£ã¦ãããã®ãç®æ¨ã§ããã
TDD ã¨ã³ã¼ãã®ã·ã³ãã«ãã®é¢ä¿ã¯ããå°ã強調ãã¦ãããã£ãããããã¾ãããJava ããæ¸ããããã¢ã»ã©ãæåããè¤éãªã³ã¼ããæ¸ãå¾åãããã¾ããããã®è¤éæ§ã¯ãæããã¦ãã®ã¨ãå¿ è¦ãã©ãããèãã¦ã¿ã¾ããããå¿ è¦ãããããªãããå¿ è¦ç¡ãããããã¾ããããã¡ãããè¤éããåé¡ãªããã§ã¯ããã¾ããããã¨ãã°è¤éã§æ±ç¨çãªãã®ãèããçµææãæ¢ã¾ãããããã¯ã³ã¼ãã«ç¡çãçãã¦ãã¾ããªãã°ã TDD ã®æ¨å³ãçããã¦ããã¨ã¯è¨ãã«ããã¨èãã¾ãã大äºãªã®ã¯ã·ã³ãã«ãã¨ãã£ã¼ãããã¯ã§ããå¿ è¦ãªã¨ãã«ãå¿ è¦ãªã ãã®æ±ç¨æ§ãæã£ãã³ã¼ããèãããæ¸ããã¨ããè¨ç·´ãã³ã¼ããå°ããç£ãã§å¤§ããè²ã¦ãã¨ããèãæ¹ããã£ã¨ä¼ãããã¨æãã¾ããã
ãã¡ãããã·ã³ãã« (simple) ã¨ãã¤ã¼ã (naive) ã¯éãã¾ããåç´ãªã³ã¼ããæ¸ãã°ããã¨è¨ãããã§ã¯ããã¾ãããããå¶ç´æ¡ä»¶ãæºããã·ã³ãã«ãªè¨è¨/ã·ã³ãã«ãªã³ã¼ããããä»æ§å¤æ´ãªã©ç¶æ³ãå¤ãã£ãæ°ããªå¶ç´æ¡ä»¶ä¸ã§ãã·ã³ãã«ããæºããã³ã¼ãã¸ãã·ã³ãã«ãªè¨è¨ã次ã®ã·ã³ãã«ãªè¨è¨ã¸ã¨ã¹ã ã¼ãºã«ã¤ãªãã§ãããã¨ã TDD (ç¹ã«ãªãã¡ã¯ã¿ãªã³ã°) ã®å§¿ã§ãããã®ãã¨ãä»å¾ã¾ãä¼ãã¦ããããã¨æãã¾ããè¬æ¼ã§ç§ããã£ã¨æèãã¦è©±ããªããã°ãªããªããã¨ãæããã¾ããããããã¨ããããã¾ãã
ã¾ãåçç¹ã¨ãã¦ãè¬æ¼ã§ã¯åãããã¾ããâ¦ç§ãåãããããããã§ãã¢ããæéãçããªã£ã¦ãã¾ãã¾ãããæ¬å½ã«ãã¿ã¾ããã§ããããªã®ã§å¯è½ã§ããã° TDD ä¼ç»ç¬¬ä¸åãè¿æ¥ä¸ã«ããããã§ããããã©ã¯ãã¢ããã®èª¬æã ãå°ããã¦ããã¨ã¯åå è ã¿ããªã§ãã£ã¨ãã¢ããã°ã©ãã³ã° & TDD ããã ãã®ä¼ç»ãããããã§ããã
話ãã¦ããã»ãã®ç§ã«ãå¦ã³ã沢山ãããå®ãã®ããã¤ãã³ãã§ããã java-ja ã«æè¬ãã¾ãããããã¨ããããã¾ãã! ã¾ãã¤ãã³ãããããã§ãã!