4. äºåæºå â¢ãã®ã¡ã½ãããã©ã®ãããªå½¹å² ãªã®ããããèãã ⢠役å²ãæ¥æ¬èªã§è¨ã表ãããä» äººã«èª¬æã§ããç¶æ ã«ãã¦ãã æ ªå¼ä¼ç¤¾ ä¸è 2012å¹´3æ9æ¥éææ¥
4. äºåæºå â¢ãã®ã¡ã½ãããã©ã®ãããªå½¹å² ãªã®ããããèãã ⢠役å²ãæ¥æ¬èªã§è¨ã表ãããä» äººã«èª¬æã§ããç¶æ ã«ãã¦ãã æ ªå¼ä¼ç¤¾ ä¸è 2012å¹´3æ9æ¥éææ¥
ããã°ã©ãã³ã°ãããæ·±ãç解ããããã®è¿éã¯ãããã°ã©ãã³ã°è¨èªãå®è£ ãã¦ã¿ããã¨ãSchemeã®ãµãã»ãããRubyã§å®è£ ãã¦ãããã¨ã§ãããã°ã©ã ã¯ã©ãå®è¡ãããã®ãããã®åºæ¬ãã¯ã£ããåããã¾ãã â»æ¬æ¸ã¯CC BYã«ããé å¸ããã¦ãã¾ããä¸è¨ã®ãè²·ãç©ããã¸ããã¿ã³ããã¯æåã§è³¼å ¥ã§ãã¾ããç¡æã§å ¥æãããå ´åã¯ãä¸è¨ãªã³ã¯ãããã¦ã³ãã¼ããã¦ãã ããããªããæåçãç¡åçãå 容ã¯åä¸ã§ãã EPUBçPDFçå 容紹ä»ããã°ã©ã ã¯æ¸ãã¦ãããã®åºç¤ã¨ãªã£ã¦ããè¨ç®æ©ç§å¦(ã³ã³ãã¥ã¼ã¿ãµã¤ã¨ã³ã¹) ã®ç解ããããµããªäººããèè ã¯å¤ãè¦ã¦ãã¾ãããããã°ã©ãã³ã°ã«èªä¿¡ãããã¨ãã人ããããä¸æ©å ã«é²ããéã示ãããã¨ããã®ãããã®ææ¸ãæ¸ãå§ããåæ©ã§ãã ãã®ææ¸ãèªããã¨ã§æ¬¡ã®å¹æãå¾ããããã¨ãæå¾ ãã¦ãã¾ãã ããã°ã©ãã³ã°è¨èªã¨ã¯ä½ããæ·±ãç解ãããã¨ã§ãããã°ã©ãã³ã°ã®ã¬ã
LambdaDriver by yuroyoro Rubyã§ãProcãlambdaã§é¢æ°åæã§ããããã«ãããã£ãã®ã§ãlambda_driver.gemã¨ããã®ãä½ã£ãã å 容çã«ã¯ãã®è¾ºã§æ¸ããã¤ããgemã«ããæãã ãé¢æ°åRubyãã¨ããç (2) - é¢æ°åæ Proc#compose - ( êªâêª) ããããæ¥è¨ ãé¢æ°åRubyãã¨ããç (3) - ã«ãªã¼å(Proc#curry, Proc#flip) - ( êªâêª) ããããæ¥è¨ ãããªé¢¨ã«ãã«ãã³ããã³ã¼ããæ¸ããã require 'lambda_driver' # [:foo, :bar, :baz].map{|s| s.to_s }.map{|s| s.upcase } # [:foo, :bar, :baz].map(&:to_s).map(&:upcase) [:foo, :bar, :baz].map(
Rubyã«ã¯å¤§éã®ã¡ã½ãããããã¾ãã次ã®ã³ã¼ãã§Ruby1.9.3ã«å«ã¾ããã¡ã½ããæ°ãæ°ãããåç´åè¨ã§1659åãã¦ãã¼ã¯æ°ï¼ååã1ã¨æ°ãã¦ï¼ã§937åã¨åºåããã¾ããã all_methods = ObjectSpace.each_object(Module).flat_map do |c| c.methods(false) + c.instance_methods(false) end.reject { |m| "#{m}".start_with? '_deprecated' } all_methods.size # => 1659 methods = all_methods.uniq methods.size # => 937 ã¤ã¾ãRubyã«ã¯ã937åãã®ç°ãªãååã®ã¡ã½ãããããã®ã§ããåã¡ã½ããåã¯ããã®åä½ãæ©è½ã端çã«è¡¨ç¾ãããã®ã§ãªããã°ãªããªãã®ã§ããã®ä¸ã¤ä¸
ã¯ã¦ãªã°ã«ã¼ãã®çµäºæ¥ã2020å¹´1æ31æ¥(é)ã«æ±ºå®ãã¾ãã 以ä¸ã®ã¨ã³ããªã®éããä»å¹´æ«ãç®å¦ã«ã¯ã¦ãªã°ã«ã¼ããçµäºäºå®ã§ããæ¨ããç¥ãããã¦ããã¾ããã 2019å¹´æ«ãç®å¦ã«ãã¯ã¦ãªã°ã«ã¼ãã®æä¾ãçµäºããäºå®ã§ã - ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãã®ãã³ãæ£å¼ã«çµäºæ¥ã決å®ãããã¾ããã®ã§ã以ä¸ã®éãã確èªãã ããã çµäºæ¥: 2020å¹´1æ31æ¥(é) ã¨ã¯ã¹ãã¼ãå¸æç³è«æé:2020å¹´1æ31æ¥(é) çµäºæ¥ä»¥éã¯ãã¯ã¦ãªã°ã«ã¼ãã®é²è¦§ããã³æ稿ã¯è¡ãã¾ãããæ¥è¨ã®ã¨ã¯ã¹ãã¼ããå¿ è¦ãªæ¹ã¯ä»¥ä¸ã®è¨äºã«ãããã£ã¦æç¶ãããã¦ãã ããã ã¯ã¦ãªã°ã«ã¼ãã«æ稿ãããæ¥è¨ãã¼ã¿ã®ã¨ã¯ã¹ãã¼ãã«ã¤ã㦠- ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãå©ç¨ã®ã¿ãªãã¾ã«ã¯ãè¿·æãããããããã¾ãããã©ãããããããé¡ããããã¾ãã 2020-06-25 è¿½è¨ ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ã®ã¨ã¯ã¹ãã¼ããã¼ã¿ã¯2020å¹´2æ28
åæ£KVS kumofs ã®ã³ã¼ãã¯ãå ¨ä½ã§ç´2ä¸è¡ã§ãã ãã®ãã¡ããããã¯ã¼ã¯I/Oããããã³ã«ã«é¢ããã³ã¼ãã¯ç´1ä¸è¡ã§ãå ¨ä½ã®ç´ååãå ãã¦ãã¾ãã 並åã¤ãã³ãé§åI/Oãã¬ã¼ã ã¯ã¼ã¯ãmpioããªãªã¼ã¹ ãããã¯ã¼ã¯ã¢ããªã±ã¼ã·ã§ã³ãå®è£ ããä¸ã§ããã£ã¨ã大ããªéå£ã¯ããããã¯ã¼ã¯I/Oã¨ãããã³ã«ã§ãã ã§ã¯ãããã両æ¹ã¨ããã¬ã¼ã ã¯ã¼ã¯ã§ãµãã¼ããããã³ã¼ããæ¸ãå¿ è¦ãç¡ããªã£ããã©ãã§ããããï¼ 54è¡ã§ç°¡åãªåæ£KVSãå®è£ ãããã140è¡ã§åæ£ãªã¢ã«ã¿ã¤ã æ¤ç´¢ã¨ã³ã¸ã³ãå®è£ ãããã¨ãã§ãã¾ããããªãã¡ãã¤ã³ããã¯ã¹ä½æãµã¼ããæ¤ç´¢ãµã¼ããDBãµã¼ããªã©ãå¤æ°ã®ãµã¼ããé£æºããã¹ã±ã¼ã«ã¢ã¦ãã®æ©æµãå¾ããã¨ãã§ãããããã¯ã¼ã¯ã¢ããªã±ã¼ã·ã§ã³ããï¼å°ã®ãã¹ãä¸ã§åä½ãã並åã¢ããªã±ã¼ã·ã§ã³ã¨ã»ã¼åãããã«æ¸ããã¨ãã§ãã¾ãã å®è£ ä¸ã®åé¡ãã解æ¾ãããã°ã並åæ§ãèé害
ããæ°å¹´ãä¼ç¤¾ãè¾ãã¦èªåã®ãã¼ã¹ã§ä»äºãè«ãè² ãããªã¼ã©ã³ã¹ã¨ããå½¢æ ã§ä»äºããã人ãå¢ãã¦ãã¾ããããªã¼ã©ã³ã¹ã«ã¯æ§ã ãªè·æ¥ãããã代表çãªãã®ã§ã¯ç¿»è¨³æ¥ãã¤ã©ã¹ãã¬ã¼ã¿ã¼ãYouTuberãããªã¼ã©ã³ã¹ã«åé¡ããã¾ããããã¦ä»£è¡¨çãªããªã¼ã©ã³ã¹ã®è·æ¥ãããä¸ã¤ããã¾ããããã¯ããã°ã©ãã¼/ã¨ã³ã¸ãã¢ã§ãããã®ããã°ã©ãã³ã°ã®å¤§é¨åãå ããå·¥ç¨ãã³ã¼ãã£ã³ã°ã§ãããç¥èã¨æè¡ã身ã«ã¤ããã°ãæ§ãã®ããªã¼ã©ã³ã¹ã«éæ¿ããããã¨ã夢ã§ã¯ããã¾ããã ããã§ã¯ã³ã¼ãã£ã³ã°ã®ç¥èã¨æè¡ãåå¾ããã«ã¯ã©ã®ãããªã«ã¼ããããã®ã§ããããï¼ç¾å®ã¨ãã¦å¦æ ¡ã«éãããããã°ã©ãã³ã°ãè«ãè² ãä¼ç¤¾ã«å ¥ç¤¾ãããããããã¯ç¬å¦ã§åå¾ãããã®ãããããé¸æãããã¨ã«ãªãã¾ããããã§ä»åã¯æãè²»ç¨ã®å°ãªãç¬å¦ã§ã³ã¼ãã£ã³ã°ãå¦ã¶æ¹æ³ãç´¹ä»ãããã¨æãã¾ãã ç¬å¦ã§ã³ã¼ãã£ã³ã°ã®ç¥èã¨æè¡ã身ã«ã¤ããã«ã¯ ã¾ãã¯ã
100人ã®ãããé¸ãã ã½ããã¦ã§ã¢éçºã®åèãåã®ããã«é¸ãã 1å ãåºçããããç§ã¨ Ruby ã¨æ·»åã¨ãã¨ããå 容ã§å¯ç¨¿ãã¾ãããç§ãã©ãããã°ã©ãã³ã°ã»ãªã¼ãã³ã½ã¼ã¹ã®æ¥½ãããç¥ã£ããã«ã¤ãã¦ã®æ話ã§ããå ¬éãã¦è¯ããã¨ã®ãã¨ãªã®ã§å ¬éãããã¾ãã ãªããæç« ä¸ã«åºã¦ãã tdiarytimes.rb ã®ã³ã¼ãã¯ä»¥ä¸ã§ãã9å¹´åã«æ¸ããã³ã¼ããªã®ã§ä»èªã¿è¿ãã¨æ¥ãããããéãè¶ãã¦ãã¯ãå¾®ç¬ã¾ããã§ããï¼ï¼ï¼ããã§ãå½æã¯ãèªåãªãã«ã§ããã ã綺éºãªã³ã¼ãã«ãã¦å ¬éããè¨æ¶ãããã¾ãã https://github.com/tdiary/tdiary-contrib/blob/master/plugin/tdiarytimes.rb ç§ã¨ Ruby ã¨æ·»å㨠ããã°ã©ãã³ã°æè¡ã®åä¸ãããã«ã¯ãã©ãããæ¹æ³ãããã§ãããããããã°ã©ãã³ã°ã«é¢ããæ¸ç±ãèªãããªã¼ãã³ã½ã¼ã¹ã§å ¬éããã¦
Pryã¯çµæ§åããgithubã®ãªãã¸ããªã追ãããã¦ãã人éã«ã¯èªç¥ããã¦ãã¾ããããRailsCastsã§ãç´¹ä»ããããã¨ãããRubyçã§ä¸æ°ã«åºãããè¦ãã¦ãã¾ãã ã¡ãªã¿ã«çºé³ã¯pra'i(ã·ãã)ã§ããè±åèªã§ãè¦ãããªã©ãæå³ãã¾ãã ä»åã¯ãããªä¾¿å©ãªPryã«ã¤ãã¦å°ãç´¹ä»ãããã¨æãã¾ãã Pryã¯irbã®ä»£ããã«ãªãREPL Pryãä¸è¨ã§èª¬æããã¨ãirbã¨åæ§ã«REPLç°å¢ãæä¾ãã¦ããã¾ãã ã§ã¯ããã£ããã¤ã³ã¹ãã¼ã«ãã¦ã¿ã¾ãããã
ã¤ã¼ããfold ã®å¼±ç¹ã¨ãã¦ãè¨èªã«ãã£ã¦å¼æ°ã®é çªãã¾ã¡ã¾ã¡ã§ã æ£ç´æ¶ããããªãã£ã¦ã®ããããã ããªã誰ã対å¿è¡¨ã¨ãä½ã£ã¦ããããããã jijixi's diary - fold, map, for-each ãã®ä¸ããä¸ã¤é¸ã¶ã¨ãããã©ãï¼ ç¢ºãã«ããããã¨ãããããã®ã§ã¾ã¨ãã¦ã¿ã¾ããã ããã¤ãã®è¨èªã«ã¤ãã¦å¤§éæã«è¡¨ã«ããã¨æ¬¡ã®ãããªæãã è¨èª é¢æ° Haskell, OCaml, Scheme, Erlang foldl* f init items C++ accumulate(begin, end, init, f) Ruby*, JavaScript items.inject(init, f) Python, Perl* reduce(f, items [, init]) è¨èª ç³ã¿è¾¼ãäºé æ¼ç® Scheme(SRFI)*, Erlang f(item, acc)
æååæä½ã®æ¯è¼è¡¨: Ruby, Python, JavaScript, Perl, C++ Ruby, Python, JavaScript, Perl, C++ ã®æååæä½ã®æ¯è¼è¡¨ãä½ãã¾ãããé åæä½ã®æ¯è¼è¡¨ã®ç¶ç·¨ã§ããééããªã©ããã£ãããææããã ããã¨å©ããã¾ãã Ruby (String) Python (str) JavaScript (String) Perl C++ (std::string)
é åæä½ã®æ¯è¼è¡¨: Ruby, Python, JavaScript, Perl, C++ ããã°ã©ã ãæ¸ãã¦ããã¨ãä»ã®ããã°ã©ãã³ã°è¨èªã®è¨æ¶ã¨ãã£ã¡ãã«ãªã£ã¦ããé åã®å¾ãã«è¦ç´ ã追å ããã®ã¯ push ã ã£ãã append ã ã£ãããªã©ã¨æ··ä¹±ãããã¨ãããã¾ããç¹ã« Ruby, Python, JavaScript ã¯ã³ã¼ãã®æ¸ãæ¹ãä¼¼ã¦ããã®ã§ããã®åé¡ãèµ·ããã¡ã§ãã ããã§ãåå¿é²ã¨ãã¦ã Ruby, Python, JavaScript, Perl, C++ ã®é åæä½ã®æ¯è¼è¡¨ãä½ãã¾ãããä¸çªæ £ãã¦ãã Ruby ãåºæºã«ãã¦ãã¾ããééããªã©ããã£ãããææããã ããã¨å©ããã¾ããä»ã®è¨èªã®ãããã¨ãããªãã Ruby (Array) Python (list) JavaScript (Array) Perl (@) C++ (std::vector)
ãã«ã¹ã¿ãã¯ãã¦ãªã®Railsãããã¾ã§å¿ è¦ãªãããã¨ãERBã§ã´ãªã´ãªãã¡ã³ãã¯ã»ã¼ããã£ã±ãRailsã§ããªã©ã¨ãé½ã¯ã¾ãã®ã¼ããããããã¦ã¼ãããRubyã®Webãã¬ã¼ã ã¯ã¼ã¯ã¯ä»ã«ããããã©ãã軽ãã¦ãããã ãPHPã使ããããªãã ããªãã ã ãããªæ©ã¾ããã解æ¶ãã¦ããããã¬ã¼ã ã¯ã¼ã¯ãçºè¦ãã¦ãã¾ãã¾ããããSinatraãã§ãããã¾ããããã¤ã¯ã軽ããã ã Sinatra ãµã¤ãã®ããããã¼ã¸ã«æ¸ããã¦ããã³ã¼ãããããããµã¯ãµã¯æããããåºãã¦ããã¦ãã¾ãã require 'rubygems' require 'sinatra' get '/hi' do "Hello World!" end 説æèªã¾ãªãã¦ã解ãããããã æ¥æ¬èªã®è§£èª¬ã¹ã©ã¤ããããã¾ãããã解ã解説ã¼ã å ¬å¼ãµã¤ãã®READMEãèªãã°ãã ãããOKã Sinatra: README ãã©ã¡ã¼ã¿ãåå¾ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}