Moose ã®ã³ã¼ããæ¢ç´¢ãã¦ç解ãæ·±ãã æ¬æ¥ã¯ Roppongi.PM ã®ç¬¬ä¸å Moose ã³ã¼ããªã¼ãã£ã³ã°ãããã¾ããã Mooseã¯ãåç´ã«ä½¿ã£ã¦ãåã«ã¯åãæãã®ã§ããããã®å®è£ ãè¦ããã¨ããã¨é端ã«è¤éããå¢ãã¾ãã ã¨ã«ããã¡ã½ããã®å¼ã³åºãã®ã¹ã¿ãã¯ãæ·±ããMySQLç¨ã§ã¯ç¡ãã«ããæ²è ã§ãã ä»åã¯ãããªMooseã®æåãææ¡ããæããããæ´ããã¨ããåã§ãã Moose.pm Moose.pmã¯ã主ã«use Mooseãããæã«exportããã¡ã½ããã®å®ç¾©ããã¦ãã¾ãã use Mooseããã¨ãextends,with,has,before,after,around,override,inner,augment,make_immutable($c->meta->make_immutableãã¹ã),confess,blessedãexportããã¾ãã ããã¦M
ä»ãè¶ ç±ãMooseå§ãããã ã§ãMooseç解ããã«ã¯Class::MOPç解ããªãããããªãã¦ãClass::MOPç解ããã«ã¯MOPç解ããªãããããªãã®ã§ãircã§ããã人ãã¡ã«è²ã æãã£ãã®ã§ã¡ã¢ã ã¡ã¿ããã°ã©ãã³ã° ã¡ã¿ããã°ã©ãã³ã° - Wikipedia ãã¸ãã¯ãç´æ¥ã³ã¼ãã£ã³ã°ããã®ã§ã¯ãªãããããã¿ã¼ã³ããã£ããã¸ãã¯ãçæããé«ä½ãã¸ãã¯ã«ãã£ã¦ããã°ã©ãã³ã°ãè¡ãæ¹æ³ ãã§ããããå®ç¾ããããã«å¿ è¦ãªã®ãã¡ã¿ã¯ã©ã¹ã¨MOPã MOP(ã¡ã¿ãªãã¸ã§ã¯ããããã³ã«) ã¡ã¿ã¯ã©ã¹ãéãã¦ãªãã¸ã§ã¯ãã·ã¹ãã ã¸ã¢ã¯ã»ã¹ããAPI ã¡ã¿ã¯ã©ã¹ ã¯ã©ã¹ã®æ¯ãèããå®ç¾©ããã¯ã©ã¹ã§ã¤ã³ããã¹ãã¯ã·ã§ã³(introspection)ã¨ã¤ã³ã¿ã¼ã»ãã·ã§ã³(itercession)ãåãã ã¤ã³ããã¹ãã¯ã·ã§ã³ ãªãã¸ã§ã¯ãã®å±æ§ãå¾ãè½å ex) ä½ã®ã¯ã©ã¹ãç¶æ¿ãã¦ã
Shawn Moore(Sartak)ã®è¬ç¾©ã§ãããåæé訳ã ææ³ã è¶ æ¥½ããã£ãï¼ï¼sartakãã¨ã¦ããã人ã ã£ãï¼ã¡ãã£ã¨ãã質åã§ãã³ã¼ãæ¸ããªããæãã¦ãããã ãã£ã¨ã¿ããªåãããããã®ã«ï¼ããçµãã£ã¡ãã£ããã©ï¼ æ©è½æ¯ã«ãè¬ç¾©âå®ç¿âè¬ç¾©âå®ç¿ãã®ç¹°ãè¿ãã ãããã¨ã¦ã楽ããã£ãã 1æ¥æå¾ã¾ã§æ¥½ããã³ã¼ãæ¸ãã¦éãããã å®ç¿ã®å 容ããæ¢ã«ãããã¹ããéãããã«ã¢ã¸ã¥ã¼ã«ãä½æãã¦ãã¹ããéã£ããããã£ãã¼ï¼ãã¿ãããªã gitã«è³æãããã®ã§ã¿ããªè½ã¨ãã¦ãã£ãããããï¼ccã®ã©ã¤ã»ã³ã¹ã§å ¬éãã¦ãã®ã§ã ãã£ã¨testãã¡ã¤ã«èªä½ããã¬ã¤ã«æ¸ãã¦ããã¯ãã ããè¦ããããã¨æãã JPAã«ãããæè¬ã§ããã3æ¥éå ¨é¨åãã¦ããã°è¯ãã£ãã¨æã£ãã 以ä¸ã¡ã¢ã Part0: Mooseã®ã³ã³ã»ãã perl6ããããããªã¢ã¤ãã£ã¢ãããã£ã¦ã ã¾ãã¯ãã£ããMoose
å é±æ«ã® YAPC::Asia 2009 ã®ã«ã³ãã¡ã¬ã³ã¹ã«å¼ãç¶ããç¹å¥ç ä¿®ãMooseå ¥éãã¢ãã¼ã³ãªãªãã¸ã§ã¯ãæåã·ã¹ãã ãã«åå ãã¦ããã ç ä¿®ã®å 容ã¯ãMoose ã¨ã¯ãªãããããå§ã¾ãã以ä¸ï¼ã ãããï¼7 é¨æ§æã®å ¥éè¬åº§ã Moose Concepts : ã³ã³ã»ãã ãã£ã¨æ©è½ä¸éãã¿ã¦ã¿ã ãªã Moose ãªã®ã Classes : Class ã®åºç¤ãã使ãæ¹ Moose::Object ãä½æã£ã¦ããã¨ã BUIDLARGS, extends, override, super ã®ä½¿ãæ¹ Moose 使ã£ããã¨ã®å¾å§æ« (no Moose;) Role : Role ã®åºç¤ãã使ããã Role ã®æã¤æå³ ä½¿ãæ¹ alias ã§è¡çªåé¿ Basic Attributes : Attribute ãããã required, default/builder, laz
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}