Ruby on Rails ã»ããã¼ï¼ã¯ãã¯ãããï¼ã¸è¡ã£ã¦ããã¡ã¢
what
Ruby on Rails ã»ããã¼ï¼ã¯ãã¯ãããï¼ã¸è¡ã£ã¦ãããã¹ã©ã¤ãã®ã¿ã¤ãã«ã¯ããï¼ï¼ï¼ä¸äººãå©ç¨ããé£ã®ã¤ã³ãã©ãã¯ãã¯ããããã®ãã®ã¥ããã
ããã§ã®ã¡ã¢ã
â»ã¹ã©ã¤ãã®ç§»åãå°ãæ©ãã¦ã¡ã¢ã追ãã¤ããªãã£ãé¨åãããã¾ãã
ã¯ãã¯ãããæ¦è¦
- 1998å¹´ãªã¼ãã³
- ç®çï¼ãæ¯æ¥ã®æçã楽ãã¿ã«ããäºã§ãå¿ããã®ç¬é¡ãå¢ããã
- ï¼ï¼ä¸åã®ã¬ã·ãï¼ã¬ã·ãã¸ã®ã¢ã¯ã»ã¹ã®ä»æ¹ã¯ãã³ã°ãã¼ã«ããã£ããã°ãã°ãã¨ã¢ã¯ã»ã¹ããã¦ãããï¼
- æéã¦ã¼ã¶ï¼ï¼ï¼ä¸äºº
- Railsã®ä¸ã§ä¸ç第ï¼ä½
- æéï¼.ï¼åView
- ï¼ï¼æãï¼ï¼æãã¢ã¯ã»ã¹ã®ãã¼ã¯
- ç§ãããã¬ã³ã¿ã¤ã³ã«åãã¦ãã©ãã£ãã¯ã伸ã³ã
ãµã¼ããããã¯ã¼ã¯
- ããã³ããµã¼ãï¼Apache2.2ï¼ï¼å°
- ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãï¼ï¼å°ï¼ï¼ã ã£ãããªã»ã»ã»ï¼ï¼å°ã ã£ãããªã»ã»ã»ï¼ï¼
- ãã¼ã¿ãã¼ã¹ãµã¼ãï¼ï¼å°
- Ruby 1.8.6
- Rails2.0
- ã¢ãã¤ã«é¨åã¯jpmobile
- PCã¨ã¢ãã¤ã«ã®ã³ã³ããã¼ã©ã¯åãã¦ãã
- Mongrel1.1.5
- Mysql
45 - Caistranoï¼ãããã¤ï¼
- god(mongrelã®åèµ·å)
- nagiosï¼ç£è¦ï¼
- muninï¼ã¢ãã¿ãªã³ã°ï¼
- FiveRuns Manage(ã¢ãã¿ãªã³ã°)
- Railsã®çç±ï¼2006å¹´ãªãã¥ã¼ã¢ã«æã«æ¤è¨ããçµæãã»ãã«ãã¾ãã¢ã¸ã£ã¤ã«ãæèãããã¬ã¼ã ã¯ã¼ã¯ããªãã£ãããï¼
ããã©ã¼ãã³ã¹
ãã£ãã·ã¥
- ãã¼ã¸ãã£ãã·ã¥ãã¡ã¤ã³ã«å®æ½ï¼Apacheããè¿ãããã«ãã¦ã¢ããªã±ã¼ã·ã§ã³ä»¥ä¸ã®è² è·ãä¸ããï¼
- ãã£ãã·ã¥ã§ããªãé¨åï¼ã¤
- ã¦ã¼ã¶æ¯ã«ç°ãªã表示
- ã¢ã¯ã»ã¹ãã°
- åºå
- ãã£ãã·ã¥ã§ããªãé¨åï¼ã¤
ã¯ã¨ãªãã¥ã¼ãã³ã°
ã¹ãã¼ã¯ã¨ãªãã°
ãããã¯ãã¼ã«
- FiveRuns TuneUp
DBåå²
- ã¢ã¯ã»ã¹æ°ããããã¼ã¿éãããã©ã¼ãã³ã¹ãä½ä¸ããã
ç°å¢
- ããã°ã©ãã¯å ¨å¡Mac
- emacs (rails.el)
- SubversionãTracé£æº
- Shinjiko
- Mondorin ã¯ãã¼ã³ã®ã³ã¼ãã¬ãã¥ã¼ã·ã¹ãã
DBã¬ããªã±ã¼ã·ã§ã³
- acts_as_readonlyable
- ãã¼ã¿æ´æ°å¾ã®ã»ã¬ã¯ãã¯ãã¹ã¿ããè¡ã
å ¨ææ¤ç´¢
- Trittonãå©ç¨ï¼mySQLãæ¡å¼µãã¦ããã®ã§ãã¼ãã«ãã¸ã§ã¤ã³ã§ããï¼
- ï¼ã¤ã³ããã¯ã¹ï¼çµãè¾¼ãã ä¸ã§ã®å ¨ææ¤ç´¢ï¼
å°ç¨URL
- ä¸é¨ã®ã¦ã¼ã¶ã¼ã¯èªåå°ç¨ã®URLãæã£ã¦ãï¼http://kookpad.com/kemï¼
- routes.rb
- å ¨ã¦ã®ã³ã³ããã¼ã©åãæ¤ç´¢
- ä¸è´ããªãåã«å°ç¨ã³ã³ããã¼ã©ã«æ¸¡ã
- routes.rb
å ¨ãã¼ã¸ãã¬ãã¥ã¼æ©è½
- ãã¹ã¦ã®ãã¼ã¸ã§ãä»»æã®æ¥ä»ãæå®ãã¦ããã¬ãã¥ã¼ã§ããã
- Time.now ãä¸æ¸ã
ãã¯ãã¯ãããã®ãã®ã¥ããã
1. ã¤ãããã®ã決ãã
éè¦ãªãã¨ã¯ï¼ã¤ã
- Bestãªãã¨ãã¿ã¤ããï¼ã¤ã®è¼ª
- ã¦ã¼ã¶ã®æ¬²æ±ã«åºã¥ããã´ã¼ã«è¨å®
Bestãªãã¨ã«éä¸ãããBetterãªãã¨ããã£ãã»ãããããã¨ã¯ãããªãã
Bestãªãã¨ãã¿ã¤ããï¼ã¤ã®è¼ª
- ããããï¼ä¾ï¼æ ç±ãæã£ã¦åãçµããï¼ï¼
- ã§ããï¼ä¾ï¼ä¸çã§ä¸çªã«ãªãããå¾æãï¼ï¼
- ããã¹ãï¼ä¾ï¼å²ãããã¨ï¼
ï¼ã¤ããã¹ã¦å®ç¾ãããã¨ãããã
ã¦ã¼ã¶ã®æ¬²æ±ã«åºã¥ããã´ã¼ã«è¨å®
- eogs(emotion oriented goal setting)
- ãã®ãµã¼ãã¹ã«ãããããã£ã¹ããç«ã¦ã
- ãã£ã¹ãæ¯ã®çãããã®ãªã欲æ±ãç解ãã
- ã·ã¼ããã¯ãã¯ãããå ã«ãã
- 欲æ±ã¯ããªãç 究ãã¦ãã£ã¦ããã
- 欲æ±
- ãªã«ãããã°
- How to do
- æåã¤ã¡ã¼ã¸
2. è¨ç»ãã
- ã¹ã±ã¸ã¥ã¼ã«ã®ï¼åå²ã®æ³å
- è¨è¨
- éçº
- 質ãé«ãã
ä¾ï¼ï¼é±é
è¨è¨ãéçºã質ãé«ããï¼ããããï¼é±éï½ï¼åããããéè¦ï¼
ï¼é±éã§éçºã§ããããã«è¨è¨ãã
ä¸å¿
è¦ãªãã®ã¯åããBestã«éä¸ããã
- ã¯ãã¯ããããã®ã¥ããï¼åå²
- ç¡
éè¨å®è¡- ä¾ï¼å ¬éåã«ããµã¼ãã¹ããªãã¥ã¼ã¢ã«æ¥ã«ã¤ãã¦èª¬æããªãï¼ã¡ãªããããªãï¼
- ãµã¼ãã¹ã¯è¨èã§èª¬æã§ããªãï¼ã¦ã¼ã¶ãããªãã¦ãããããªä¸å®æãã§ãå ´åãããï¼
- ç¡
-
- ç¡è¨èªå
- æ©è½ãè¨èã§èª¬æããªãã
- ä¸ç¬ã§ç解ã§ããã¤ã³ã¿ã¼ãã§ã¼ã¹ãããªãã¨ã使ãããªãã
- æ大ï¼ç§ãï¼ç§ã§ç解ã§ããªãã£ããã¦ã¼ã¶ã¯ä½¿ããªãã
- è¨èã§èª¬æããã®ãç¡çã
- ãã«ããFAQãè¦ããã®ã¯ã¦ã¼ã¶ã«è² æ
- ããããèªã¾ããªã
- ç¡è¨èªå
-
- ãµã¼ãã¹ã«ã¯å¤æ®µãã¤ãã
- ã©ããªãµã¼ãã¹ã§ãããããã®ä¾¡å¤ããããå¤æ®µãã¤ãã¦èãã
- ãç¡æã ãã大ä¸å¤«ãã¨ããèãã§ã¯è² ãã
- ããã¯ï¼ï¼ï¼ï¼åã ãã¦ã使ããªã©ãã¡ããã¨èããã
- ç¡æã ã¨ããçç±ã§ã¯ä½¿ããªã
- ãéãæã£ã¦ã§ã使ããããµã¼ãã¹ãç¡æã ã¨ä½¿ããã
- ã¦ã§ã以å¤ã®ãµã¼ãã¹ããã®ã¯ä¾¡å¤ã«å¯¾ãã¦å¤æ®µãã¤ãã¦ããã
- ã¯ãã¯ãããã¯å½åææãµã¤ãï¼æï¼ï¼ï¼åï¼
- ãµã¼ãã¹ã«ã¯å¤æ®µãã¤ãã
3. è¨è¨ããï¼ï¼ã¤ï¼
- ãµã¤ãã®è¨è¨ã®é çª
- é«åãªè¨è¨ãã詳細ã¸
- ç¨ä»¶å®ç¾©ããµã¤ãããããç¹ç¶ããã¼ã¸è©³ç´°ãDBæ§é
- 詳細ããè¨è¨ããã¨ãæ©è½ã«ã¨ãããã¦ãã¾ãã
- è¨è¨ã«æä½éå¿
è¦ãªãã®
- ã¢ã¸ã£ã¤ã«å®£è¨ã®ä¸ç¯
- é«åãªè¨è¨ãã詳細ã¸
ãå
æ¬çãªããã¥ã¡ã³ããããåãã½ããã¦ã¨ã¢ãéè¦ããã
ãããã¯ãããã¥ã¡ã³ãããªãã»ããããã¨ããæ¦å¿µã¨ã¯ã¾ã£ãã£ãéã
- è¨è¨ã«æä½éå¿
è¦ãªãã®ï¼ï¼ã¤ï¼
- ç¹ç¶ï¼ãã¼ã¸ç¹ç¶ãããããã¨ã¦ã¼ã¶ããã©ãçããªãï¼
- ãã¼ã¸è©³ç´°ï¼ç´ãæä½éã®ãã¼ã¸è©³ç´°ï¼
- DBæ§é
- ï¼å¤§ãããªãã°ããµã¤ãããããï¼
4. éçºãã
- éçºã®ï¼åå
- Railã«ä¹ã
-
- ãªãã¡ã¯ã¿ãªã³ã°ãç¶ããã³ã¼ããæ¸ã
ææ¥ã®èªåã¯ä»äººãã³ã¼ããèªã¿ã«ãããªãã
æ©ãRailsã®ãã¼ã¸ã§ã³ã¢ããã¸ã®å¯¾å¿ãå°é£ã
Railãå¤ãããã«ãªã£ããRailsã®æ©è½ã§ã§ããªããæ¢ãã代æ¿ããªããæ¢ãã
ãªãã¡ã¯ã¿ãªã³ã°ãã¤ã¥ããããç¶æ
ãæèããã=> ãã¹ãé§åã«ããå¯è½ã«ãªããç¾å¨ã¯ãã¯ãããã§ã¯ããã課é¡ã
ãªãã¡ã¯ã¿ãªã³ã°ãæèããªãã¨ï¼å¹´ãéç
-
- DRY
- åããã¨ãï¼åº¦ããªã
- railsã®åºæ¬æ¦å¿µ
- YAGNï¼ãããå¿ è¦ã«ãªããªãï¼ã«æ³¨æ
- DRY
5. 質ãé«ãã
- ã¦ã¼ã¶ãã¹ã
- ãã°çºè¦ãéè¦
- ã¦ã¼ã¶ã«ã´ã¼ã«ãä¼ãã¦è¡åãã¦ãããï¼å®éã«ã¦ã¼ã¶ã«ãã£ã¦ãããï¼
質åãªã©ã«ã¯çããªã
質åãåºãã¤ã³ã¿ã¼ãã§ã¼ã¹ã¯å¤±æ
ã¦ã¼ã¶ã«ä½ãèãã¦ããã®ãæä½ãã¦ããã
-
- ãããããã®æ³å
ã¦ãªãä¼ãããé¡ã
ã©ã¤ãã«ã«åã¦ããã¦ãªã
売ããå®æã§ãããå¹ãã
éçºäººå¡
ï¼äººï¼ãã¶ã¤ã³ãåºæ¥ãããã°ã©ãã»åºåæ
å½ãå
JAVAããã°ã©ããã¤ã³ãã©æ
å½ãUNIXã¦ã¼ã¶ä¼å¹¹äºããã£ãã·ã¥å¨ãæ
å½ãã¹ã¼ãã¼ã¤ã³ã¿ã¼ã³ï¼
ææ³
ã¦ã¼ã¶ã欲ãããã®ãããã«ãã¦æä¾ãããã¨ããã¨ãããããããèãã¦ãããã¦ã¼ã¶ã¸æä¾ããæ©è½ã¸ã®è³ªã«å¦¥åããªãã
使ã£ã¦ãããã¼ã«ãåèã«ãªãç©ãå¤ãã試ãã¦ã¿ãããã®ããããããã£ãã解説ãå°ãæ©å£ã§ã¹ã©ã¤ããã©ãã©ãé²ãã®ã§ãã¡ã¢ã追ãã¤ããªãã£ãé¨åãããã®ãå°ãæ°ã«ãªã£ãã»ã»ã»ã
ããéãæã£ã¦ã§ã使ããããµã¼ãã¹ãç¡æã ã¨ä½¿ããããã¨ããã®ã¯æèãã¦ããããã
ãæ大ï¼ç§ãï¼ç§ã§ç解ã§ããªãã£ããã¦ã¼ã¶ã¯ä½¿ããªããããã¡ããæèãããé
ç®ã ã£ããæ¥ã
ã®å¿ããã«è¬æ®ºãããã©ãã©ãæ©è½ã¯è¿½å ããã®ã¯è¯ããããããæ¬å½ã«ã¦ã¼ã¶ã欲ããç©ãªã®ããã¨ããã®ãã¡ããã¨æ¤è¨ããªãã¨ã ãããã¨æã£ãã
ãè¨è¨ãéçºã質ãé«ããï¼åããããéè¦ï¼ãããã®æèãåã¯ä½ãã®ã§æ¹ããããã¨ãã«è¨è¨ã¨è³ªãé«ããã®é¨åã
åãè¨è¨ã¯éçºããªãããããã®è¦ãããªæèããã£ããã©ãã詳細ãä½ãå§ããã¨ããããã»ãã¨ã«ã¦ã¼ã¶ã欲ããç©ãªã®ããã¨ããé¨åãè¦å¤±ããã¡ã«ãªããã¡ããã¨è¨è¨æ®µéã§ã¦ã¼ã¶ã®çãããã®ãªã欲æ±ãç解ããå¿
è¦ãããã¨æã£ãã
éçºä½å¶ã«ã¤ãã¦ã¯ãåæ§ç¯ããããªã¼ã