In computer programming, duck typing is an application of the duck testâ"If it walks like a duck and it quacks like a duck, then it must be a duck"âto determine whether an object can be used for a particular purpose. With nominative typing, an object is of a given type if it is declared as such (or if a type's association with the object is inferred through mechanisms such as object inheritance).
ããæå³ã®ããã£ã¦ããªãã£ãDuck Typingã®ãã¨ãç解ã§ããé常ã«ãã£ããã Duck Typing ã¢ãã«ã®ããã«æ©ããã¢ãã«ã®ããã«ãªããã®ã¯ã¢ãã«ã åã§ãªãã¡ã½ããã«ããæ´åæ§ ããªã¢ã¼ãã£ãºã ã®å¯è½æ§ã®è¿½æ± å°æ¥ã®å¤æ´ã«å¼·ã å ã¯ãã¾ã¤ãã¨ããã®ç波大ã§ã®è¬ç¾©ãããè³æã®å ¬éã«æè¬ã http://www.rubyist.net/~matz/slides/tsukuba-seminar2/mgp00038.html ä¸æ¥ç®ã®è³æããããhttp://www.rubyist.net/~matz/slides/tsukuba-seminar1/ äºæ¥ç®ã®è³æããããhttp://www.rubyist.net/~matz/slides/tsukuba-seminar2/
RailsMeetingTokyo-0015: ä»æ´ãªããCapistranoã触ã£ã¦ã¿ã¾ããã ã»ãã·ã§ã³ã®æ¦è¦ SwitchTowerã®ããã«è»½ã触ã£ããã®ã®æªã ã«ã¡ããã¨éç¨ãããã¨ã¯ãªãã§ããããä¸åº¦æåãã¬ã·ãã®æ¸ãæ¹ã復ç¿ãã¦ãã§ããã°ã½ã¼ã¹ãã¡ãã£ã¨èªãã§ã¿ããã¨ããã§ãã詳ãã人ãæãã¦ãã ããã åå è ã¨ãã®ã¾ã¨ã Yugui: http://idm.s9.xrea.com/ratio/2007/02/25/000589.html æ²¢ç°: http://d.hatena.ne.jp/swdyh/20070218/1171798440 ã¾ã¡ã : http://www.machu.jp/diary/20070218.html Isoparametric: http://d.hatena.ne.jp/Isoparametric/20070219/1171846658 ã¨ãã®ã:
ã¾ãã¯ã¤ã³ã¹ãã¼ã« # gem install capistrano railsã¢ããªã±ã¼ã·ã§ã³ã«çµã¿è¾¼ãã§ã¿ã $ cap --apply-to ~/project/garakuta è¨å®ãã¡ã¤ã«ãçºã(LANå ã®è¨å®ãªã®ã§ãµã¼ãã¼åãªã©ã¯é©å½) $ emacs ~/project/garakuta/config/deploy.rb set :application, "garakuta" set :repository, "svn://vaio/var/svn/project/garakuta/trunk" role :web, "vaio" role :app, "vaio" role :db, "vaio", :primary => true set :deploy_to, "/home/garakuta/webapp" set :user, "garakuta" å ¬éç¨ãµã¼ãã¼ã
18æ¥ã® Railsåå¼·ä¼ ã«è¡ã£ã¦ããã åå ååã¯4ã¤ã®ã»ãã·ã§ã³ã«åããããç§ã¯Capistranoã»ãã·ã§ã³ã®ãªã¼ãã¼ã«ãªã£ãã å æ¥ä¼ç¤¾ã§ãããã¤ããã¨ãã«ãã¹ãããããã¦ãã¾ã£ã¦ããããã¤ãã¼ã«ã®éè¦æ§ã身ã«æã¿ããããã§ä»ã¾ã§ã¯ããã»ã©ã¡ããã¨è§¦ã£ããã¨ã¯ãªãã£ãããã©ããã²ã¨ã¤Capistranoã触ã£ã¦ã¿ããã¨æã£ã¦ã»ãã·ã§ã³ãéããã Capistrano ã¯Rubyã§æ¸ããããããã¤ãã¼ã«ã§ãRakeããããã¤ä½æ¥åãã«å¼·åãããããªãã®ã ãåºæ¬ã¯Rakeãªã®ã§Rakeã¨ãMakeã¨ãAntã¨ãã使ã£ããã¨ãããã°æããªãã ããã©ã«ãã§ã¯Railsã¢ããªã±ã¼ã·ã§ã³ã®æ§æã«åãããè¨å®ã«ãªã£ã¦ããããã©ããè¨å®(ã¬ã·ãã¨å¼ã°ãã)ãå¤æ´ããã°ä»»æã®ã¢ããªã±ã¼ã·ã§ã³ã«é©ç¨å¯è½ã§ãããå®éã ã¯ã¦ãª ã§ã¯Perlã¢ããªã±ã¼ã·ã§ã³ã«é©ç¨ãã¦ãããããã次ã®æ¡ä»¶ãæºããç°å¢
Railsåå¼·ä¼@æ±äº¬ç¬¬23å ã«è¡ã£ã¦ããã2é±éé ãã ãã©ã¬ãã¼ãããã åå¼·ä¼ã®å½¢å¼ã¯ ãã¤ãã®ãã¨ã ã ãã ãä»åã¯è©¦é¨çã«ãæ¼é£æ親ä¼ããè¡ãªã£ãã ããã§è©±ãã¦ãããã¡ã«ãã¡è§£ãã¦ã»ãã·ã§ã³ãå¼¾ãã®ã§ã¯? ã»ãã·ã§ã³ã®æéãæ½°ãã¦é·ãèªå·±ç´¹ä»ãããªãã¦ããèªç¶ã«ç¸æãèªèã§ããã®ã§ã¯? ã»ãã·ã§ã³æ¡ãèªç¶ã«åºã¦ããã®ã§ã¯? å¤ã®ã飲ã¿ä¼æ親ä¼ããããå®ãæ¸ãã®ã§ã¯? ã¨ãã趣æ¨ã ããããã好è©ã ã£ã模æ§ããã ãç§ã¯ã©ããå æ°ãåºãªãã¦é ãã¦ãã£ãã®ã§æ親ä¼ã¯æ®ã©åºã¦ãªãã åå ååã¯3ã¤ã®ã»ãã·ã§ã³ã«åãããã Rails 2.0ãèªãã åå¿è ã»ãã·ã§ã³ - Scaffoldã®åæ©å ã« ãã ãã åã åå¿è ã»ãã·ã§ã³ã¯ååã¨åãå 容ã ããã ãScaffoldã¯è©¦ãã¦ã¿ãããã©ããã®å ã¸é²ããªãã¨ããRailsåå¿è ã®ããã«ãScaffoldã§çæãããã¢ãã«ãã³ã³ããã¼ã©
TextMate for macOS Powerful and customizable text editor with support for a huge list of programming languages and developed as open source. Download TextMate 2.0 Requires macOS 10.12 or later. Multiple Carets Making multiple changes at once, swapping pieces of code, and a lot more is made trivial with TextMateâs easy way to add multiple insertion points. File Search Select what you want to search
This document provides an overview of a presentation titled "AP4R" given at RubyConf 07 by Kiwamu Kato and Shun'ichi Shinohara of Future Architect, Inc. It introduces AP4R as an asynchronous processing library for Ruby that uses messaging to enable loose coupling. Key points covered include the motivation for developing AP4R based on their experience with an in-house messaging middleware, typical
RubyForgeã®ããã¸ã§ã¯ããµã¤ã㨠slideshare ã«ã¦å ¬éãã¦ãã¾ãã å½æ¥ã¯æéã®é½åä¸ãSAF æ©è½ã¨ãã¹ããµãã¼ãã«ã¤ãã¦è¦ç¹ã®ã¿ã®ç´¹ä»ã§ãããããã¡ãã¯ãã«ãã¼ã¸ã§ã³ã®è³æã¨ãªãã¾ãã RubyForge: AP4R_on_RubyConf2007.pdf AP4R on RubyConf2007 » SlideShare çºè¡¨ã®æ¨¡æ§(é°å²æ°)ã¯ãã¡ãã®ã¨ã³ããªã§æ¸ãã¦ã¾ãã RubyConf2007 ã§ã®çºè¡¨ãç¡äºçµäºãã¾ãã - kiwamuæ¥è¨ #Confreaks ã«ããåç»é ä¿¡ã¯ä»é±æ«ãç®å¦ã«ããã°ãã¿ããã§ãã 以ä¸ãåèãªã³ã¯ã¨ãªãã¾ãã ç¹éï¼AP4Rï¼Rubyã§éåæã¡ãã»ã¼ã¸ã³ã°ï½gihyo.jp ããã¸ã§ã¯ããµã¤ã ã¦ã¼ã¶ã¼ ML (è±èª) ã¦ã¼ã¶ã¼ ML (æ¥æ¬èª) ã½ã¼ã¹ ãã¼ã ãã¼ã¸ (æ¥æ¬èª) ãã¼ã ãã¼ã¸ (è±èª) Getting st
Rakefile Format (as of version 0.8.2) First of all, there is no special format for a Rakefile. A Rakefile contains executable Ruby code. Anything legal in a ruby script is allowed in a Rakefile. Now that we understand there is no special syntax in a Rakefile, there are some conventions that are used in a Rakefile that are a little unusual in a typical Ruby program. Since a Rakefile is tailored to
â Rake Rake ã¨ãããã®ãããã¾ãã Ruby ã§è¨è¿°ã§ãã make ã¿ãããªãã®ã ããã§ã task :default => [:test] task :test do ruby "test/unittest.rb" end ã¨ãã£ãæãã«æ¸ããããã§ãã ãªããªãé¢ç½ããã ã¨æã£ãã®ã§ãã¡ãã£ã¨è§¦ã£ã¦ã¿ããã¨æãã¾ãã ãã¾ãæ¨æ²ãã¦ãã¾ããããdoc/rakefile.doc ã訳ãã¦ã¿ãã®ã§æ²è¼ãã¾ãã ãªããRake 㯠MITã©ã¤ã»ã³ã¹ã§ãã â Rakefile ãã©ã¼ããã ã¾ããRakefile ã®ããã®ç¹å¥ãªãã©ã¼ãããã¯åå¨ãã¾ããã Rakefile ã¯å®è¡å¯è½ãª Ruby ã®ã³ã¼ããå«ãã§ãã¾ãã Ruby ã¹ã¯ãªããã¨ãã¦åæ³ãªè¨è¿°ã¯å ¨ã¦ãRakefile ã§ã許ããã¦ãã¾ãã Rakefile ã®ããã®ç¹å¥ãªææ³ãåå¨ããªããã¨ãç解ããã®ã§ã R
Compress the complexity of modern web apps. Learn just what you need to get started, then keep leveling up as you go. Ruby on Rails scales from HELLO WORLD to IPO. Youâre in good company. Over the past two decades, Rails has taken countless companies to millions of users and billions in market valuations. These are just a few of the big names. There have been many hundreds of thousands of apps cre
â» ãã®è³æã«ã¤ã㦠2006å¹´4æã®åå¼·ä¼è³æãCapistranoã®ãã¼ã¸ã§ã³ã¢ããï¼ç¾æç¹ã§ã¯1.3.1ã«ãªã£ã¦ã¾ããï¼ã«ããä»æ§å¤æ´ãªã©ã«åããã¦ã¡ãã£ã¨ä¿®æ£ãããã®ã§ãã 質çå¿çã®é¨åã¯å½æã®ã¾ã¾ãªã®ã§æåã®è³ªåãåã ããã§ãã Capistranoã£ã¦ä½ãªã®ã ãããã¤ãã¼ã« ãããã¤=é å åè : Capistrano: Automating Application Deployment ä¸è¨ã§è¨ãã¨è¤æ°ã®ãµã¼ãä¸ã§åæã«ä¸¦è¡ãã¦ã³ãã³ããå®è¡ã§ãããã¼ã«ã è¤æ°ã®ãµã¼ãã§åãã¦ãããµã¼ãã¹ã®ãããã¤ã楽ã«è¡ããã¨ãã§ããã Railsèµ·æºãªã®ã§Railsã«ç¹åããé¨åãããããã»ãã®ã¢ããªã±ã¼ã·ã§ã³ã§ã使ããã æã¯SwitchTowerã¨å¼ã°ãã¦ãããã¯ã¦ãªã§ã使ããã¦ãã ä½ãããã®ã è¤æ°ãµã¼ãã¸ã®ä½æ¥ãå¹çåãèªååã§ãã å®ç¾©æ¸ã¿ã®æ¨æºã¿ã¹ã¯ã«æ²¿ã£ãéç¨ããã
RO69 :: News Today :: ã¬ãã£ãªãããããã¼ããã©ã³æ代ãç·æ¬ãã豪è¯ï¼æçµBOXã»ããã12æã«çºå£²ï¼ Radiohead DRM-free "box-set" - Boing Boing ä¸ççã«è©±é¡ã¨ãªã£ããã¥ã¼ã¢ã«ãã ã®å¤ä»ãèªç±ã®ãã¦ã³ãã¼ã販売ãè¡ã£ã Radiohead ã7æçµCDããã¯ã¹ã»ãããçºå£²ããã â¦â¦ã ãã ã¨é©ããªãããDRMããªã¼ã®ãã¸ã¿ã«ãã¦ã³ãã¼ã販売ãè¡ãããwav ãã¡ã¤ã«ããªãã¨4GBã® USB ã¹ãã£ãã¯ã§ã販売ããã¨ããã®ã ãããããã 詳ãã㯠RADIOHEAD STORE ã§ã©ããã ã³ãã¼ã1åã¨ã10åã¨ãäºã£ã¦ããã®ã¨ã¯æ¬¡å ãéã豪快ãã¨ãããã
çªç¶ã§ãããæ°å¤©å°ã¸åããåºçºã§ã¼ããã¨ããããã§ãbookscannerè¨ã¯ãçµäºã§ã¼ãã ã¿ãªãããããã¾ã§ããããã¨ãããã¨ããã¾ããã¤ããã©ããã§ãå¥ãªãããã¢ãã¯ï¼ãããï¼ãªããããæ¸ãã¯ããããããããªãã®ã§ãçºè¦ãããããä»ãåããã¦ãããããã¯ã¯éãã©ãæ¸ãã£ã·ãã¯ä¸ç·ã«ãããã ã¨ããããã§ãæå¾ã«ä½ãè¨ãããã®ãã£ã¦ããã¨ãããããããªãã ãã©ã ã³ãã³ãã¹ã®ã¢ã¡ãªã«çºè¦ã«ã¤ãã¦ãããããå½¼ã®å大ãªç¹ã¯ã©ãã«ãããã»ã»ã» ããã¯è¥¿åãã®ã«ã¼ãã§ã¤ã³ãã¸æ è¡ããã®ã«ãå°çãçå½¢ã§ãããã¨ãå©ç¨ãããã¨ããã¢ã¤ãã£ã¢ã§ã¯ãªãã£ãã»ã»ã»ãã®ã¢ã¤ãã£ã¢ã¯ãã§ã«ã»ãã®äººã ã«ãã£ã¦èãããããã®ã§ãã£ãã»ã»ã» å½¼ã®æ¢æ¤ã®æ éãªæºåãè¹ã®å°éçãªè£ åãªã©ã¨ãããã¨ã§ããªãã£ãããããã®ãã¨ã¯ãã»ãã®äººã§ããããã¨ããã°ãããã«éããªãã ããã§ã¯ãªãã¦ããã®çºè¦çèªæµ·ã§æãå°é£ã§ãã£
é ãã°ããªããããã¦ã§ãæ代ããããèªäºãç®æ¬æè¬ã WoWã«æ²¡é ãããã¦ãã¦ãèªã¿çµããã®ãããã¶ãé ããªã£ã¦ãã¾ã£ãã ä»åèªã¿å§ããã®ãé ããªã£ã¦ãã¾ã£ããã¨ãããã èªã¿å§ããåã«ããã®æ¬èªãã§ããã¶ãåæ°ä»ããããã¨ããã³ã¡ã³ãã ç¥äººã®ä½äººãããèãã¦ããã ãã®ä¸ã«ã¯ãä»å¹´ãã社ä¼äººã«ãªã£ãæ°åã®ã¨ã³ã¸ãã¢ãããã°ã ãã§ã«ã好ããªãã¨ãã貫ãã¦ä¸ã®ä¸ã§ã®èªåã®ãã¸ã·ã§ã³ã確ç«ãã¦ãã人ãããã ããã§ãããã¡ãå´ã¨ãã¡ãå´ãããé«ééè·¯ãã¨ãããããªã æ¢ ç°æ°ãã¦ã§ãé²åè«ã§ã¾ã¨ãããç´¹ä»ãããããè¨èã¯ã ç§ãã¡ã®ä¼è©±ã®ä¸ã§ãã°ãã°ä½¿ããããã®ã¨ãªã£ãã å½¼ã¯ä»ã§ã¯ã½ã¼ã¹ã³ã¼ãã¯ä¸è¡ãæ¸ãã¦ããªããããããªããã ã½ããã¦ã§ã¢ãã®ãã®ã§ã¯ãªãã ã¦ã§ãã«ã¤ãã¦è«ããéã«åºç¤ã¨ãªãæ¦å¿µãã¾ã¨ããããã®ã ã ããããè¦ç¹ã§è¦ãã¨ããæ¬æ¸ã§è¿°ã¹ããã¦ãããããã®ã¿ã¡ãã ããã¼
JavaScript ã«ãããé«éããã°ã©ãã³ã° ã¨ããè¨äºãèªã¿ã¾ããã é«éããã°ã©ãã³ã°ã¨ã¯é«éé¢æ°ã使ã£ãããã°ã©ãã³ã°ã®ãã¨ã§ããé«éé¢æ°ã¨ã¯?é«éé¢æ°ã«ã¤ãã¦ã以ä¸ã®ãããªè¨è¿°ãããã¾ããããã°ã©ãã³ã°è¨èªã«ããã¦ãé¢æ°ãå¼æ°ã«ãããããããã¯é¢æ°ãæ»ãå¤ã¨ãããããªé¢æ°ã®äºã§ãããå¼æ°ãæ»ãå¤ã®é¢æ°ãã¾ãé«éé¢æ°ã¨ãªãå¾ããããã¯ä¸»ã«é¢æ°åè¨èªããã®èæ¯çè«ã§ããã©ã ãè¨ç®ã«ããã¦å¤ç¨ããããæ°å¦ã§ãåæ§ã®æ¦å¿µã¯ãããæ±é¢æ°ã¨å¼ã°ãããWikipedia -- é«éé¢æ° é¢æ°ãå¼æ°ã«ããããé¢æ°ãæ»ãå¤ã¨ããææ³ã£ã¦ãRuby ã JavaScript ã§ã¯å½ããåã«ä½¿ãã¾ãã ä¾ãã°ãã¯ãã¼ã¸ã£ã使ãã£ã¦é¢æ°ãè¿ãå¤ã¨ãã¦ä½¿ãä¾ãè¦ã¦ã¿ã¾ããfunction multiple(a){ return function(num){ return a * num; } } //
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}