è¤éãã«éãè½ã¡ãæ代ã¯æ¬å½ã«çµããã®ãï¼
ããã¯ãRuby on Railsã«å¯¾ããå®ã«ç確ãªæ¹å¤ã ã¨æããã ããããã«ãã£ã¦éã«Railsã®æå³ãè¦ãã¦ãããããªæ°ãããã
(ãã®ã¨ã³ããªãå ¥å£ã¯ã½ããã®ããå°éçãªè©±ã§ãããä¾ã«ãã£ã¦å¤§é¢¨åæ·ã§ããããã"The World is Flat"ã®è©±ã«ã¤ãªãã£ã¦ããã®ã§ãã§ããã°ããã°ã©ã以å¤ã®æ¹ããã¤ãããä¸ãã)
Railsã¨ããã½ããéçºãã¼ã«ã®è¯ãã¯ãåã«ä¾¿å©ã¨ããã«ã¹ã¿ãã¯(å¿ è¦ãªå ¨ã¦ã®æ©è½çåã)ã¨ãããã¨ã§ã¯ãªããå®è·µçãªä»äºã®æµããèå¾ã«æ³å®ããã¦ãããã¨ã ãé ãã²ãã£ã¦ãã¼ã«ã使ãããªãã¨ããããããã¼ã«(ãæ³å®ãã¦ããã½ããéçºæé )ã«ãä¹ããã¨ããæè¦ã§éçºãé²ãããã¨ãã§ãã(ã¾ãã« On Rails)ã
ã ãããRailsã®åã ã®æ©è½ã®éä¸è¶³ãåé¡ã«ããã®ã¯ãã¾ãæå³ãç¡ããä»®ã«ä¸è¶³ããã£ãã¨ãã¦ãããªã¼ãã³ã½ã¼ã¹ãªãã ãããããããåé¡ç¹ã¯ããããã®äººã使ã£ã¦ãããã¡ã«èªç¶ã¨ãã£ã¼ãããã¯ã«ãã£ã¦ç´ã£ã¦ããã
id:habuakihiroããã¯ãRailsã¨ããã½ããèªä½ã§ã¯ãªãããããæ³å®ãã¦ããéçºã®æé ã«è´å½çãªæ¬ é¥ãããã¨ä¸»å¼µããã¦ããã®ã ã¨æãããã®æ¬ é¥ã¨ã¯ããã¼ã¿ãã¼ã¹ã®è¨è¨ã¨ããå·¥ç¨ãå«ã¾ãã¦ããªããã¨ã ã
Railsã«ããã½ããéçºã®ã©ã¤ããµã¤ã¯ã«ã¯ãã¾ããã¼ã¿ãã¼ã¹ã®ãã¼ãã«ãå®ç¾©ãããã¨ããå§ã¾ãããã¼ãã«ã¨ã¯ãæ¥åã®ãã¼ã¿ãæ½è±¡åãããã®ã§ãã½ããéçºãå§ã¾ã£ãæç¹ã§èª°ã«ãèªæã«è¦ãã¦ãããã®ã§ã¯ãªããæ¥ååæãããã¼ãã«å®ç¾©ã¨ããä½æ¥ã§ã¯ãå¤å°ãªãã¨ãå½¢å¼åãããä½æ¥æé ãå¿ è¦ã¨ãªããããã®æé ãRailsã«ã¯å«ã¾ãã¦ããªããå¤ä»ãã§ãããå¤ä»ãã§ãããã好ããªãã®ãæã£ã¦ãã¦çµåããã°ãããã¨è¨ãã¨ãæ®éã®éçºãã¼ã«ãªãããã§ããã®ã ãã©ãRailsã®å ´åã¯ãå¤ä»ãã®æé ã¨Railsãæ³å®ãã¦ããæé ã®éã«ã®ã£ãããçºçãã¦ãã¾ãã
ã使ãããã¼ã«ã§ããã°åä½ã®æ©è½ããã¼ã«ãæä¾ãã¦ã足ããªããã®ã¯å¤ä»ãã§ãéçºè ãããããçµåãã¦éçºããã»ã¹ãçµã¿ç«ã¦ã¦ãããRailsã®ããã«ãä¹ãããã¼ã«ã¯ãæé»ã«æä¾ãããéçºããã»ã¹ã«éçºè ãä¹ã£ã¦è¡ãã身ããã ããå¿ è¦ãããã®ã§ãããã«ä¸è¶³ããããã¨ã¯è´å½çã§ããã£ãä¸ã¤ã®ä¸è¶³ã«ãã£ã¦ãã¼ã«ã®è¯ãã大ããæãªãããã
ãã ãããéçºããã»ã¹ãåæã¨ããã¦ãããã¨è¨ã£ã¦ããããã¯ãå¹ ã®çãä¸æ¬éã§ã¯ãªããã¢ã¸ã£ã¤ã«ã§ããããã«ãæ¡å¼µã§ããæè»ãªããã»ã¹ã§ããã窮å±ãªããã»ã¹ã§ã¯ãªãã®ã§ãä¸è¶³ãããã«ãã¦ãä»ã®ãã®ãªããªãã¨ããªããããããªããã ããæ¬ ãã¦ãããã®ãããã¼ã¿ãã¼ã¹è¨è¨ãã§ããã¨ãããã¨ã¯ããªãè´å½çã ã
ãã¼ã¿ãã¼ã¹ã®ã¢ããªã³ã°ã¯æ¥ååæã¨æ·±ãé¢ãããã£ã¦ãã¦ãã¢ã«ã´ãªãºã ã®ãããªç´ç²ã«ã³ã³ãã¥ã¼ã¿æè¡çãªãã®ã§ã¯ãªãããæ¥åããããã«æ½è±¡åãããã¨ãã話ã ãããããã¡ãã¨ããã°ãã¹ãããªã¨ããè¦éããããã½ããã¦ã¨ã¢ãã§ãã¦ãããã§æãæãã¨ã使ãåæãæªãã·ã¹ãã ãã§ãããç¹ã«ãæåã¯ãã¾ãåããã¨ãã¦ããæ¥åã®ä¸ã§ç¶ç¶çã«ä½¿ã£ã¦ãããã¡ã«ãããåºã¦æ¥ãã
ãã¨ãã¦è¨ãã°ãã¢ããªã³ã°ã¯æ¥åã½ããã®éª¨ã§ãã£ã¦ã骨ã®è¨è¨ã«ãã£ã¦æã足ã®åãæ¹åã決å®ãã¦ãã¾ããæ足ãæ²ããæ¹åã¨æ²ãããªãæ¹åãæ£ãããã°æè»ã§ä½¿ããããã½ããã¦ã¨ã¢ãã§ãããã¢ããªã³ã°ãééã£ã¦ããããæ¥åãã½ããã®é¢ç¯ãéæ¹åã«ãããä¸ãããããªãã¨ã«ãªãã®ã§ã®ã§ãã½ããã骨æãã¦ã®ãã¢ããããããã俺ã®æã¯ãã£ã¡ã«ã¯æ²ãããã©ããããããµãã«ã¯æ²ãããªãããããã¨ã½ãããéåããã¦æ¥åãæ¾ãæãã¦ãã¾ããã·ã¹ãã ãç ´ç¶»ããã
ã ãããæ¥ååæã¨ã¢ããªã³ã°ã¯ç´æã§ãªããã¡ãã¨æé ã«æ·»ã£ã¦ããã¹ããDBè¨è¨éè¦ã
ãããRailsã¯ãããã¼ã¿ãã¼ã¹è¨è¨ã¯ç´æã§ãããã¨è¨ã£ã¦ããã«çãããããã°ã¨ããã¯ãã®ãããªãã®ã§ããã°ç´æã§ããããã¨ã§ãããããããªãããæ®éã®æ¥åã¯ããã¯ãããªãã
ããã¯ã©ããããã¨ãªã®ãï¼Railsã¯æ®éã®æ¥åã«ã¯ä½¿ããªãã®ã ãããã
ããã§ããå®ã¯ãããªãã§ãã
Railsã¯æ®éã®æ¥åã«ã¯ä½¿ããªããã§ãã
誰ãããè¨ã£ãã®ãï¼
ä»ãªãã¬DHHã®ãã¹ããããè¨ã£ã¦ããã®ã ãããééããªãã
ä¸ã®ä¸ã«ã¯ããããã®åé¡ããããé£ããåé¡ã¯ä»ç¤¾ã«ã¾ããã¦ãåç´ãªåé¡ãåç´ã«è§£ããã
More Constraints I said Iâd discuss five things you need less of, but there is one thing you need more of: Constraints. All this less is really about more constraints. Thatâs where youâre forced to be creative. Thatâs where youâre squeezed to make better use of your money, your people, your time. And out of this squeeze will come better software, more satisfying software, and simpler solutions.
ç´æã§ãã¼ãã«è¨è¨ãããã¨ãããã¨ã¯ãRailsã使ãä¸ã§ãé常ã«å¤§ããªå¶ç´ã«ãªããç°¡åãªåé¡ã§ã¯å¤§ããçç£æ§ãåä¸ããã¨ãã¦ããããã¬ãã«ä»¥ä¸ã®é£ããåé¡ã¯è§£ããªãã
ã§ããããã¯ä»æ§ã ã¨æãããå¶ç´ã¯å¤ãæ¹ããããã¨è¨ãJason Friedã¯ãããããã¼ã«ã欲ããã£ã¦ãã¦ãã¾ãã«ãã¹ã®ãæã¿éãã®ãã®ãDHHã¯ãããããã®ã ã¨æãã
å®éãæ¥åã½ããã¯å ¸åçãª80:20ã®æ³åã§ãã£ã¦ã80%ã¯åç´ãªãã®ã ã80%ã§ãããã°éè¡ã®ãªã³ã©ã¤ã³ãªãã¦åãªã足ãç®ã¨å¼ãç®ã ã誰ããã£ã¦ãããã§ãããããããããã90%ã«ããã¨ä½åä¸åã«ãªã£ã¦ã99.99%ã«ããã¨ä½åååã«ãªããããããé£ããåé¡ã¯ä»ç¤¾ã«ã¾ããã¦ããªãã¦ãã¹ãè¨ã£ã¦ããããªãã°ãDBè¨è¨ã¯ç´æçã«ã¡ãã¡ããã®ã¡ããã§ã§ããã
ãã¼ãDHHã¯ãããã¹ããã¦ããã£ããããã¯ã«ã¯ãããªãã¹ã¯ããªããããé£ããåé¡ã¯ä»ç¤¾ã«ã¾ããã¦ããªãã¦è¨ããããã¨ãªãããæ®ã20%ã®çºã«ããããè¦å´ãã¦ãããããããããè¦å´ããããRailsã£ã¦é¢ç½ããã©ãå¥ä¸çã®è©±ã ãä»äºã§ä½¿ããã¨ãªãã¦ãªãããå°çã®è£å´ã«é¢ç½ããã¨è¨ãäºäººçµãããã¨ããã ãã®è©±ãã楽ãã夢ã®è©±ããããã¨ããã¨ã¦ã楽ããã£ãã
ãã¦ããããããã¯ã¯ä»äºã«æ»ããã
ã¨æã£ãããããã«ããä¸äººä»²éãç¾ãããã§ãã
The World *IS* Flatã®ä¸ã§ããªã¼ããã³ãããããä¸çã®ãã©ããåãã10ã®åãã®ä¸ã¤ã¨ãã¦ãã¤ã³ã½ã¼ã·ã³ã°ããªãã¦ãã¨ãè¨ã£ã¦ããããã¨ãã°ãUPSãæ±èã®ãã½ã³ã³ã®ä¿®çãè«ãè² ãã¨ãã話ãUPSã®ç©æµã»ã³ã¿ã¼ã®ããã®ç©ºæ¸¯ã®ä¸ã«ãæ±èã®ä¿®çå·¥å ´ãä½ã£ã¦ãã¾ããããã¦ãæ éãããã½ã³ã³ãããã«éã³ãç´ãããããã客ã®æã«æ»ãã代éãåãåããããããä¸é£ã®æ¥åãæ±èã®çæ¿ã§UPSã®ç¤¾å¡ãè¡ãªãã
å® æ¥ä¾¿ã®ä»£å¼ã¨ããAmazon e託販売サービスã¿ãããªãã¨ãããã£ã¨å¤§è¦æ¨¡ã«ç·åçã«è¡ãªãã¨ãããã¨ã®ããã ã
ã¤ã³ã½ã¼ã·ã³ã°ã¨ã¯ç©æµãå¨åº«ã ãã§ãªãã代éååã売ä¸åæããã¯ã¬ã¼ã 対å¿ãããã®å¨è¾ºã«ããæ¥åãå ¨é¨é£²ã¿ããã§ãã¾ããã¨ãããããããããã¨ãå°çè¦æ¨¡ã§è¡ãä¼ç¤¾ããããããã®æµè¡ãã«ãªãã¨ã" The World IS Flat "ã®ããªã¼ããã³ãããè¨ã£ã¦ããã巨大ãªä¼æ¥ã80:20ã®20ãè©ä»£ããããã¨ãããã¨ã ã
ã³ã¤ãããDHHãJason Friedã®ä¸å³ã ã¨ãã¯ãæãã®ã¯ããé£ããåé¡ã¯ä»ç¤¾ã«ã¾ããã¦ãç³»ã®è©±ããã¦ããããã ã
ã¤ã³ã½ã¼ãµã¼ã«é ¼ããªãã°ããæ¥åãã¯ããã¶ãåç´ã«ãªããããªæ°ããããããã¦ãã¤ã³ã½ã¼ãµã¼ã¨ããã¤ã³ãã©ã確ç«ãããã¨ã§ãç¹å®ã®çãã¸ã£ã³ã«ã«ç¹åããä¼æ¥ãå¢ãããããããããä¼ç¤¾åãã®åç´ãªä»äºãå¢ããã®ãããããªããããããä¸å¯é¿ã®æµãã ã¨ãããããåç´ãªä»äºãã¹ãããªããªããç³»ã®ãã¼ã«ã®é©ç¨ç¯å²ã¯ãä»è¦ããç¯å²ããéååºãã£ã¦ããã ããã
ãã¡ãããæ®ã20%ã®ä»äºã¯æ¶ãã¦ãªããªããããããªããã¤ã³ã½ã¼ãµã¼ã®ä¸ã«ã¯ãããã¾ã§ä»¥ä¸ã®å·¨å¤§ãªè¤éããå¢æ®ãã¦ãããå½¼ãã¯è¦æ¨¡ã®çµæ¸ã«ãã£ã¦ãããç´°ããå°éã«ãããããªãã¦ããã ãããid:habuakihiroããã¯ã©ã¹ã®æè¡è ãªãã°ãããã§ãããã§ãæ´»èºã®å ´ããããã§ããããããã¤ã³ãã©ç³»ã®ä¼æ¥ã¯ãå°çå ¨ä½ã§äºã¤ãä¸ã¤ã«éç´ããã¦ããã ãããããã§ã¯ã¨ã¦ã¤ããªãè¦æ¨¡ã®ã·ã¹ãã ãéçºããç¶ãã巨大ãªã½ããéè¦ãçã¿ç¶ããã ããã
ããã¯ãããªãã ãã©ãããããä¼ç¤¾ã¯å°çå ¨ä½ã§æ¥ç¨®ãã¨ã«äºã¤ãä¸ã¤ã
DHHã¨Jason Friedã®ãããªäººãç¹æ®ã ã¨æã£ã¦ãã¦ããã¯ã®æ¹ãæ®éã ã¨æã£ã¦ãããã©ããã¯ã®è¨ããæ®éãã¯å°çå ¨ä½ã§æ¥ç¨®ãã¨ã«äºã¤ãä¸ã¤ã«éç´ããã¦ããã¨ãããããã£ããå ¨ä½ããæ®éãã¨ã¯ã©ã£ã¡ãªãã ãããåç´ãªãã¨ãåç´ã«ããªãä¸å°ä¼æ¥ã®åç´ãªã·ã¹ãã ãéçºããã½ããã¦ã¨ã¢æè¡è ãã巨大ãªã¤ã³ã½ã¼ãµã¼ã®å·¨å¤§ã§è¤éãªã·ã¹ãã ãéçºããã½ããã¦ã¨ã¢æè¡è ãã
ãããããDBè¨è¨ãããã¨ãã¾ãããªãã¦ã¨ããããå§ã¾ã£ã¦ããããã¯ãã«ã¤ãã¦ã¯ãæè¡çã«ãããç´ æ´ãããã¦ãã客æ§ã®ä½¿ãåæã«å¯¾ããè¦ä»¶ãã¯ãªã¢ããã¨ãããã¨ãå«ããããã¸ã§ã¯ãå ¨ä½ã®ã¹ã«ã¼ãããããã¿ãããæè©®é¨åæé©åã§ãããä¸æãããå ¨ä½ã®çç£æ§ã«éå¹æã«ãªããããªã代ç©ã«éããªããã¨å¤æãã¾ãã
ãéå¹æãã¨ã¾ã§ã¯æããªããã©ããã®ä¸»å¼µã¯ç解ã§ãã¾ããä½ãããããã§id:habuakihiroããããæé»ã«ã¤ã¡ã¼ã¸ããã¦ããã§ããããæ¥åãã¨ãããã®ã®æ§è³ªã«ã¤ãã¦ãç§ã¯å ±æãã¾ãã
ãã ãä¸ã«ä¸ããä¸äººã®ä¸»å¼µãèªåãªãã«åæãã¦ãã¾ãã¨ãç¾å¨ã®ãæ¥åãã«å¯¾ããå ¨ä½æé©åã¯ãããã©ããåããããä¸çã«ããã¦ã¯é¨åæé©åã«ãªãã¨ãããã¨ã§ãã
ãç´æçDBè¨è¨ + ã¢ã¸ã£ã¤ã«(ãã¹ããã¡ã¼ã¹ã)ã«ããé²åãã§å¯¾å¿ã§ããè¤éãã¯ãRubyã¨ããè¨èªã®æè»æ§ã¨Railsã¨ãã¬ã¼ã ã¯ã¼ã¯ã®çã®è¯ãã«ãã£ã¦ããªãåä¸ãã¦ããã¨æãã¾ããããããåä¸ãã¦ããã¨ã¯è¨ã£ã¦ããç§ãä»æã£ã¦ãããæ¥åãã®ã¬ãã«ã®è¤éãã«å¯¾å¿ã§ãããã®ã§ã¯ãªãããã ãããã«ãããè¤éãã®éçãã¯ããã¤ã³ã½ã¼ãµã¼ãã¨ããåå¨ãåæã¨ããæ¥åã®å¹³åçè¤éãã«ã¡ããã©ãã対å¿ãã¦ããããã«ãç§ã«ã¯æãã¾ãã
ããã©ããåããããä¸çã®ãã¤ã³ã½ã¼ãµãã®å¤ã«ããã·ã¹ãã ã«ã¯ãRailsã¯ã¡ããã©ããã®ããããã¾ããããã¡ããçåã¯ããããããã¾ãã
çµæ¸ã®åé¡ã¨ãã¦ã80:20ã®80ã«ç¹åã20ãåãè½ããè¤éãªåé¡ã¯ä»ç¤¾ã«ã¾ããã¦ãé£æºããå°è¦æ¨¡ãªä¼æ¥ããæ¬å½ã«çµæ¸ã®ä¸»æµã¨ãªããã©ãã?
ã½ããã¦ã¨ã¢éçºã®åé¡ã¨ãã¦ã80:20ã®80ã«ç¹åãããã¨ã許ãããã¨ããããæé©ãªã½ããã¦ã¨ã¢éçºããã»ã¹ã¯ã©ã®ããã«å¤åãã¦ããã?
è¤éãã«éãè½ã¡ãæ代ã¯æ¬å½ã«çµããã®ãï¼
ã¨ãããã¨ã§ãRuby On Rails ã®æèµ·ãã¦ããåé¡ã¯ãã½ããã¦ã¨ã¢ã®ä¸çã«çã¾ããªããé常ã«å¤§ããªå°ç¨ãæã£ã¦ããããã«æãã®ã§ããã楽ã ERDã¬ãã¹ã³ (CodeZine BOOKS) ã注æãã¤ã¤ã自作のテンプレートライブラリをRails対応にする作業ããã¦ããç§ã¯ãå®å ¨ã«æ¥åã£ã¦ã¾ãã