2012-12-01ãã1ã¶æéã®è¨äºä¸è¦§
TDDã®ãµã¤ã¯ã«ã¯Red-Green-Refactoringã§ãããã®ãªãã¡ã¯ã¿ãªã³ã°ã¯ããããã¯ãã³ã¼ãã¯ãã¡ããã§ããããã¹ãã«ãé©ç¨ããã¾ããããããã¹ãã®ãªãã¡ã¯ã¿ãªã³ã°ã«ã¯ããããã¯ãã³ã¼ãã®ãªãã¡ã¯ã¿ãªã³ã°ã¨éãã¨ãããããã¾ãããããã¯ãã³ã¼ãã®ãªâ¦
ä»åã¯ã©ã¤ãã²ã¼ã TDDãã®4ããã®1ããã®2ã¨ããã®3ã§èªçã®å®è£ ãã§ãã¾ãããåºæ¬çãªæ çµã¿ã¯ã§ãã¦ããã®ã§ãå®æã¾ã§ã¯éè¿ã§ãããããããããã¦ã³ã¼ããçºãã¦ã¿ãã¨ãç¹ã«ãã¹ãã³ã¼ãã®ã»ããã´ãã£ã´ãã£ãã¦èªã¿ã«ãããªã£ã¦ãã¾ãããããã¯ãâ¦
ãããã»ãã¨ã«æåã«Redã«ãããã§ããï¼æ¯åå¿ ã絶対ã«ï¼ãã¨èããã¾ããã²ã¨ãã¨ã§çãããªãããã¿ã¾ãããã¾ã«é£ã°ãã¡ããã¾ãä¸ãã¨ãããã§ããããã ãã©ãã»ã¨ãã©æ¯åRedãçµç±ããããã«ãã¦ããã®ããæ¬å½ã§ãããªãæåã«Redã«ããã®ããçç±â¦
ãã®1ããã®2ã¨ç¶ãã¦ãä»åã¯ã©ã¤ãã²ã¼ã TDDãã®3ã§ãããªããªãå®äºããªããèªçã®å¦çãå®æããããã¨æã£ã¦ããã¾ãããã©ããªããã¨ãããååã¯ã¹ãã¤ã¯ãã¸ã¦Cellã¯ã©ã¹ãæ½åºããTDDã§å®è£ ãã¾ããããã®ãããã®ã³ã¼ãã£ã³ã°ãæ¬æ¥ã¯TODOãªã¹ãã«â¦
åãããã°ã©ãã¨ã¯ãä»æ§æ¸ãä¸èªãã¦å 容ãå®ç§ã«ææ¡ããæ²æé»èãã¦å®ç§ãªè¨è¨ãè³è£ã«æããç¥éã®ãã¼ãã¼ããã°ãã§ä¸æ°ã«ã³ã¼ãã£ã³ã°ãçµããã¨ããã¼ã¨ã©ã¼ã§ã³ã³ãã¤ã«ãéãæå¾ éãã«åä½ããå®ç§ãªããã°ã©ã ãå®æããããããã¬ãªãã¦ã®ã¯â¦
ãã¦ãååã¯èªçã®ãã¹ããæ¸ããã¨ããã¾ã§ã§ãããããããã¯ãèªçã®å¦çãå®è£ ãã¾ãããã¹ãã®æ¸ãæ¹ã«ãã£ã¦ã¯ãä¸å¤®ã®1ã»ã«ã ãèããã°æ¸ãã§ãããããããªãã®ã§ããã3x3ã®ã°ãªããå ¨ä½ãã¡ããã¨å¯¾å¿ããªãã¦ã¯ãããªããªã£ã¦ãã¾ãã¾ããããâ¦
å®ã¯ã¢ããªã³ã°ã大好ãã§ããå ã ã¯ãªãã¸ã§ã¯ãæåããã°ã©ãã³ã°ãåå¼·ãã¦ããã¨ããããUMLã«(èªç¶ã«)èå³ãåãããããããªãã¸ã§ã¯ãæåè¨è¨ã¨ããªãã¸ã§ã¯ãæååæã¨ãããããèéã«ãã(èéã¨ãè¨ã£ããæããã!)ãä»æ§ãè¨è¨ãããããã¯â¦
ã¢ã¸ã£ã¤ã«ãªã½ããã¦ã§ã¢éçºãå°å ¥ããæä¼ãã¨ããä»äºã®ä¸ã§ããã¢ããã§TDDããã£ã¦ã¿ããã¨ããæ©ä¼ãããããã¾ããããæè¿ã®ããã£ã§ããid:haru01ã¨çµãã§ãã©ã¤ãã²ã¼ã ããã£ã¦ã¿ããã®ãå®çªåãã¦ãã¾ããã©ã¤ãã²ã¼ã ããã¼ãã«ãã¦ã©ããªãµâ¦
ããã°ã©ãã³ã°ã¯å¤§å¦çã®é ãããã¦ãã¾ãããããã«è¾¿ãã°å°å¦çããBASICã§ã²ã¼ã ãæ¸ããããã¦ããã®ã§ãæéã ãã§è¨ãã°30å¹´è¿ãããã°ã©ãã³ã°ããã¦ãããã¨ã«ãªãã¾ãã大å¦ã®ã¨ãã«ã¯ã¢ã«ãã¤ãã§ããã°ã©ãããã£ã¦ãã¦ãå°ãããªãã1ã·ã¹ãã â¦