ãããã User Streams ã® Basic èªè¨¼æã¡åã£ãã https éå®ã«ããããããã¨ãããã¢ãã¦ã³ã¹ãåºã¦ãããã¦ãã¦ãããã OAuth ã«ç§»è¡ãããã¨ãããã¨ã§ä»æ´ãã£ã¦ã¿ãã EventMachine ã ã¨ã gem ã®ã¢ã¬ã¨ãã¢ã¬ã¨ãããã®ã ããã©ããªãã EventMachine ã§ãã£ããæ°åã§ã¨ã©ã¼ãåããã«æµããªããªã£ããããã®ä»ã®ä½¿ããé°å²æ°ãé¸ãåºãã¦ãã gem éããã¾ãèµ·åããªãã£ãã®ã§ãèªåã®è§£æ±ºçãæ¸ãã¦ãããã㨠mongodb ã«ãã®ã¾ã¾å ¥ããããjson ãã®ã¾ã¾æ¬²ããã¨ããã®ãããã ã¾ãããã® each_line ã¡ã½ããããUser Streams ãå©ç¨ããã³ã¼ãã«è¿½å ãã¦ãããããã¯Basicèªè¨¼ã®é ããã®ã³ã¼ã使ãåãã ã㨠OAuth gem ã¯å ¥ãã¦ãããsudo gem install oauth ã¨ããããªæãã§ã
å®è¡ããããã°ã©ã ã³ã¼ãã«å¯¾ãã¦å²è¾¼ã¿ãå¦çãææãããã¨ã"ããã¯"ã¨è¨ãããRubyã§ã¯ãããããããã¯ãå®è£ ããã®ãé常ã«ç°¡åã ã ä¾ãã°ãä»»æã®ã¯ã©ã¹ã®ã¡ã½ããã«ããã¯ãã¦ãåå¦çãå¾å¦çãæ¿å ¥ãã¦ã¿ããã hook1.rb class String alias_method :old_split, :split def split(arg) puts "before split: #{self.inspect}" result = old_split(arg) puts "after split: #{arg.inspect} -> result #{result.inspect}" result end end p "foobar".split(//) å®è¡çµæ >ruby hook1.rb before split: "foobar" after split: // -> r
Web ãããããã¼ã®ç¥å ¸ã«è¡ã£ã¦ãããä»åã¯ãé路沸ãã«ç¨æãããæ¯è¼ççãã¹ãã¼ã¹ã§éå¬ãããã 以ä¸ãã¡ã¢ã¨èªåã®åæãªææ³ãã¾ã¨ãã¦ããã ã¯ãã¯ãããã«ã¤ãã¦ æ¯æ¥ã®æçãæ¥½ãã¿ã«ãããã¨ã§å¿ããã®ç¬é¡ãå¢ãã 1998å¹´ã«ãªã¼ãã³ å»å¹´ã®ãªãã¥ã¼ã¢ã«ã®ã¨ãã« Rails ã§ä½ãç´ãã ä½¿ãæ¹ ã¬ã·ããã®ãã ã¬ã·ããããã æéã¦ã¼ã¶æ° 547ä¸äºº Rails ãµã¤ãä¸ä¸ç7ä½ (from rails 100 wiki)ãã¾ãã1ä½ãscribd.comã¨ã¯ æé 2.8å PV(PVã§ã¯ãRais ãµã¤ãä¸ä¸ç3ä½) ç»é²ã¬ã·ãæ°: 47ä¸å ãã©ãã£ãã¯ã¯ã16-18æãããããã¼ã¯(å¤é£¯ãä½ãåã«èª¿ã¹ãã¦ã¼ã¶ãå¤ãã¨ã®ãã¨) ç§ãããã¬ã³ã¿ã¤ã³ã«ããã¦ãã©ãã£ãã¯ã伸ã³ã(æ¥é±ã¯ãã¼ã¯ã ã¨ãããã¨ã§ãæè¿ã¯ããã©ã¼ãã³ã¹åä¸ã«ä¸å¿ã«ãã£ã¦ãã) ã¦ã¼ã¶æ°: 547ä¸äºº(ã
termtterã¯ã¿ã¼ããã«ã§åãTwitterã¯ã©ã¤ã¢ã³ã ããã¨ãã Rubyã§æ¸ããã¦ãã¦ããã©ã°ã¤ã³ãæ¸ãã°ç°¡åã«æ©è½ãæ¡å¼µã§ãã ãã£ããããæ°åãæç¨¿ã§ããTwitterã¯ã©ã¤ã¢ã³ãã¯termtterã ã nowa ãµã¼ãã¹çµäºã®ãç¥ãã ãã°ãã¹ã¯ãã¼ã«ãã¦èªããããCtrl-lã§ç»é¢ãã¯ãªã¢ã§ããã®ã§ãæªèªç®¡çã§ãã éçºãè¶ æ´»çº(GitHubã§ååä½ã§æ´æ°ããã¦ãã) jugyo/termtter · GitHub å人çã«ã¯ã¾ã£ãã¨ãã ã¿ã¼ããã«ã®è¨å®ã«ãã£ã¦ã¯è²ä»ãæåã表示ã§ãããç»é¢ãä¹±ãã¦ãã¾ã ruby -e '0.upto(255){|num| print "\e[#{num}m#{num}\e[0m "}' è¨å®ãé©åãªããããã§ã«ã©ãã«ãªæåã表示ããã ç»é¢è¡¨ç¤ºãä¹±ããã¨ãã¯ãè¨å®ãã¡ã¾ã¡ã¾å¤ãã æå ã®Leopardã®è¨å® Terminal.app
ä»åã¯ã第20åã®ãWebã¨ã³ã¸ãã¢æ¦åä¼ãã«ç»å ´ããã ããæ¥æ¬Rubyã®ä¼ä¼é·ã»ãã¤ã³ã¹ãã¼ã¯ã·ãã¢ããã°ã©ã髿©å¾ç¾©ãæ°ã®ãç´¹ä»ã§ãogijunãããã¨ãã³ã³ããã¼ã«ãã©ã¹æ ªå¼ä¼ç¤¾ã®è»éæ·³ä¹ããã«ã話ããèããã¾ãããè»éããã¯Rubyãã¯ãããããããã«ã³ãã¡ã¬ã³ã¹ã«è¶³ãéã³ãèªãã®å¸«ãã³ãã¥ããã£ã®ç¹ãããä½ããã¦ãã¾ããããããªã¨ã£ã¦ãç±ãã¦ã¨ã£ã¦ãã¯ã¬ãã¼ãªogijunããã®çããã¾ã«é ããããã¤ã³ã¿ãã¥ã¼ãååã«ã楽ãã¿ãã ãããç±ãã¤ã³ã¿ãã¥ã¼ã¯150åã«ãåã¶ãã³ã°ã¤ã³ã¿ãã¥ã¼ã«ãªãã¾ãããåç·¨å¾ç·¨ã«åãã¦ãå±ããã¾ããåæã¯ããã¶ã¤ãã¼ãºãã³ã·ã§ã³ãå©ç¨ãããªãã£ã¹ããåããã¾ããã è»éæ·³ä¹ãæ° â 1975å¹´çã¾ããæ°æ½ç糸éå·å¸åºèº«ã â æ±äº¬é½ç«å¤§å¦å¨å¦ä¸ããããã°ã©ãã³ã°ã®ã¢ã«ãã¤ããã¯ãããããªã¼ã©ã³ã¹ãèµ·æ¥ãªã©ãçµé¨ãã¤ã¤æ°ç¤¾ãçµãæ«ã2007å¹´8æããã³
____ ï¼ ï¼¼ããï¼ï¼¼ã ï½·ï¾ï½¯ .ãããããï¼ãï¼ã¼ï¼ ãï¼ã¼ï¼ï¼¼ ï¼ãã âï¼__人__ï¼â ï¼¼ |ãã ããã|râ¬-|ãããã|ããRuby 1.9ã¯ã¯ãªã¹ãã¹åã«ãªãªã¼ã¹ãã¾ã ï¼¼ãããã `ã¼'´ãã ï¼ ããããããããããã ãï¼¼ ï¼Â´ãããããããããããã ããã½ |ããããï½ããããããããããããããï¼¼ ã½ããã -ä¸''''''"~~ï½`'ã¼--、ããã-ä¸'''''''ã¼-、. 㽠____(â)(â)â)ã)ãã(â_(â)â)â)) ____ ï¼_ã ãã½ï½¤_ï¼¼ ï¾ãï¾ãï¾ããoï¾(ï¼âï¼) (ï¼âï¼)ï¾oããããããï¾ãï¾ãï¾ /â)â)â. ::::::âï¼__人__ï¼â:::ï¼¼ããã/â)â)â) |ã/ã/ã/ããããã|râ¬-|ãããã|ã(â)/ã/ / /ï¼ |ã:::::::::::(â)ãããã|ã|ã |ã
ããªãã«ã¨ã£ã¦éè¦ãªãããã¯ãååã®ææ°æ å ±ãå ¥æãã¾ãããææ°ã®æ´å¯ã¨ãã¬ã³ãã«é¢ããææ°æ å ±ãå³åº§ã«åãåãã¾ãããã ç¶ç¶çãªå¦ç¿ã®ããã«ãç¡æã®ãªã½ã¼ã¹ã«æè»½ã«ã¢ã¯ã»ã¹ãã¾ãããããããã¯ããã©ã³ã¹ã¯ãªããä»ãåç»ãããã³ãã¬ã¼ãã³ã°ææã è¨äºãä¿åãã¦ããã¤ã§ãèªããã¨ãã§ãã¾ãè¨äºãããã¯ãã¼ã¯ãã¦ãæºåãã§ããããã¤ã§ãèªãã¾ãã
ã¯ããã«ã2004å¹´ã«åãã¦ãªãªã¼ã¹ãããRails Webã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ã¯ãRubyè¨èªã®ãã©ã¼ã¢ããªã±ã¼ã·ã§ã³ã«ãªããCRUDï¼CreateãReadãUpdateãDeleteï¼ãã¿ã¼ã³ã«åºã¥ãWebã¢ããªã±ã¼ã·ã§ã³ãçæéã§ä½æã§ããé常ã«å¼·åãªãã¼ã«ã¨ãã¦æ¥éã«æ®åãã¾ãããããã¦2007å¹´æ«ãä»ããã£ããæåã«ãªã£ããã®Webã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ã®ãã¼ã¸ã§ã³2.0ããªãªã¼ã¹ããã¾ãããæåã®ãªãªã¼ã¹ã®ã¨ãã»ã©ã®é©ãã¯ããã¾ããããRails 2.0ã¯ãã¯ãå¤ãã®ã¤ããã¼ã·ã§ã³ãå®ç¾ããéçºãããå¹ççã§æ¥½ãããã®ã«ãã¦ãã¾ãããæ¬ç¨¿ã§ã¯ãRails 2.0ã®æ¦è¦ã¨ãæãéè¦ãªæ°ããæ©è½ã説æãããããã使ã£ã¦ã·ã³ãã«ã§ãç®ãå¼ãWebã¢ããªã±ã¼ã·ã§ã³ã使ããæ¹æ³ãç´¹ä»ãã¾ããããããã15åã§ããã°ãä½ããã¨ãããããªä¾ã§ã¯ãªããããã§ç´¹ä»ããã¢ããª
å®ã¯å ±éç¹ã®å¤ãRubyã¨JavaãJavaã¨ã³ã¸ãã¢ã§ãããJavaã¨Rubyã®ä¸¡æ¹ã®ã¤ã³ã¹ãã©ã¯ã¿ã¼ã§ãããçè ãè´ããJavaã¨ã³ã¸ãã¢ã®ããã®Rubyå ¥éã ååãJavaã¨ã³ã¸ãã¢ã«ãããRubyã®è¯ããåãããã§ã¯ãJavaã¨Rubyã®æ¦è¦ã¨æ´å²ã使ããæ¹ã«ã¤ãã¦ç´¹ä»ãããªãJavaã¨ã³ã¸ãã¢ãRubyã®å¦ç¿ã«åãã¦ããã®ãã«ã¤ãã¦è§£èª¬ãã¾ããã ä»åãã2åã«ããã£ã¦ãå ·ä½çã«Rubyã¨Javaã®ææ³ãæ¯è¼ãã¦ã¿ã¾ããJavaã¨ã³ã¸ãã¢ãRubyãå¦ã¶éããããã¯ãããªãééã§ãããã¨ãããããªå ±éããé¨åã¨ããããã¯éããããèªèããå¿ è¦ããããã¨ãããããªRubyã«ãã£ã¦Javaã«ãªãé¨åããããã¤ãç´¹ä»ãããã¨æãã¾ãã ã¾ãã¯ãJavaã¨ã³ã¸ãã¢ãã»ã¨ãã©æ¸æããã¨ããªãã¨æããããJavaã¨Rubyã®å ±éç¹ãããã¤ãæãã¦ã¿ã¾ãã Javaã¨Rubyã®å ±éç¹ï¼1ï¼ï½
ã¯ããã«ãRubyã¯ã¤ã³ã¿ããªã¿ã«ãã£ã¦è§£éãããã¹ã¯ãªããè¨èªã§ãJavaã¯ã³ã³ãã¤ã©ã«ãã£ã¦ã³ã³ãã¤ã«ãããããã°ã©ãã³ã°è¨èªã§ããRubyã¯ããªãã¸ã§ã¯ãæåè¨èªã§ããå³å¯ãªåæå®ãè¡ãã¨ããç¹ã§ã¯Javaã«ä¼¼ã¦ãã¾ããããããRubyã®åæå®ã¯åçã§ããã®ã«å¯¾ããJavaã®åæå®ã¯éçã§ããRubyã§ã¯å宣è¨ã¯ä½¿ç¨ããããJavaã§ã¯å宣è¨ã¯å¿ é ã§ããJavaã¨Rubyã®ã©ã¡ãã«ãç¶æ¿ãããã"ãããªãã¯"ã"ãã©ã¤ãã¼ã"ã"ãããã¯ã"ã®ã¡ã½ãããããã¾ããRubyã¯Javaããåç´ã§Javaããé«éã§ããRubyã¯ãã¾ãã¾ãªç¹ã§Javaã¨ç°ãªã£ã¦ãã¾ããæ¬ç¨¿ã§ã¯ãRubyã¨Javaã®ä¸»è¦æ©è½ãæ¯è¼ãã¾ããã¤ã³ã¿ããªã¿æ¹å¼ã¨ã³ã³ãã¤ã©æ¹å¼ãRubyã¯ã¤ã³ã¿ããªã¿æ¹å¼ã®ã¹ã¯ãªããè¨èªãªã®ã§ãã³ã³ãã¤ã«ãã¦ãã¤ãã³ã¼ããçæãããã¨ãªããç´æ¥å®è¡ã§ãã¾ãããã¨ãã°ãRubyãã¡ã¤ã«
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}