æè¿ã®å¤§ç°ãã@mixiã®ã¨ããã§ãRubyã«ã¤ãã¦èå¯ããæ©ä¼ããã£ãã®ã¨ããããã¡ããã®èãã¨åããã¨ãæã£ã¦ããã®ã§ããã¾ã«ã¯æ¬é³ã§æ¸ãã¦ã¿ãã Railsã§ãæãè¯ãã¨ããã¯ããã¹ãã®éå½¢ãèªåçã«ä½ã£ã¦ããã¦ããã¹ãã®æ·å± ãä¸ãã¦ããã¦ãã¨ããã ã¨æãããªã®ã«ãããã«ã¤ãã¦è§¦ãã人ããã¾ãã«ãå°ãªããããªæ°ããããä¸å¿ãç§ã¯ã1å¹´å以ä¸ãã¯ã¦ãªã®ãã¼ã¯ã¼ãæ¤ç´¢ã§æ¯æ¥Railsã«ã¤ãã¦ã¯èª¿ã¹ã¦ããã®ã§ãã¯ã¦ãªã§Railsã«ã¤ãã¦æ¸ãã¦ãã人ã®è¨äºã¯ããã¦ãè¦ã¦ãã¾ãã çç±ã¯ãããã¤ãèãããã¾ãããç§ã®èªã¿ã ã¨ããã¹ããå½ããåã®äººã«ã¨ã£ã¦ã¯ãå½ããåããã¦ããããæ¸ãæå³ããªãããããã§ã¯ãªãå¤ãã®äººã«ã¨ã£ã¦ã¯ãã»ã¨ãã©ãã¹ãã¯æ¸ãã¦ããªãããããªãããªã å®ã¯ããã¹ããæ¸ãã®ã¯çµæ§å·¥æ°ããããã§ãããã¹ã¯ãªããè¨èªã¯ãã³ã³ãã¤ã©ããã¹ãæãã¦ããããã¨ã¯ãªãã®ã§ãJavaã¨æ¯
æµ·å¤ã§æ°åä¸äººã¨è¨ãããã¦ã¼ã¶ã¼ï¼äºåæ°ç¾ä»¶ã®é¢é£ã½ããã¦ã¨ã¢éçºããã¸ã§ã¯ãï¼æ°ç¾äººãè©°ãæããç±³å½ã®ã«ã³ãã¡ã¬ã³ã¹---ãªã¼ãã³ã½ã¼ã¹ã®ãªãã¸ã§ã¯ãæåããã°ã©ãã³ã°è¨èªRubyã¯ï¼æ¥æ¬ã§çã¾ãã¦ä¸çã§ä½¿ãããæ°å°ãªãã½ããã¦ã¨ã¢ã®ã²ã¨ã¤ã ããªãRubyã¯ä¸çã®æè¡è ã«æ¯æãããã®ãã ï¼èãæã¯é«æ© ä¿¡é ¼ï¼ITproå¯ç·¨éé·ï¼åçã¯æ°é¢ é å£«ï¼ ââãRubyã¯æµ·å¤ã«å¤ãã®ã¦ã¼ã¶ã¼ããã¾ãã æ£ç¢ºãªæ°ã¯ãããã¾ãããï¼æ°åä¸äººã¨è¨ããã¦ãã¾ããããããããã100ä¸äººä»¥ä¸ããããããã¾ããã æ¥æ¬ããæµ·å¤ã®ã¦ã¼ã¶ã¼ã®ã»ããå¤ãããã§ããã¡ã¼ãªã³ã°ã»ãªã¹ãã¸ã®æ稿éã§è¨ãã¨ï¼è±èªã®ãã®ã¯æ¥æ¬èªã®ç´10åããã¾ãã Rubyå°éã®ã«ã³ãã¡ã¬ã³ã¹(Ruby Conference)ã¯æ¥æ¬ãããæµ·å¤ã§å ã«å§ã¾ã£ããã§ããç±³å½ã®RubyConfã¯2001å¹´ããããè¡ããã¦ãã¾ããæ¯å¹´è¡ããã¦ã
ãã®æ¬ã¯ãã¯ã¤ã»ã¶ã»ã©ããã¼ã¹ãã£ã(why the lucky stiff)ã«ããææ ãè¾¼ãã¦æ¸ãããã ~ ç®æ¬¡ ~ ãã®æ¬ã«ã¤ã㦠ã³ã³ããããRuby ãã®æ¬ãéã ç¬ã®è©± 赤ã太é½ãæã æ¬ã¯ã©ã®ããã«å§ã¾ãã (漫ç»ã®ãããã¨å¦ã¶)çæéã®(ããã¦é¡ããã¯è¾ããªã)Rubyã³ã¼ã¹ è¨èªã¨ãè¨èªã§æå³ãã¦ãããã® åè©ç§ãã¾ã ããªãã®ãã¨ãåååä¾æ±ãã㦠ããªãã£ããªã ããªãã®æé·ãä¿ãããã®ä¾é¡ ããã¦çãæ ã¯ãã£ã¨ã¯ãã·ã§ã³åæ¢ãã æµ®ãã¦ããå°ããªã³ã¼ãã®èã£ã± ã¢ã³ããã¼ãºã«ãããã¹ãã¼ã¿ã¹ã·ã³ãã«ã¨ãã¦ã®èã£ã± å°ããã¦ã»ã¨ãã©ä¾¡å¤ã®ãªããã® å¦æ³ãã¤ãªãåããã ãããã¯ã®å¥è·¡ ã«ã¼ã«ãä½ããã®ã¨å¤¢ãçãããã® ããã¯æ¨©å©ã奪ããã人ã®ãã ã³ã³ãã¥ã¼ã¿ã®ããå å¨ã®ãªã«ã¬ã³æ師ã®è©±ã®ã¤ã¥ã ã¤ã®ã¯æ ç»ãå ¨é¨è¦ããã£ã¦ãã çã¾ãããã主 ã«ã¼ã«ãä½ãè ã㡠夢ã
ç¾éåååæ¾æ¯å ¨çä¼è´¨è¡ä¸å¯¼èªå¤æ¡ç½ç«é¢å¯¼è 为ä¸å°ä¼ä¸æä¾æ°ååãå¿«éåãè½»éåãç²¾ååçç½ç«é¾æ¥æå¡ dns1.dopa.com,dns2.dopa.com çæææ æ¬ç«å 容æªç»ä¹¦é¢è®¸å¯,ç¦æ¢ä¸åå½¢å¼ç转载 © CopyRight 2023 ç¾éåååæ¾click.com.cn    æµICPå¤20018420å·-2 æå·ç¾éç½ç»æéå ¬å¸
çããã¯ï¼æ¥åãç 究ãªã©ã§ã½ããéçºãè¡ãéã«ï¼ã©ããªããã°ã©ãã³ã°è¨èªãã使ãã§ããããã試ãã«çè ãå¤åããä¼ç¤¾ã®ç¥äººã«èãã¦ã¿ãã¨ï¼COBOLï¼FORTRANï¼Cï¼C++ï¼C#ï¼VisualBasicï¼VBï¼ï¼Javaï¼ABAPï¼1ã¨ãã£ãçããè¿ã£ã¦ãã¾ãããçããã®ä¸ã«ã¯ï¼ãããã®è¨èªã®ã»ãã«PerlãPHPã¨ãã£ãã¹ã¯ãªããè¨èªãã使ãã®æ¹ãããããããã¾ããã ããã§ç´¹ä»ããRubyã«ã¤ãã¦ååã ãã¯èãããã¨ãããã¨ããæ¹ãå¤ãã¨æãã¾ãï¼ã«ã³ãè¨äºãRubyã®ç¹å¾´ãåç §ï¼ãPerlãPHPã¨åãã¹ã¯ãªããè¨èªã§ãããã ãï¼Rubyã¯ãªãã¸ã§ã¯ãæåãæèãã¦è¨è¨ããã¦ããã®ã§ï¼ãªãã¸ã§ã¯ãæåã¹ã¯ãªããè¨èªã¨å¼ã°ãããã¨ãå¤ãããã§ãããã®ããï¼ãªãã¸ã§ã¯ãæåè¨è¨ï¼Object Oriented Designï¼ã«åºã¥ããããã°ã©ãã³ã°ãããéã«Rubyã¯å¤§ããªå¹æãçºæ®
Perl ã§ã® print debug ã®æ¹æ³ã®ç´¹ä»ããã¼ã (?)ã ã£ãã®ã§ãèªåãããè¡ã£ã¦ã Ruby ã§ã® debug æ¹æ³7ã¤ã«ã¤ãã¦æ¸ãã¦ã¿ã¾ãã p ãåãã®äººãå¤ã Kernel#p ã¡ã½ãããããã使ãã¨ãªãã¸ã§ã¯ãã®å 容ãè¦ãããå½¢ã§åºåãã¦ããã¾ãã >> p ({:foobar => :baz}) {:foobar=>:baz}Object#inspect ã使ãã¨ãp ã§åºåããã¨ãã¨åãæååã String ã¨ãã¦åå¾ã§ãã¾ãã >> puts ({:foobar => :baz}).inspect {:foobar=>:baz}åå¿è ã®é ãã® p ã§ã®åºåã使ãæ¹æ³ãããããªãã¦å°ã£ãè¨æ¶ãâ¦ã pp pp ã¨ããã©ã¤ãã©ãªã使ãã¨ãp ãããããè¦ãããå½¢å¼ã§åºåãã¦ããã¾ãããã¨ãã° >> a = Array.new(10) { {:foobar => :
ããã°ã©ãã³ã°è¨èªRubyã注ç®ãéãã¦ãã¾ããRubyé¢é£ã®æ¸ç±ã次ã ã¨åºçããï¼2006å¹´6æã«ã¯å½å åã®å¤§è¦æ¨¡Rubyã¤ãã³ãã§ãããæ¥æ¬Rubyã«ã³ãã¡ã¬ã³ã¹2006ããå¬ããã¾ãããã¾ãï¼Rubyã§æ¸ãããWebã¢ããªã±ã¼ã·ã§ã³ã»ãã¬ã¼ã ã¯ã¼ã¯Ruby on Railsï¼ä»¥ä¸Railsï¼ã話é¡ã¨ãªãï¼Rubyã®é«ãçç£æ§ãä¸è¬ã«ç¥ãããããã«ãªã£ã¦ãã¾ããã Rubyã®çç£æ§ã¯Javaã®10åã¨ãããããã¾ãããªãRubyã¯çç£æ§ãé«ãã®ã§ãããããããã¯ï¼Rubyã¯ãããããªè¨èªããåªããæãéãããããã¨ãåããè¨èªã ããã§ããRubyã®ç¹å¾´ã¯ãæ§æãå¼·åãªã®ã§ï¼è¿ éãªéçºãã§ãããã人ã«åªããè¨èªãªã®ã§ï¼æ¥½ããããã°ã©ãã³ã°ã§ããï¼1ããåé¡ãèµ·ããã«ããããã«è¨è¨ããã¦ããã®ã§ï¼åå¿è ã§ãç°¡åã«å®å ¨ã«ä½æ¥ã§ãï¼çç·´è ã¯é«åº¦ãªããã°ã©ãã³ã°ãè¡ãããã¨ãã£ãç¹ã§ã ãããã®
æè¿èªãã æ¬ã®ä¸ã§è¡æãåããæ¬ã®ã²ã¨ã¤ãããBeyond Javaãã æ£ç´ãªã¨ãããç§ã®ä¸ã§ã¯ãèªåãªãã®æè¦ãè¿°ã¹ãããã¨ããã¾ã§æ¶åã§ãã¦ããªããããããããæ¤ç´¢ãã¦ãããã¾ãæ¥æ¬èªã®ã¬ãã¥ã¼ãåºã¦æ¥ãªãã®ã§ãå 容ã«è¨åãã¦ããã ãã§ãæå³ããããã¨æãã軽ãã¬ãã¥ã¼ã ããã¦ã¿ããã¨æãï¼åãªãèªæ¸ææ³æã容赦ãã ããï¼ã ãã®æ¬ã¯ãä¸è¨ã§è¨ãã¨ããJavaã®æ代ã¯çµãã£ããã¨ããRubyè³è¾ã®æ¬ãªã®ã ããé常ã«èª¬å¾åã«å¯ãã§ããããã®ä¸çªã®çç±ã¯ãèè ã®Bruce A. Tateæ°ããé常ã«åªããJava wizardã§ãããã¨ã ãããç§ã¯æ®å¿µãªããBruce A. Tateæ°ã®èæ¸ãä»ã«èªãã ãã¨ãç¡ãã®ã ããã¡ããã£ã¨æ¤ç´¢ãã¦ã¿ãéãã§ã¯ãã軽快ãªJavaãã¨ããæ¬ãæåãªããã§ãAmazonã§ãããããè¯ãè©ä¾¡ãåãã¦ããããã ã Bruce A. Tateæ°ã¯ãæ¬æ¸ã®ä¸ã§
Ruby on Railsã¯æ¥çã®ä¸»æµã«ãªãã®ã§ããããï¼ (ä»ã¯PHPãããªãããããããã¦ãã¾ããããã®ãããã®ãã¸ã·ã§ã³ã«ãªãã®ã§ããããï¼) ãªãã¨ããããã¤ããã§ããããï¼ â»æ ¹æ ã¤ãã§çãã¦ããããã¨ãããããã§ãã
Joel Spolsky / éæ¨é 訳 2006å¹´9æ12æ¥ ç«æ ã¸ã£ãã¯ã»ããªã³ãã³ãRuby on Railsã®ããã©ã¼ãã³ã¹ã®åé¡ã«ã¤ãã¦ç§ã«ã¡ã¼ã«ããããã Unicodeã®åé¡ã¯èªãããRailsã«ã¯ã¾ã æçã®ããã®æéãå¿ è¦ã ã¨ãããã¨ãèªãããç§ã¯ããããã®Webãã¯ããã¸ã¼ã使ã£ã¦ããããã©ããä½ããã®åé¡ã¯æã£ã¦ãããã®ã ã ãããã¹ã±ã¼ã©ããªãã£ã®è©±ã«ã¯åæã§ããªããRailsã«åé¿ã§ããªããããªã¹ã±ã¼ã©ããªãã£ä¸ã®åé¡ãããã¨ã¯æããªãã ç§ããé¡ããããã®ã¯ãåã®ã¹ã±ã¼ã©ããªãã£ã®ã³ã¡ã³ãã«ãå°ãªãã¨ã説æãä»ãã¦ã»ããã¨ãããã¨ã ããã®ã¹ã±ã¼ã©ããªãã£ã®åé¡ã«ã¤ãã¦æãã¦ã»ããããã¨ãç§ãã¡ããããç´ããªãã£ãã¨ãã¦ããã³ãã¥ããã£å ¨ä½ãåã®çµé¨ããä½ãå¾ããã¨ã¯ã§ããã ããããã»ãã¤ããã¤ã¤ã»ãã³ã½ã³ã¯ããæ¸ãã¦ããã Railsã¯å¤§åã®Webã¢ããªã±ã¼ã·
_ Perlã¯ãã£ã±ããé§ç®ã failmalloc ã«é¢ãã¦ã Rubyã«ã¤ãã¦ã¯ä½è ã®ã¾ã¤ãã¨ããèªèº«ã対å¿ãã¦ãã ãã£ããã Pythonã«ã¤ãã¦ãNealããããå人çã«é£çµ¡ãåãããã¨ã ããã¸ã§ã¯ãã®å¢ããæããããå±éã§ããã¾ããã ç§ã¯ä¾ã«åºããªãã£ãã«ãé¢ãããã ããããä»ã«è©¦ãã¦ãã ãã£ãããã¸ã§ã¯ããããããã§ãã ãããä½ãã²ã¨ã¤ã ãå ¨ãåãã®ãªãããã¸ã§ã¯ãããã£ã¦ã ããã¯Perlãªãã§ãããã ç§èªèº«ã確ã4ã5å¹´ãããã¯Perl使ãã§ããã éä¸ã§ä¸åº¦Rubyãããã¼ã¨å§ããããããã©ã ãPerlã§åºæ¥ã¦ãã®ã«ä½ã§ã¾ãå¥ã®ãåå¼·ããªãããããªãã®ã ã ã¨ããããããã¿ã¼ã³ã§ãPerlãé·å¹´ä½¿ãç¶ãã¦ããã®ã§ããã ãããPerlã§æ¸ããã³ã¼ãã¯å ¨é¨ã´ãã«ãããªããªãã®ã¯çæãã¦ãã¦ã åã«æ¸ãããã®ã解èªããããããªãã ã¾ãä¸ããæ¸ãç´ããæ¹ãæã£åã
Ruby on Railsãå©ç¨ããããªã³ã ã®Drecom Career Searchãå社ã¯B2Cãµã¼ãã¹ã§Railsãæ¨æºã«æ¡ç¨ãã¦ãã [ç»åã®ã¯ãªãã¯ã§æ¡å¤§è¡¨ç¤º] ãã®ç±æ°ã«å ã¾ããªããï¼ãªãã ãããã¨ããä¼¼ãé°å²æ°ãæãããã¨ããããããªæ°ãããããªãã ã£ããããããã ãLinuxããã¬ã¤ã¯ããç´åã®ãã®ç±æ°ã ---6æã«è¡ãããæ¥æ¬Rubyã«ã³ãã¡ã¬ã³ã¹ï¼é¢é£è¨äºï¼ã§è¨è ãåããå°è±¡ã ã è¨è ãæåã«ãã¸ãã¹ç¨éã®ã½ããã¦ã¨ã¢ã¨ãã¦Linuxãæèããã®ã¯ç±³Netscape CommuncationsãLinuxããµãã¼ãããæ¹éãæããã«ããæã ã£ãã¨è¨æ¶ãã¦ãããæ£ç´è¨ã£ã¦æåã¯ãå人ã®ååãå ããã½ããã¦ã¨ã¢ãªãã¦ï¼ã©ããããã¼ç¨ã ãããã¨æã£ã¦ããããããï¼ããã§ã¯ã¨èª¿ã¹ãã°èª¿ã¹ãã»ã©ï¼Linuxä¸ã®ã½ããã¦ã¨ã¢ãï¼æ¡ç¨äºä¾ã¯ã¾ãã«å±±ã®ããã«åºã¦ããã 売ãããã§ããªã
rubyã¦ã¼ã¶ã¬ã¤ã ã¯ããã« Rubyã¯ããæ軽ãªãã¸ã§ã¯ãæåè¨èªãã ï¼ã¡ãã£ã¨ç¬ç¹ã§ã¯ãã ãï¼æ £ããã°æ¸ããããï¼ããç¨åº¦ã¯èªã¿ãããããã«ã§ãã¦ããï¼ ãã®ãRubyã¦ã¼ã¶ã¼ãºã¬ã¤ããã§ã¯å®éã«rubyãåããã¦ã¿ãªãã rubyã«æ £ãããã¨ã«ãããï¼ã¾ãï¼ããã¥ã¢ã«ã§ã¯åãããªã ããªããããªã£ã¦ããã®ããã¨ãããã¨ã説æãããã¨æãï¼ ç®æ¬¡ èµ·åãã¦ã¿ã rubyã®ç¹å¾´ ç°¡åãªããã°ã©ã æåå æ£è¦è¡¨ç¾ é åã¨é£æ³é å ç°¡åãªããã°ã©ã ãµããã³ rubyã®å¶å¾¡æ§é ã¤ãã¬ã¼ã¿ã£ã¦ãªã«ï¼ å ¥éã»ãªãã¸ã§ã¯ãæå ã¡ã½ãã ã¯ã©ã¹ ç¶æ¿ ã¡ã½ããã®åå®ç¾© ããã«ã¡ã½ããã«ã¤ãã¦(ã¢ã¯ã»ã¹å¶å¾¡) ç¹ç°ã¡ã½ãã ã¢ã¸ã¥ã¼ã« æç¶ããªãã¸ã§ã¯ã å¤æ°ã㡠大åå¤æ° ã¤ã³ã¹ã¿ã³ã¹å¤æ° ãã¼ã«ã«å¤æ° ã¯ã©ã¹å®æ° ä¾å¤å¦ç å¾å§æ«ãå¿ããã«(ensure) Last modified: M
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}