ååï¼ã¨è¨ã£ã¦ãããï¼ã¶æåãâ¦â¦1.5.8ã¾ã§ã§ã¡ãã£ã¦ã¾ãããï¼è¿½è¨ï¼ä¸åº¦ä»æ¥ã1.6.0 å®å®çããªãªã¼ã¹ããã¾ããï¼ï¼ä¾ã«ãã£ã¦ãã«ãã¯ã¯ã½é·ãã®ã§æ³¨æãã¦ä¸ããï¼ããMac OS X 㧠MongoDB ãåãããã§ãMac OS X ã§ã® MongoDB ã¤ã³ã¹ãã¼ã«ãèµ·åãåæ¢ããã¼ã¢ã³åããã¾ããã ä»åã¯ãä»å±ã®ã·ã§ã«ã§ç°¡åãªCRUDæä½ããã¦ã¿ããã¨æãã¾ãããªã®ã§ãOSãããã°ã©ãã³ã°è¨èªã¯é¢ä¿ããã¾ãããç´ ã® MongoDB ãå¦ã¶ç®çã§ä½æãã¾ãããSQL ç¥ããªã㨠ORM ãæºè¶³ã«ä½¿ããªãããã«ãä»åã® CRUD æä½ãç¥ã£ã¦ããã°ãåè¨èªç¨ã® ORM ã§æ©ããã¨ãå°ãªããªãã¨æãã¾ãã ãªããä»åããã¡ãã¡ã¤ã©ãâã¨ããèªããå ¥ãã¾ãã 復ç¿ãã¦ããã¾ãããããMongoDB ã£ã¦ããã®ã¯ã ããã¥ã¡ã³ãæåã¹ãã¬ã¼ã¸ã§ ã¤ã³ããã¯ã¹ããµãã¼ããã¦ã㦠ã¬ã
CakePHPã®Modelã¯ActiveRecordã©ã¤ã¯ãªDBã¢ã¯ã»ã¹æ¹æ³ãæä¾ãã¦ãããããã«ã¢ã½ã·ã¨ã¼ã·ã§ã³ãè¨å®ãããã¨ã«ããè¤æ°ãã¼ãã«ã®å¤ãåæã«æä½ã§ãããªã©ãDBæä½ã«å¯¾ããã¤ã³ã¿ã¼ãã§ã¤ã¹ãæ°å¤ãããã¾ãã ãã ãæ軽ã«DBæä½ãã§ãããã¨ããå°è±¡ãå è¡ãã¦ãããã誤解ãæããã¨ãããããã§ãã 1. ã¯ã©ã¹åã«å¯¾å¿ãããã¼ãã«ããæä½ã§ããªã Modelã®ã¯ã©ã¹åã¨ãã¼ãã«ãèªåã§ãããã³ã°ããã®ã¯ãã¬ã¼ã ã¯ã¼ã¯ã®ããã°ä¾¿å©æ©è½ã§ããããã©ã«ãã§ãã®ãããªåä½ãããã ãã§ã容æã«å¤æ´ãããã¨ãã§ãã¾ãã Model#$useTableã«ãã¼ãã«åãæå®ããã°ä»»æã®ãã¼ãã«ãæä½ã§ãã¾ãã <?php class Foo extends AppModel { public $useTable = 't_user'; // t_userãã¼ãã« } ?> 2. DBã使ããª
ãã®è¨äºã¯ãPlay or Scala Advent Calendar 2012ã®25æ¥ãã§ãã Looking back 2012 2012å¹´ã¯ã Playã®ããã¥ã¡ã³ã翻訳 ScalaãPlayã®ãã®ãã¼åãã®çºè¡¨ ä¼ç¤¾ã®æ¥åã§ãScalaã使ããããã«ãªã£ã ãªã©ãå人çã«ã¯Playã¨Scalaã身è¿ãªä¸çã§èºé²ããå¹´ã§ããããããªå¹´ã«ã¢ããã³ãã«ã¬ã³ãã¼ã®æçµæ¥ãæ å½ããã¨ããã®ã¯ãä½ãææ ¨æ·±ããã®ãããã¾ãï¼ æè¿ã¯PlayãScalaãå®è·µã§ä½¿ããå§ããå½±é¿ãããã¤ããªäºææ§ããã«ããã¼ã«ãç¿å¾é¢ãªã©ã®å®è·µçãªèª²é¡ãè²ã ã¨è©±é¡ã«ãªã£ã¦ãã¾ãã課é¡ã«å¯¾ãã¦ã¯æ¥å¹´ç§»è¡ãç²ã ã¨å¯¾å¿ããã¦ãããScalaã®ä»å¾ã®çºå±ã«å¯ä¸ãã¦ããããã¨æãã¾ã ãã¦ãæ¬é¡ã«å ¥ãã¾ããå æ¥ãAkkaã§MMOã®ãµã¼ãï¼ã»ãã®å°ããªãã®ã§ããï¼ãæ¸ãã¾ããããã®æã«ä½¿ã£ãScalaé¢é£ã®æè¡ãããã¤ããç´¹ä»
æ¬ã¨ã³ããªã¼ã¯ãG* Advent Calendar 2012ã®24æ¥ç®ã®ã¨ã³ããªã¼ã§ããåæ¥ã¯ã@tetsurokitaharaããã®Groovyã«Processingãï¼ã§ããã ä½ããã¿ã«æ¸ããããªã¨æ©ãã ã®ã§ãããæãã»ã©G*ãªãã¿ã¯æã£ã¦ããããJUnitãã¿ã¨ãªãã¾ãããå®ã¯ãæ¸ç±ãJUnitå®è·µå ¥éãã§ãGroovyãæ´»ç¨ãããããã¯ãå ¥ããäºå®ã ã£ãã®ã§ãããç´é¢ã®é½åä¸ãå ¥ããäºãã§ãã¾ããã§ãã*1ãããã§ãå°ãã ãã§ãããæ¬ã¨ã³ããªã¼ã§è£è¶³ããããªã¨æãã¾ãã ãã¹ãã³ã¼ãã§Groovyã使ã Groovyã¯ãJavaã¨è¦ªåæ§ã®é«ãããã°ã©ãã³ã°è¨èªã§ããä¸å¸ã説å¾ããå ´åã¯ãGroovyã¯Javaã®æ¡å¼µã©ã¤ãã©ãªã§ãï¼ï½·ï¾ï½¯ãã¨è¨ã£ã¦ãè¯ãã§ããããæ¬å½ã¯éçºç°å¢ããã«ããã¼ã«ã®è¨å®ãªã©ã§ä¸å·¥å¤«ããªããã°å©ç¨ã§ãã¾ãããããã®è¾ºã¯è£ã§ããã£ã¨ãã£ã¦ãã¾ãã°OKã§ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}