「あなたは map 派?それとも collect 派?」 Rubyist であれば、一度はこんな質問を受けたことがあるのではないでしょうか。たとえば Rubyist Magazine の過去の記事を紐解くと、まつもとゆきひろさんのインタビュー や角谷信太郎さんのインタビュー でその話題が出ていますね。 ここでいう map と collect とは、Enumerable#map メソッドと Enumerable#collect メソッドのことですが、リファレンスマニュアルを見ていただくと分かる通り、どちらも全く同じ動作をするメソッドになります。 そして Enumer...
書いた人:るびま編集長 高橋征義 編集長からの 0038 号発行の挨拶です。(難易度:高) Ruby の歩き方 Ruby をはじめるにあたって必要な情報をご紹介します。本稿は Rubyist Magazine 常設記事です。(難易度:低) Rubyist Hotlinks 【第 30 回】 遠藤侑介さん Rubyist へのインタビュー企画。今回は遠藤さんにお話を伺いました。(難易度:超絶技巧) map と collect、reduce と inject ―― 名前の違いに見る発想の違い 書いた人: 郡司啓 Rubyist なら誰でも聞かれる「あなたは map 派...
でも、RubyKaigi のジュンク堂出張店に置いてくれたおかげか、予想より売れてるみたいですよ。ちなみに、今別の本の翻訳が進行中です。Types and Programming Languages 。通称 TAPL 。レンガ模様の赤い本。
JRuby 1.7.0.preview1 is our next installment of the JRuby 1.x series. Please check out our
typedef struct mrb_state { void *jmp; mrb_allocf allocf; mrb_value *stack; mrb_value *stbase, *stend; mrb_callinfo *ci; mrb_callinfo *cibase, *ciend; mrb_code **rescue; int rsize; struct RProc **ensure; int esize; struct RObject *exc; struct kh_iv *globals; struct mrb_irep **irep; siz...
そんな中でアジャイル開発の精神を浸透させるために、「クレド」という小さなメモ帳のようなものにアジャイル開発の重要な点、精神を書いて毎日読み上げることから始めたり、プロジェクトで使うちょっとしたツールを作るイベントを開催してメンバーの一体感を高めたりして良いチームを創り上げるように工夫したそうです。
(Ruby API Builder Language) version 0.6.12 has just been released. RABL is a popular way to craft service or API responses of all types (JSON, XML, Plist, Msgpack, et al). There have been many improvements in the last few releases including performance, caching, direct renderers, Rail...
Released Ore 0.9.1 Posted by postmodern on May 21, 2012 — 0 comments Released Ore 0.9.1. Contains minor stylistic improvements to the templates. You don't have to use Bundler to create a new RubyGem. $ gem install ore $ mine my_project Comments Post a Comment Comment abilities for...
You could argue that it wasn’t really my first real language because I never got a complete grasp on it, although I did things with variables and inputs and so on, learned about order of operations and procedural execution (although not in those terms), and typed in lots of programs f...
The HTTP method PUT means resource creation or replacement at some given URL. Think files, for example. If you upload a file to S3 at some URL, you want either to create the file at that URL or replace an existing file if there's one. That is PUT. Now let's say a web application has a...
is Mike Gunderloy's software development weblog, covering Ruby on Rails and whatever else I find interesting in the universe of software. I'm a full-time Rails developer and contributor, available for long- or short-term consulting, with solid experience in working as part of a distri...
そこで、神戸セミナーでの経験を踏まえて、Rails 3.1 3.2 での開発環境を整える手順をまとめておきます。対象 OS は、Windows XP/Vista/7 です。「手順通りやったけどうまく行かなかった!」という方は、Windows の種類を明記の上、[email protected] までメールでお問い合わせください。また、「いちおうインストールできたけど、微妙に説明通りではなかった」という経験をした方も同アドレスまで情報をお寄せいただけると助かります。
Monday, May 21, 2012 at 5:31AM Week of May 14 - May 20, 2012 In addition to the code changes below, I want to mention the contributors to docrails, who are doing a great job of keeping the Guides up to date with the edge code. Check out their work at http://edgeguides.rubyonrails.org/...
RailsInstaller is a new project from Wayne E Seguin (of RVM fame) that brings RubyInstaller -style simplicity to getting Ruby and Rails set up on Microsoft Windows (XP, Vista, or 7). In a single wizard-driven installation you get Ruby 1.8.7-p330 (with DevKit ), Rails 3.0.3, Git, and S...
git add -e is like git add -p , except instead of adding things at the hunk level, you edit the entire patch at once. Or, in other words, whereas git add -p will show you each hunk for every file and ask what you want to do for each of them, git add -e will show you the entire patch a...
JRuby-OpenSSL is an add-on gem for JRuby that emulates the Ruby OpenSSL native library.
New to Rails 3? Check out the Ruby on Rails 3 Tutorial book and screencast. A book and screencast series showing you how to develop and deploy industrial-strength Rails apps in a direct, step by step way. The screencast series includes 12 lessons over more than 15 hours! Get the best ...
jquery-spinner-rails 1.0.0 The jquery.spinner.js and jquery.spinner.css files. install gem install jquery-spinner-rails Download Documentation Subscribe Stats Authors Kevin Sylvestre 14 total downloads 14 for this version Owners Links Homepage Gemfile gem "jquery-spinner-rails", "~> 1...
Fig is a utility for configuring environments and managing dependencies across a team of developers. Given a list of packages and a command to run, Fig builds environment variables named in those packages (e.g., CLASSPATH), then executes the command in that environment. The caller's e...
So finally I managed to get me a place in the blogosphere. Hey! The main purpose of this blog will be to keep a log of (my) activities related to improving performance of the Rails web application framework. A good deal of work already went into performance improvement since realease ...
テンプレートシステムとは、テンプレートとなるファイルをメインプログラムから読み込み、必要な箇所を書き換えて出力する仕組みのことです。 現在では Web アプリケーションにおいて動的に Web ページを生成するのによく使われます。 本シリーズでは、Web アプリケーション用のテンプレートシステムについて基本から理解してもらうことを目的とします。 また各種のテンプレートシステムについても紹介します。 第 1 回目となる本稿では、テンプレートシステムが生まれた歴史を紐解きます。 動的に Web ページを生成する方法が進化してきた過程を見ることで、テンプレートシステムの利...
money-rails stats overview Overview 0.2.0 0.1.0 0.0.1 This library provides integration of RubyMoney - Money gem with Rails 1,155 total downloads 7 downloads today 4,117 / 174,624 highest rank today
Database constraints and/or stored procedures make the validation mechanisms database-dependent and can make testing and maintenance more difficult. However, if your database is used by other applications, it may be a good idea to use some constraints at the database level. Additional...
Issue #21: How to practice (1 of 2) 2011-09-06 16:00, written by Gregory Brown Originally published as part of the first volume of the Practicing Ruby newsletter on January 22, 2011. Most of these issues draw inspiration from discussions and teaching sessions at my free online school,...
#349 Rails Modularity May 09, 2012 | 13 minutes | Rack , Models , Performance Rails is a modular framework allowing you to include only what you need. Here I show how the smallest Rails app works, and then I take a look at how to whittle down a full Rails application stack. Subscribe ...
#207 Syntax Highlighting (revised) May 11, 2012 | 8 minutes | Views , Plugins Here I compare several syntax highlighting solutions and show how to use Pygments in a Rails app. I also show how to integrate it with Markdown and add caching. Subscribe to Watch Episode Tweet Show Notes AS...
On Feb 8, 2006, at 12:01 PM, Yukihiro Matsumoto wrote: > might be a little bit faster, but practically you can consider them > same. > > matz. > I didn't know yield could be considered "defined" or not. Does this mean yield is not a key word? irb(main):014:0> def quby irb(main):015:1>...
Clojure provides a few different options for creating functions inline: fn (or the #() reader macro ), partial, and comp. When I first got started with Clojure I found I could do everything with fn and #(); and that's a good place to start. However, as I produced more Clojure code I f...
RSpec とは、公式サイト の説明によれば、「プログラムの振舞 (behaviour)」を記述するためのドメイン特化言語 (DomainSpecific Language:DSL) を提供するフレームワーク」 です。 プログラムの振舞? ドメイン特化言語?……順番に説明させてください。 プログラムの振舞 (behaviour) 「プログラムの振舞」とはプログラム全体あるいは様々なレベルでの部分 (モ ジュールやクラス、メソッド) に対して期待する振舞 (behaviour:ビヘイビア) の ことです――といっても何も特別なものではありません。 具体例で説明しまし...
Yields each record that was found by the find options . The find is performed by #find_in_batches with a batch size of 1000 (or as specified by the :batch_size option). Example: Person .where ("age > 21" ).find_each do | person | person .party_all_night! end Note: This method is only ...