Reset
第3åç®ãæ å½ããå°æã§ãã ä»åã¯ç§ãéçºããPerlã¢ã¸ã¥ã¼ã«ã®Test::Declareã«ã¤ãã¦ç´¹ä»ãã¾ãã Test::Declareã®ç¹å¾´ Test::Declareã«ã¯ã以ä¸ã®ç¹å¾´ãããã¾ãã ãã¹ãã³ã¼ããDSL風ã«ï¼å®£è¨çã«ï¼æ¸ãäºãéç¹ã«ç½®ãã¦ãã ããã«ãããã¹ãã³ã¼ãèªä½ã®è¦ããããåä¸ããããã¨ãã§ãã 宣è¨çã«ãã¹ããæ¸ãäºã«ãããä¸ä½ãªã«ãç®çã¨ãããã¹ããªã®ãããããããããªã Test::Declareã§ã¯ãTest::MoreãTest::DeepãTest::ExceptionãTest::WarnãTest::Outputã®functionãexportãã¦ããã®ã§ãTest::Declareã1ã¤useããã ãã§ããããã®ã¢ã¸ã¥ã¼ã«ã®functionãå©ç¨å¯è½ã¨ãªãã¾ãã ãããã®ãã¹ãã¢ã¸ã¥ã¼ã«ãæä¾ããfunctionã¯é常ãã使ããã®ã§ãã®ã§ã
ã¢ãã¤ã«ãã¡ã¯ããªã¼ã®ä¼åã§ãã ç§ã¯ä»åTest::Baseã¨ããã¢ã¸ã¥ã¼ã«ãç´¹ä»ããã¦ãããã¾ãã Test::Baseã¨ã¯ Test::Baseã¯ãKwikiãªã©ã®ä½è ã¨ãã¦ç¥ãããIngy döt Netæ°ãä½æããââ Data Driven Testing Frameworkï¼ãã¼ã¿é§ååãã¹ããã¬ã¼ã ã¯ã¼ã¯ï¼â âã§ãã ãã¼ã¿é§ååãã¹ãã¨ã¯ä½ãªã®ããå®éã®ãã¹ããè¦ã¦é ãã®ãä¸çªæ©ãã¨æãã®ã§ãæ©éå®éã«Test::Baseã使ã£ããã¹ããæ¸ãã¦ã¿ããã¨ã«ãã¾ãã ä»å使ããµã³ãã«ããã°ã©ã NabeAtzzåé¡ã解ãããã°ã©ã ãä½ãã¾ããNabeAtzzåé¡ã«ã¯ããã¤ãã®ããªã¨ã¼ã·ã§ã³ãããã¾ãããä»åã¯ä»¥ä¸ã®æ¡ä»¶ãæºãããã®ãã¨è¨ããã¨ã«ãã¾ãã 1ããnã¾ã§ã®æ´æ°ã«å¯¾ã㦠3ã®åæ°ã®æã¯ââ foolâ âã¨åºåãã 5ã®åæ°ã®æã¯ââ dogâ âã¨åºåãã ããããã®æ¡ã«3
ã¢ãã¤ã«ãã¡ã¯ããªã¼ã®æ¾éã§ãã ä»åããæ°åã«ããã£ã¦ãPerl ã«ããããã¹ãææ³ã«ã¤ãã¦ãªã¬ã¼å½¢å¼ã§è©³ç´°ã«è§£èª¬ãã¦ããããã¨ãããã¾ãã ä»åã¯ååã§ãã®ã§ããã£ããã¨æ¦è«ã«ãªãã¾ãã Perlã®ä¸çã«ããããã¹ãã®éè¦æ§ Perlã®ä¸çã«ããã¦ã¯ãã¹ãï¼testï¼ã¯å¤§å¤éè¦è¦ããã¦ãã¾ãã ãã®ç¹å¾´ããã表ãã¦ããã®ãCPAN Testersã§ã¯ãªãã§ããããã CPAN Testers Perlã¨ããã°ä½ã¯ãªãã¨ãCPANãªããã§ãããCPANã§ã¢ã¸ã¥ã¼ã«ãæ¢ãã¦ããã¨ãå³1ã®ããã«ããâ CPAN Testersãã¨ããé ç®ããããã¨ã«æ°ä»ãã¾ãã å³1ãCPAN Testers ä¸çä¸ã®Perl Mongersããèªåã®ãã·ã³ã§ãã¹ããåããã¦ããã®çµæãCPANã«éã£ã¦ããã®ã§ããããã«ãããæ§ã ãªOSï¼CPUï¼versionã®Perlã§ãã¹ããããã¦ãã¾ããè²´æ¹ãæ°è»½ã«CP
Rubyã®åå¿è ã«ãããã¦ãããã¯èªãã¹ããã ã¨æãã³ã¼ããæã⦠- 人åæ¤ç´¢ã¯ã¦ãª ä»åç£æ¥ã§ã¯ãªããè¶ è¦ç´ãã¦ã¿ãã Rubyåå¿è ã¯ã¾ãææ³ãåºæ¬çãªã¯ã©ã¹ãç¿å¾ããã åç´è ãªãã°mailread.rbãªã©ã®ç°¡åãªã©ã¤ãã©ãªãèªãã§ã¿ããã ä¸ç´ãããããã¯WEBrickãBitChannelã®ã½ã¼ã¹ãããã ããã¦ããªãã¨ãã£ã¦ããåãã¤ããããªãã°ã½ã¼ã¹ãæ¹é ãã¦ã¿ãã®ãä¸çªã ãæ¹é ãããã ããã½ã¼ã¹ãç解ããªãã¨ãããªãããæ¸ãåãé¤ãããã俺ã¯ãèå³ããããã°ã©ã ãæ°ã«å ¥ã£ãããã°ã©ã ããããããããããªããªãã好å¥å¿ãããããã¢ããã¼ã·ã§ã³ãä¿ã¡ãããã ãã£ã±ãæ¹é ä¸çªã ããªãâ¦æ¸ç±ã®ãµã³ãã«ã³ã¼ãã¯ã¹ãã¼ã¹ã®é¢ä¿ã§ãããã¥ã¢çã«ãªã£ã¦ãããããã¾ã§ãä½ãããä¾(contrived example)ãã«éããªããã ãããçããã½ã¼ã¹ã³ã¼ãã«ã¯ããªããªããããã 俺ã¯e
Rubyã®åå¿è ã«ãããã¦ãããã¯èªãã¹ããã ã¨æãã³ã¼ããæãã¦ãã ããã ããã°ã©ã ã®åå¼·ã®éã«è¯è³ªãªã³ã¼ããèªãããããããããã®ã§ãããã©ã®ã³ã¼ããèªãã°ããã®ããããã¾ãããåèã«ãªãã³ã¼ããã©ã¤ãã©ãªãããã¾ãããæãã¦ããã ããã¨ããããã§ãï¼ é¢é£ï¼http://q.hatena.ne.jp/1205797404
g:catalystã§æ¸ããã¨æã£ããã©ãã¡ã㧠Catalystãã³ã¢ã«éçºãã¦ãã人ãã¡ãPluginã®ä½¿ããæ¹ã«åé¡ãæãã¦ããï¼ãã¾ã¾ã§ã®å¾åãåé¡ãæãããã¨ãèªèãã¦ï¼ã¡ããã¨åèãã¦ããã¨ããã®ã¯ããããã¨ã ã¨æãï¼ãã®åããPerlã«ããããã¬ã¼ã ã¯ã¼ã¯ã®ããæ¹ã¨ãããã®ãåæ§ç¯ãã¦ããã®ã ã¨æãï¼åªããglueã¨ãã¦ã®Perlãåèªèããæµãã«ããªãããããªãã ãããï¼Perlã³ãã¥ããã£ã®è¯ãã¯ããããæµãããããã¨ãã¡ããã¨ä¼ãããã¨ãã人ãåºã¦ãããã¨ã ã¨æã Babytalkã許容ã§ãããã©ï¼ãããæè¯ã§ã¯ãªããã¨ãèªèããå¿ è¦ãããï¼ããã¯Perlããã£ã¦ããä¸ã§å¤§åãªãã¨ã ã¨æã Perlã®ããã¨ããTMTOWTDIï¼ããæ¹ã¯ä¸ã¤ã§ã¯ãªãï¼ãã人ãã¡ã®ããæ¹ã§åå¿è ãè縮ããå¯è½æ§ãããã®ãªãï¼åå¿è ãæ¾ãä¸ãã人ãã¡ãããã°ããï¼ã¿ããªãããããã®ããæ¹ã§ï¼
Javaã®ç»å ´ã«ãã£ã¦ãªãã¸ã§ã¯ãæå(以ä¸OOP)ã¯ä¸æ°ã«æ®åãã¾ããã ãã®Javaããªãªã¼ã¹ã1996å¹´ã¨ããã¯ãå¹²æ¯ãå»»ããããã®æãçµã¡ãOOPãæ±ããæè¡è ãå¢ãã¾ããã 身è¿ãªã¨ããã§ãOOPã使ãã人ãè¦ã¤ããå¯è½æ§ã¯é«ããªãã¾ããããå¦ç¿ãããè¡ããããç°å¢ã«ãªã£ã¦ãã¦ããã¨æãã¾ãã ããã§ãOOPã解ããããã®å£ã¯åãã¨è¨ããããå¾ã¾ããã éçãªãã¸ã§ã¯ãæåã¯è¨è¨è ãè¦å´ãèè² è¾¼ãã·ã¹ãã ã®ç¨¿ã§ã¯ Javaã®éçãªãã¸ã§ã¯ãæåã¨ããã®ã¯ãã¯ã©ã¹ãè¨è¨ããå´ã®ç«å ´ã«ç«ã¤ã¨é常ã«è¦å´ãããã®ãªã®ã§ãããã¯ã©ã¹ã使ãå´ã«ã¯é常ã«æ¥½ãªãã®ãªã®ã§ãã Javaçéã§ä»äºãããä¼ç¤¾ã®æ°äººæè²ã¯ããã®ãã¯ã©ã¹ã使ããã¨ãã§ãããã¬ãã«ã¾ã§å°éåºã¦ããã°ããã¨ããã¦ããã¨è¨ã£ã¦éè¨ã§ã¯ãªãã§ãããã ã¨ãOOPã§è¨è¨ãããã¯ã©ã¹ã®ã使ãæãã¨ãä½ãæãã«æ±ããããæè¡åã®å£ã
å°ç温æåã¯ãéåé¡ãã ã¨æãããç³æ²¹ã®æ¯æ¸ã¯å¿ ãèµ·ãããç³æ²¹é£çã¯ããã70å¹´å¾ã ã¨ããããããã¯ãéãæ°´ãã®ããã«å éããããã®ã§ãç¾å¨ã®ããã«åæ²¹ä¾¡æ ¼ãä¸ããã°ããã£ã¨å¯¿å½ã¯å»¶ã³ãã ãããããã«ãã¦ãæéã§ãããã¨ã¯äºå®ãªã®ã§ããã®ä¾¡æ ¼ãä¸ãããã¨ã¯é·æçã«ã¯æã¾ããã 温æåã«ã¨ã£ã¦ãç³æ²¹ã®æ¯æ¸ã«ã¨ã£ã¦ãããã¹ãã®ä»£æ¿æ¡ã¯åååã ãããä¸å¹¸ãªäºæ ããã£ããããä¸æã¯åååç£æ¥ã¯å£æ» ããããå®éã«ã¯ã¹ãªã¼ãã¤ã«å³¶ã¯çå¿æº¶èã§ã¯ãªãã£ããæ大ã®çå¿æº¶èã§ãããã§ã«ããã¤ãªäºæ ã¯ãé»éæ¸éçã¨ããå¤ãæè¡ã§ãæ ¼ç´å®¹å¨ããªã裸ã®ç¶æ ã§ææ¥ãã¦ãããå é²å½ã®ååçã®å®å ¨è¨è¨ã¯ããããããã¯ããã«é«åº¦ãªã®ã§ãååçäºæ ã§æ»ã¬ç¢ºçã¯éç³ã«å½ãã£ã¦æ»ã¬ç¢ºçããä½ãã ã¨ã¯ãã人ã ã®ãªã¹ã¯æ 度ã¯ç¢ºçã§ã¯æ±ºã¾ããªãã®ã§ãçå¿æº¶èãè«ççã«èµ·ããããªãè¨è¨ã«ããå¿ è¦ããããããã¯å¯è½ã§ãååçã®åºå
Perlå ¥å¦å¼ å ¨6åã®Perlå ¥éè¬åº§ãæ±äº¬ã大éªãæ²ç¸ãæå¹ã§éå¬ã(æ±äº¬ã¯4æã¨10æã¹ã¿ã¼ãããã以å¤ã¯5æã¹ã¿ã¼ã) YAPC::Japan Perlã軸ã¨ããITã«é¢ããå ¨ã¦ã®äººã®ããã®ã«ã³ãã¡ã¬ã³ã¹ã æ±äº¬ å祥寺.pm äºåç°.pm å¤§éª ãªã«ãPerl æ²ç¸ æ²ç¸.pm
Perl ⺠ãµãã«ã¼ã㳠⺠here Perlã®ãµãã«ã¼ãã³ã®ç¹å¾´ãã¾ã¨ãã¦ããã¾ããCè¨èªã¨æ¯è¼ãã¦ã¿ã¾ãããPerlã®è¨èªã¨ãã¦ã®æè»æ§ãç解ã§ããã¨æãã¾ããâ»1 Perlã®ãµãã«ã¼ãã³ã®ç¹å¾´ Perl Cè¨èª 1 ãµãã«ã¼ãã³ã®å®ç¾©ã¯ã©ãã§è¡ã£ã¦ãè¯ã ä¸è¬çã«ãé¢æ°ã®åæ¹å®£è¨(ãããã¿ã¤ã宣è¨)ãå¿ è¦ 2 å¼æ°ã®åã宣è¨ãã¦ããå¿ è¦ããªã å¼æ°ã®åã宣è¨ãã¦ããå¿ è¦ãããã 3 æ»ãå¤ã®åã宣è¨ãã¦ããå¿ è¦ããªã æ»ãå¤ã®åã宣è¨ãã¦ããå¿ è¦ãããã 4 ããã©ã«ãã§å¯å¤åã®å¼æ°ãåãåã å¼æ°ã®åæ°ã宣è¨æã«æ±ºãã¦ããå¿ è¦ããã 5 ãªã¹ããæ»ãå¤ã¨ãã¦ä½¿ç¨å¯è½ é åãæ»ãå¤ã«ãããã¨ã¯ã§ããªã 6 ã¬ãã·ã«ã«å¤æ°ã¸ã®ãªãã¡ã¬ã³ã¹ãæ»ãå¤ã«ã§ãã ãã¼ã«ã«å¤æ°ã®ã¢ãã¬ã¹ãæ»ãå¤ã«ã§ããªã 7 ã³ã³ããã¹ãã¨ããæ¦å¿µããã ã³ã³ããã¹ãã¨ããæ¦å¿µã¯ãªã 8 ãµãã«ã¼ãã³ãå±ã
Perl ⺠é¢æ° ⺠here Perlã§ã¯ã³ã³ããã¹ãã¨ããæ¦å¿µãããã®ã§ãã¹ã«ã©ãããã¯ãªã¹ããã³ã³ããã¹ãã«å¿ãã¦è¿å´ãããã¨ãã§ãã¾ãã sub func_name{ # å¦ç ... return wantarray ? ãªã¹ã : ã¹ã«ã©; } wantarrayã使ãã°ããªã¹ãã³ã³ããã¹ãã®å ´åã¨ã¹ã«ã©ã³ã³ããã¹ãã®å ´åãåºå¥ãã¦ãæ»ãå¤ãè¿å´ãããã¨ãã§ãã¾ãã wantarrayã使ããã¦ããæ¨æºé¢æ°ã«ã¯localtimeé¢æ°ãããã¾ãã wantarrayé¢æ°ã¯ä½¿ããªãã»ãããã wantarrayé¢æ°ã¯ãé常ã«çºè¦ãã«ããã°ãçã¿åºãã ããã¡ãªã®ã§ã使ç¨ãããã¨ã¯ãå§ããã¾ããããã¨ãã°ãã¹ã«ã©ãè¿ã£ã¦ããã¨æã£ã¦ãé¢æ°ã®å¼æ°ã«æå®ãããããªã¹ããè¿ã£ã¦ããã¨ãããã¨ããèµ·ããããããã§ãã # ã¹ã«ã©ãè¿ã£ã¦ããã¨æã£ã¦ããããå®éã¯ãªã¹ããè¿ã£ã¦ãã¦ãã¾ã fu
Perlå ¥å¦å¼ å ¨6åã®Perlå ¥éè¬åº§ãæ±äº¬ã大éªãæ²ç¸ãæå¹ã§éå¬ã(æ±äº¬ã¯4æã¨10æã¹ã¿ã¼ãããã以å¤ã¯5æã¹ã¿ã¼ã) YAPC::Japan Perlã軸ã¨ããITã«é¢ããå ¨ã¦ã®äººã®ããã®ã«ã³ãã¡ã¬ã³ã¹ã æ±äº¬ å祥寺.pm äºåç°.pm å¤§éª ãªã«ãPerl æ²ç¸ æ²ç¸.pm
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}