A quick overview of a few of the best bits in Ruby 2.0.
Ruby 2.0 has a cool new feature that many people talk about: TracePoint. TracePoint essentially allows you to hook into Ruby’s events and listen for events. Being curious and since I just started a brand new Rails 4/Ruby 2 app, I decided to write a little middleware and see what Rails is up to when handling incoming requests. Here is my TracePoint Rack Middleware. class TracePoint class Middleware
“I always get so frustrated trying to dig through a project new or old, and trying to trace the flow of execution and how things fit together...” You can't afford complicated code. Writing small and easily testable methods can certainly clean things up, but as your application grows your classes start to know too much. Large classes means a large cognitive overhead for understanding how things wor
Purely functional programming in Ruby Shugo Maeda 2012-09-15T10:00:00 - 2012-09-15T10:30:00 Who am I? ラベル • 前田修吾 • Rubyコミッタ • ネットワーク応用通信研究所取締役 • Rubyアソシエーション事務局長 1 I love fishing But, no fish today :-( Programmers wanted! http://www.netlab.jp/recruit/ 広告 ※画像はイメージです What is functional programming? このプレゼンテーションでの定義 • 副作用を用いないプログラミング • 純粋な関数プログラミング = まったく副作用を用いないプログラミング 純粋な関数プログラミングを部分的に使う • Rubyでは、汚い
))) Ruby向けパターンマッチライブラリ「pattern-match」を作った先日ポストしたScalaっぽいパターンマッチをRubyで実装するをベースに 一通り機能を揃えてライブラリ化した(pattern-match)。 面白そうなパターンをいくつか例に取ってみると、まず多重代入。 match([0, [1, 2, 3, 4]]) { with(_[a, _[b, *c, d]]) { # `Array.(a, Array.(b, *c, d))'と同じ p [a, b, c, d] #=> [0, 1, [2, 3], 4] } } Gaucheのutil.match由来の___、__k。 match([[0, 1], [2, 3]]) { with(_[_[a, b], ___]) { p [a, b] #=> [[0, 2], [1, 3]] } } 赤黒木のbalance(参考
While Node.js is the hot new kid on the block, evented libraries like EventMachine for Ruby and Twisted for Python have existed for a long time. When does it make sense to use one over the other? What are the advantages and disadvantages to using node over ruby? This video explains how to get the same power of concurrency enjoyed by Node.js while continuing to write in the language you know and lo
2011年度助成金成果報告 2011年度助成金では、以下の二つのプロジェクトを実施しました。 世界の誰でも読めるRubyリファレンスマニュアル(に向けて) krypt 各プロジェクトの成果は助成委員会の評価を受けた上で、それぞれのプロジェクトサイトで公開されています。以下は、最終報告の概要です。 世界の誰でも読めるRubyリファレンスマニュアル(に向けて) 原 悠 PrismDocは、以下のことを目標としたプロジェクトです。 Rubyの標準ライブラリのドキュメントの翻訳をやりやすくすること。 日本語、英語、その他の言語のドキュメントを統合して表示すること(php.netのようように) デモ: http://blazing-ice-2849.herokuapp.com/ ソースコード: https://github.com/yhara/prismdoc/ 英語のドキュメント PrismDoc
By Ilya Grigorik on October 21, 2009 Server push is the most efficient and low latency way to exchange data. If both the publisher and the receiver are publicly visible then a protocol such as PubSubHubbub or a simpler Webhook will do the job. However, if the receiver is hidden behind a firewall, a NAT, or is a web-browser which is designed to generated outbound requests, not handle incoming traff
RailsTips One man, lazily posting some of the things he learns. subscribe » Update (6/13/2008): I posted a bit more on the topic with example uses in the wild. First, let me preface this article with a fact: I’m new to Ruby, however, new is relative in that statement. I’ve been toying with Ruby for over a year but only in the last two months have I really started to code in Ruby and Rails. Ruby is
Ruby Doc Ruby Doc is an entirely offline and mobile version of the complete Ruby 1.9 documentation. You can search by method or you can navigate among classes and you can use it everywhere without internet connection! Go to the Ruby Doc App page » Rails Doc Rails Doc is an entirely offline and mobile version of the complete Ruby on Rails 3 API documentation. Offline reading and powerful search e
(島国としてのRuby) スピーカー Dave Thomas - Dave is a principal in The Pragmatic Programmers, LLC ( http://pragmaticprogrammer.com ) プロフィール Dave Thomas is a writer, trainer, and primarily a programmer. He's the author of 7 books, including The Pragmatic Programmer (with his partner Andy Hunt), Programming Ruby, and Agile Web Development with Rails. He first started using Ruby in 1998. He's the author of RDoc
『るびま』は、Ruby に関する技術記事はもちろんのこと、Rubyist へのインタビューやエッセイ、その他をお届けするウェブ雑誌です。 Rubyist Magazine について 『Rubyist Magazine』、略して『るびま』は、日本 Ruby の会の有志による Rubyist の Rubyist による、Rubyist とそうでない人のためのウェブ雑誌です。 最新号 Rubyist Magazine 0058 号 バックナンバー Rubyist Magazine 0058 号 RubyKaigi 2018 直前特集号 Rubyist Magazine 0057 号 RubyKaigi 2017 直前特集号 Rubyist Magazine 0056 号 Rubyist Magazine 0055 号 Rubyist Magazine 0054 号 東京 Ruby 会議 11 直
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く