ã»ã¼ã»ã¼åæãªã®ã§ããããã¼ã ã¨æã£ã¦ï¼ppworksãããããã¯ãã ãããã¨ãããã¨ã§ããªããï¼ãã¨ã ããããããã
ã§ããªãããããããã¦ãã¨ã ã«ã¨ã©ããªãã§æ¸ãããã©ãããåå¿ãããããªãã¨æã£ãã®ã§ããã°ã«ã転è¼ãã¦ã¿ããã
è¦ç´ç¸ãã®å²å¦
ããã¯æå¥ãªããã®éãã ã¨æã£ã¦ãã¦ãRails以å¤ã®ãã¬ã¼ã ã¯ã¼ã¯ã§ã¯ãããã®å®ç¾ãé常ã«ä¸éå端ã§ããã¨è¨ãå°è±¡ãæã£ã¦ããã
ãµã¼ãã¹ä½ãã«ããã¦æè¡é¸å®ããä½ããããã®è°è«ããã¦ãã¦ã¯ãªãªã¼ã¹ã¯å½ç¶é ããªããããã¾ãããããªãã¨ãããã¨ã§ãããè°è«ãããªããã£ã¨ã¦ã¼ã¶ã«è¿ããæ£ä½ã®ããåãããªãä¸å®ç¹ï¼ãã®ã¢ããªã»ãã¨ã«ã¦ã¼ã¶ã«åããã®ï¼ ã¨ãï¼ã«é¢ãã¦ãã¹ãã
è°è«ã¯ä¸è¬çã«è¯ããã¨ã®ããã«æããã¦ãããåãä½åã使ãããæ¬å½ã«å¿ è¦ãªè°è«ä»¥å¤ã¯ããªãæ¹ãã¹ãã¼ããåºããä¸æ¯æ°ãªãã§å°ãã§ãç¡é§ãçãã¦ã¹ãã¼ããåºããã訳ã ãã¤ã³ã»ãã·ã§ã³ãããã¨ããéçºãè¯ãããåå¼·ããã¦ããæ¹ã¯ãåç¥ã ã¨æããã©ããããã¼ãã¯è°è«ãæ¸ããããã®ä»çµã¿ã ã¨æã£ã¦ããã
ãã©ãã¾ã§ãè°è«ããªãããã«é¢ãã¦Railsãåæã«ç·ãå¼ãã¦ãããããªãããã£ã¦ãã¡ããã¡ã楽ãããªãã§ãããã¨æã£ã¦ããã
ããã¯ãªãã¿ãªã¢ã³ã£ã½ããããããããªãã...ã
webã®é²åã¸ã®è¿½å¾ã®éã
Railsãä»ã§ãåºæ¬çã«ã¯ã¬ã³ã¬ã³ããªããªãã¼ã¸ã§ã³ã¢ãããããã¨ãããã«ããéçºè ã常ã«èªèãå¤ããããããªããã¨ã¨ãããã¬ã¼ã ã¯ã¼ã¯ãå«ãã¦ã¡ãªããã ã¨ã¼ããæãã
ããããããã¯ããã§ããµã¼ãã¢ããªã±ã¼ã·ã§ã³å´ã®ã追å¾ã®éãã«é¢ãã¦ã®ã¡ãªãããã享åã§ããªãç¶æ³ããªãã¨æã£ã¦ãããããã³ãã¯Assets Pipelineã®ç¡çããããã¾ã ä¿æãã¦ããããä»ããã¼ãã£ãã¢ããªæ代ã§RPCã®è¨è¨ãã½ã·ã£ã²éçºç¨èªã®ãç¹ãè¾¼ã¿ãã大å¤éè¦ã«ãªã£ã¦ãããã©ãä¾ãã°JSON Scemaã¿ãããªä»çµã¿ã¸ã®å¯¾å¿ã«ã¯èå³ãèãå°è±¡ãããï¼ã¾ãRESTfulã¨ãããã¨ã¯ããã ãã§ãããããããã ãã©ï¼ããã®è¾ºã®åéã¯ãããæ·ãããRailãéªéãããããã«æããå ´é¢ããããããããªãã
ãã ã¤ã³ãã©ãã¨ããç¹ã§ã¯12factorã¨Railsã¯é常ã«ç¸æ§ãè¯ããã§ãããã¯ããããªã¨æãããµã¼ãããã¡ããã»ã¹ã®ããã«æ±ãæ¨ä»ã®é¢¨æ½®ã«ã¯éãããªãï¼HerokuãRailsã®æåããåºã¦ãããï¼ã
大äºãªã®ã¯ãããå²å¦çã§ããRailsã£ã½ã姿å¢ã§ã¬ã³ã¬ã³å¤ãã£ã¦è¡ãããã¨ãåã¨ãããä»ã®å¸¸èãåæã¯ã²ã¨ã¾ãçã£ã¦ã¿ãã¨ããã®ãã©ã®åéã§ã大äºãªã®ã§ãããããµã¼ããµã¤ãã¢ããªã±ã¼ã·ã§ã³ã®åéã§ãã£ã¦ä¸å®ã®æåããã¦ããã®ãRuby on Railsãéçºè ã¨ãã¦ã¯ããã³ããã¢ããªã®ã¢ã¼ããã¯ãã£ã大å±è¦³ãèãã段éã§ãçä¼¼ããããã¨ã¯ã§ããã ããã
ããã¾ããç°¡åãããªããã§ããã©ãããããã¾ã...ã
Railsã£ã½ãå¤åã®ä»æ¹ã£ã¦ããã æãã¤ãã§å¤ããã¾ãã£ã¦ã訳ã§ããªãã¦ããã大äºãªãã ãã©ã§ãå®ã¯æªã ã«ããããDHHã¯ããããã§ããã以å¤ã®è¨èã§ãã¾ã説æã§ããªã...ã
å¨è¾ºgemã®ã¨ã³ã·ã¹ãã
ããã¯æè¿ã¯ãåç´ã«éä¿¡ã§ããªããªãã¨æã£ã¦ãã¦ããããã«ã»ã¼ãã¹ã¦GitHubã«ä¸ãã£ã¦ãã¦ãè°è«ã«éææ§ããããããã ãã©ãgemãæ¾ç½®ãããï¼çãå°½ããï¼åé¡ã¨ããéæãªè°è«ããã¦ãã¦ãgemã»ãã©ã°ã¤ã³ãè¥å¤§åãã¦ã¹ãã¼ã¯ãã«ãã¼ãå¤ããªã£ã¦çµæããã¬æ¹åã«ãã¼ã¸ã§ã³ã¢ãããã¦è¡ãã¿ãããªåé¡ã¯ãéæã«ãããã¨ã ãã§ã¯æ ¹æ¬çã«è§£æ±ºããªãããã«æã£ã¦ãããç¡è«ãã³ã¼ããçµç·¯ãéæã ãããããåãæ¨ã¦ããforkããã調æ»ãããã®ä»ã®å¤æã¯å®¹æã«ãªã訳ã ããã©ã
ãªã®ã§æè¿ã¯ãµã¼ããã¼ãã£ãªæ©è½ã«ã¤ãã¦ã¯ããç¨åº¦èªåã§æ¸ãã®ããããªãã¨ããèãã«ãªã£ã¦ãã¦ãããforkãã¦ãã£ã¨ãã®ã¾ã¾ãã¯é¿ãããã¨ããã ããã©...ã
forkãåãæ¨ã¦ã®å¤æã容æãªã¨ãããå«ãã¦ã®ã¨ã³ã·ã¹ãã ãã¨ãããã¨ã§ããã°Railsã®ã¨ã³ã·ã¹ãã ã¯ã¾ã ã¾ã ãããªãã«ã¯ã¼ã¯ããã¨æãã
ã§ï¼ã¨ãã話
ããããã¯ãã¨ã ã«æ¸ããªãã£ãã
> è°è«ãããªããè¦ç´ç¸ãã®å²å¦
> ä»ã®å¸¸èãåæã¯ã²ã¨ã¾ãçã£ã¦ã¿ã
ãã®2ç¹ã¯ä¸ä»¶çç¾ãã¦ããããã«æããããããªããã ããçç¾ãã両ç«ã§ããã
ãä»ã®ä»®å®ãã¨ããããåãå ¥ãã¦é²ãããã¨ã¨ããä»®å®ã¯ä»®å®ã¨ãã¦å¸¸ã«çã£ã¦æ¤è¨¼ããããã¨ã¯çç¾ããªãããã ã Railã«ä¹ãã¨ãããã¨ã¯ãRuby on Railsãè¦å®ããæ§ã ãªä»®å®ãæ¯ã¨ãã¦åãå ¥ããã㨠ã«ä»ãªããªãã¨èãã¦ãããä»®å®ãªã®ã§ãããããªãã¨ãèµ·ããã°ããã«ç«ã¡æ»ã£ã¦å¤æ´ããªããã°ãªããªããã ããå¤æ´ã«å¼·ããªããã°ãªããªãã
éã«è¨ãã°å¸¸ã«ä»®ã«é²ãã§ããæ°æã¡ã失ããªãï¼ãã®ããã«èªååãããããã½ããã¦ã§ã¢ãã¹ããå å®ãããï¼ã§ããã°ãæ¬å½ã«ä»®èª¬ãééã£ã¦ããã¨ããè´å½å·ãè² ããã¨ãªãç«ã¡æ»ããã¨ãã§ãããããããä¸ç¨®ã®PDCAå転ãæä¾ãã¦ãããã®ãçã® Rails ã®å¼·ã¿ãªããããªããããã«æã£ã¦ããã
ã¼ãããä»ã§ãRailsã¯ååå¼·ãã¨æã£ã¦ããã
Javaãå¾æã¨ãPHPæãã¦ãï¼ ã¨ããããããã¤ã¢ã¹ããã¨ãã¬ã¼ã ã¯ã¼ã¯èªä½ã¯å¤ãããããããªãããä¸è¿°ãããããªå§¿å¢ã¯éæã§æ¡ç¨ã§ãããã«æãã
ã§ãããããã¼ãã¯ããå æ¸ã¢ããªã±ã¼ã·ã§ã³ã¨ã³ã¸ãã¢ãåä¹ãã¨éåæãããæãã«ãªã£ã¦ããã®ã§ãã¾ããã£ã±ããã¨ã ãã¨ããããã©ãã·ã¥ã¢ã¤ãã¢ãªã®ã§ã...ã