java-jaæå¹ã§ãã¾ãã!?
åææ¥ã®ä»¶ã§ããjava-jaã®åå¼·ä¼ï¼ç¬¬ï¼åTDDä¼ï¼ãustã§ã¿ã¦ãã¾ããã
ãã¢ãã+TDDã§å®éã«ããã°ã©ãã³ã°ãããã¨ãã¡ã¤ã³ã¨èãã¦ããã®ã§ustã§ã¯ãã¾ãæå¾
ã¯ãã¦ããªãã£ãã®ã§ããã観ã¦ã¿ãã¨t_wadaæ°ã®ã»ãã·ã§ã³ãäºæ³ä»¥ä¸ã«é·ãã¦é常ã«æ¥½ããã¾ãããããã§èããTDDã®ããããèå³æ·±ã話ã®ã¡ã¢ã¨ããã®ã¾ã¾ã®ããªã§æ¥ææ¥ã«ãã£ã第ï¼åjava-jaæå¹ã®ã¬ãã¼ãããéããã¾ãã
TDDï¼ãã¹ãé§åéçºï¼
TDDãç´¹ä»ããã¦ããéåã¨çµã¡ã¾ãã®ã§è©±ã«ã¯èãã¾ããã§ãããå®è·µã¯ãã¦ããã¨ãªãã¨ãã人ãå¤ãé½å¸ä¼èª¬ã¿ãããªãã®ãTDDãã¨æãã¾ããèªåãRuby on Railsã§ã®éçºã®æã«ï¼åãã£ãç¨åº¦ã§ããé
åã¯æããã®ã§ããæéã«è¿½ããããããæ¹ã解ããªãã£ããããªã«ããå¨ãã«å®è·µãã¦ãã人ãå°ãªãã®ãåå ã§ãããã
以ä¸ã¯t_wadaæ°ã®è©±ãã¦ãããã¤ã³ãã®ã¡ã¢ã§ããustã§èãã«ããå ´æã¨ãããã£ãã®ã§å
¨ã¦ã¯ç¶²ç¾
ãã¦ãã¾ãããåå¿é²ã¨ããå½¢ã§ç°¡åã«ã¾ã¨ãã¾ããã
TDDã®ãã¤ã³ã
- ãªãã¡ã¯ã¿ãªã³ã°ãä¸çªéè¦ã
- ãã¹ãã¨è¨ã£ã¦ããããã°ã©ãã®ããã°ã©ãã«ããããã°ã©ãã®ããã®ãã¹ããè¡ã
- ããã¾ã§éçºãè¡ããªããã®ãã¹ããªã®ã§åå ¥ãã¹ããªã©ã¨ã¯ç°ãªãï¼å¥ç©ï¼
- TDDã¯ãã¹ãææ³ã§ã¯ãªããéçºææ³
- TDDã¯å質ã¯ä¿è¨¼ããªãï¼å質åä¸ã¯ããï¼
- ã¹ã¼ãã¼ããã°ã©ãã«ã¯ä¸è¦ãå¡åº¸ãªããã°ã©ãã®ããã®æ段
綺éºã§åä½ããã³ã¼ãã¸ã®é
- ãæ±ãã¦åããªããã³ã¼ãããã綺éºã§åããã³ã¼ãã¸å¤ãã¦ããã«ã¯ï¼ã¤ã®éãããã
- 綺éºã«ãã¦ããåããããåããã¦ãã綺éºã«ããã
- TDDã¯å¾è ï¼åããã¦ãã綺éºã«ããï¼ã®ã¢ããã¼ããã¨ã
- 綺éºã«ãã ï¼ ãªãã¡ã¯ã¿ãªã³ã°ï¼ãã¹ãããªãã¡ã¯ã¿ãªã³ã°ãæ ä¿ï¼
- ã¬ãã-ã°ãªã¼ã³-ãªãã¡ã¯ã¿ãªã³ã°
ã½ããã¦ã§ã¢éçºã®ï¼æ¬æ±
ã©ããæãã¦ããã¾ãåããªãã
- ãã¼ã¸ã§ã³ç®¡çã·ã¹ãã
- ãã¹ãã£ã³ã°
- èªåå
TDDã®ããã
- ï¼ã¤ãã¤å°ããã¤
- ãã°ããã¾ãããã¨
- èªåãæåã®ã¦ã¼ã¶ã¨ãªã
- ãã¹ãããããªããã¨ã§ä¸å®ããªããªãï¼ã»ãã¿ã¼çã¯ä¸å®ãç¡ãã®ã§ãã¹ãä¸è¦ï¼
第ï¼å æå¹java-ja
å
é±ã®æ¨ææ¥ããããããæ¥ææ¥ã«ãããéã¾ã£ã¦éè«ãã³ã¼ãã£ã³ã°ããªã«ãããããã¨ãã話ãããã¾ããããªã«ããããã¯æªå®ã ã£ãã®ã§ãããèªåãåææ¥ã«java-jaã«ææããçºã«æ¥ææ¥ã¯æå¹java-jaã®éå¬ã¨ãªãã¾ãããå°ãåæã«éå¬ãåä¹ã£ã¦ãã¾ãããã¾ã£ãããã£ã¦è¨±å¯ãåã£ã¦ãã¾ããã
å ´æã¯ã¢ã¤ã«ãã§ã®ã·ã¢ã¿ã¼ã«ã¼ã ã使ç¨ãã¾ãããç¡ç·LANãããé»æºã確ä¿ã§ããããªã¼ããªã³ã¯ã§ãã«ããã»ãã¼ãããã»ã½ããã¯ãªã¼ã ãé£ã¹ããããããï¼æéã§ï¼ï¼ï¼ï¼åã¯ã¾ãæªããªãå¤æ®µãã¨æãã¾ããã·ã¢ã¿ã¼ã«ã¼ã ãªã®ã§å¤§ç»é¢ï¼ï¼ï¼ã¤ã³ããããï¼ï¼ã®ç»é¢ãããã®ã§ããã¸ã§ã¯ã¿ä»£ããã«ã使ç¨ã§ãã¾ããåé¡ãããã¨ããã°ãå®å¡ãï¼ãï¼åç¨åº¦ã£ã¦ãã¨ã§ãããã¾ã£ããã¨ãã¢ããããã«ã¯ï¼ãï¼äººãã¡ããã©ããã®ã§ããããå½æ¥ã¯ï¼åãéã¾ãã¾ããã
ã¯ããã¦ã®ãã¢ãã
軽ãèªå·±ç´¹ä»ãããå¾ã«ãã¢ããã§ãããé¡ã¯ã©ãããããèããã®ã§ãããwikiãã©ã¼ãããã®æååãhtmlã«å¤æããã¯ã©ã¹ãä½ãäºã«ãªãã¾ããã
ãã¢ããèªä½ã¯ï¼äººä¸ï¼äººãçµé¨ãããJavaã¯åãï¼åãçµé¨ããã§ããï¼åãã©ã¡ãããªãã§ãããªã®ã§çµã¿åããçã«ã¯çµé¨è
ï¼æªçµé¨è
ã¨ãããã¢ã§è¡ãã¾ãããã¢ããããã£ã¦ã¿ãã¨ãããã®ã§ãããå®ã¯çµé¨å·®ã®ãããã¢ã®æ¹ãå°ãªãã¨ãå¦ç¿ã¨ãã¦ã¯ãã¿ã¼ã§ããæªçµé¨è
ã¯çµé¨è
ã®æãçãã¾ãããçµé¨è
ãæªçµé¨è
ãã©ãã§è©°ã¾ãã®ããç¥ããã¨ãã§ãã¾ãããã®ãã©ãã§è©°ã¾ãããã«é¢ãã¦ã¯ç¹ã«ããã¸ã§ã¯ã管çï¼ãã¼ã ãªã¼ãã¼ï¼ã®ç«å ´ããããã¨ãå
¨ä½ã®å質åä¸ã¨ãã¼ã ã®å¹çã¢ããã«ç¹ããéè¦ãªãã¤ã³ãã§ãã
ã¾ãã¯ãã¹ãã¯ã©ã¹ãä½æã¨ããã¨ã§JUnitã使ã£ã¦ãã¹ãã¯ã©ã¹ãä½ãã¾ãããã®è¾ºãã§Eclipseã®çµé¨ããªã人ããããã¨ä¸æè°ãªä½æ¥ã®ããã§ãããªã«ããCtrl + 1ãæ¼ãã°æ¬¡ã«ããä½æ¥ã¯ãã ããããã£ã¦ããã®ã§ãããEclipseã¯æ¬å½ã«ç©ºæ°ã®èªããåã§ãããå°ãä»åã¯ãã¢ã§ï¼ã¤ã¥ã¤ä½æ¥ãããå¥ã®ãã¢ãã¾ãï¼ã¤ã¥ã¤ä½æ¥ãããå½¢ãåãã¾ãããå°äººæ°ã®å ´åã§ã¾ã ãªãã¦ããªãå ´åã¯ãã¢ï¼å観è ã¨ããå½¢ã§ããæ¹ãæµããã¤ããã¦ããããããã¾ããã
ãªãã¸ããª
ã³ã¼ãã®å ±æã«ã¯SVNã®ãªãã¸ããªãç«ã¦ã¦å¯¾å¿ãã¾ãããï¼ã¤ãããªãã¯ãªå ´æã«ãªãã¸ããªãç«ã¦ã¦ããã¨åå¼·ä¼ãªã©ã§ã¯ä¾¿å©ã§ãã®ã§ããªã¹ã¹ã¡ã§ãããªãã¸ããªã®URL㯠http://www.deathmarch.jp/svn/sjc/wiki_engine/trunk/ ã«ãªãã¾ããä¸åºåãã¤ãããã³ãããã¨ãããµã¤ã¯ã«ã§ãã£ã¦ãã¾ããã®ã§ãéä¸çµéãªã©ã確èªãããæ¹ã¯ã覧ãã ããã
ææ³
ã¾ãï¼åã¨ãã人æ°ã¯ã¡ããã©è¯ãã£ãã§ãããã¶ãï¼ãï¼åãé¨å±ã®ãã£ãã·ãã£çã«ããã¢ããã®ãããªã¯ã¼ã¯ã·ã§ãããããã«ãæé©ãªäººæ°ãªã®ããããã¾ãããä»å¾ãåå¼·ä¼ããªããããªæ¥ãªã©ãã¡ãã£ã¨ä½äººãéãã¦åå¼·ä¼ã¨ããã®ã¯ãã£ã¦ããããã§ãããæ©åååè² ã§ãããåæ¥ã«åéã¨ãããã§ãããã
次ã«ãé¡ã§ããåå è
ã®ã¬ãã«ã«ãä¾åãã¾ããããªã«ããããã¯ä¸çªéè¦ããããã¾ãããä»åã¯Wikiã®ãã©ã¼ãããå¤æã ã£ãã®ã§ããããã¹ãã±ã¼ã¹ãä½ãã®ã¯é常ã«ç°¡åã§ãããã¨ããããå®è£
ã¯æååå¦çã«ãªããªããªã骨ãæããã¨ããã ã£ãã§ããä»ã«ãã·ã§ããã³ã°ã«ã¼ãçãªã¯ã©ã¹ã¨ãè¨ç®æ©ã¨ããããã¨æãã¾ãããå¹¾ã¤ããã¿ãç¨æãã¦ããã¨è¯ããªã¨æãã¾ããã
ãã¢ããã«é¢ãã¦ã¯æ¦ã好è©ã§æ¥½ããã§ããããã§ããé½å¸ä¼èª¬ãã¨æãããã¡ã§ãããä¾ãä»äºã§åºæ¥ãªãã¨ã趣å³ã§ãã¢ããã£ã¦ã®ãè¯ãã®ã§ã¯ãªãã§ããããï¼
KPT
Keep
- çªçºã§ã大ä¸å¤«
- ã¨ã«ããéå¬ãããã¨ãéè¦ã
- ãã¢ããã¨TDDãããï¼
Problem
- ãã¿ã¯ãããããç¨æãã¦ãã
- Eclipseã®ãã©ã°ã¤ã³ã¨ãã¤ã³ã¹ãã¼ã«ãå¿ è¦ãªãã®ã¯ãããããæºå
- ä¼å ´è²»ã¯ã¡ãã£ã¨é«ãã ãã©ãããªã¼ããªã³ã¯ã¨ããã¤ããããã»ã»ã»
Try
- 次ã®ãã¿ã¯ç¨æãã¦ãã
- ãªãã¸ããªã«Eclipseã®ããã¸ã§ã¯ããç¨æãã¦ãã
- SVNãã©ã°ã¤ã³ãQuickJUnitã®ã¤ã³ã¹ãã¼ã«æ¸Eclipseãç¨æãã¦ãã
- ã²ã¹ãå¼ã³ãããª