25 Mar '12, 12am

Jay Fields' Thoughts: Ruby: Defining Class Methods:

"This [, Class.method,] is the version that recent Java/C# converts seem to prefer. I'm not a big fan of this version because it requires me to change all the class method definitions if I change the name of the class." I think it's all a matter of perspective. Class.method seems less magical and makes more sense to me. Especially since Self changes so readily. Since many Ruby purists frown on this I avoid doing it but I dislike Self.method as it is less clear to me. ESPECIALLY when refactoring; contrary to your complaint. If I were to use Class.method I would instantly know what class I'm refactoring and wouldn't have to worry about some recursive reference to Self that might or might not be in play. Using the class name is more precise while using self muddies the waters. Also when you say, "...it requires me to change all the class method definitions if I change the nam...

Full article: http://blog.jayfields.com/2007/10/ruby-defining-class-met...

Tweets

Class: ActiveRecord::ConnectionAdapters::TableD...

api.rubyonrails.org 26 Mar '12, 2am

Represents the schema of an SQL table in an abstract way. This class provides methods for manipulating the schema represen...

Ruby on Railsで複合キーを扱う(3)

oiax.jp 27 Mar '12, 1pm

# coding: utf-8 require 'spec_helper' describe Department do let(:department0) { FactoryGirl.create(:department, code: "ro...

Did not realize that so many people had used my...

rubylearning.com 25 Mar '12, 1am

By Satish Talim RubyLearning.com is a thorough collection of Ruby Study Notes for those who are new to the Ruby programmin...

Mutable and Immutable Objects: Ruby Study Notes...

rubylearning.com 25 Mar '12, 5pm

Let us understand what we are doing here - a and b are two variables both of which are pointing to a string object - Origi...

10 websites built using ruby on rails

10 websites built using ruby on rails

railshosting.org 24 Mar '12, 10pm

The top 10 websites built with Ruby on Rails Posted by Collin on 05/19/2011 in Rails Tutorials . Ruby is a growing force i...

integrating PHP and Ruby On Rails - Ruby Forum

ruby-forum.com 24 Mar '12, 7am

check out if they have a REST-api and access this API using one of the numerous tools available like ActiveResource or Htt...

Coffee Class: Tweet reddit_url = " reddit_title

Coffee Class: Tweet reddit_url = " reddit_title

coffeecupnews.org 25 Mar '12, 9pm

Coffee Class is centered around a topic. We will do a demo around that topic and it will be our starting point for a more ...

@jmaicher Oh, right. Missed that. There are sev...

ruby-forum.com 25 Mar '12, 7am

Is there any good reason why Hash#map does not give back a Hash (Ruby 1.8 but same in 1.9 as far as I know)? I often find ...

@adamson_claire tech cartoon/how to guide via rails girls

@adamson_claire tech cartoon/how to guide via r...

mislav.uniqpath.com 24 Mar '12, 11pm

Concerning Commercial Uses of the (Poignant) Guide This book is released under a Creative Commons license which allows unl...

Jay Fields Thoughts: Ruby: Adding a "not" metho...

blog.jayfields.com 01 Apr '12, 5pm

Fair enough. The example was contrived, and thus lost some of it's value I'm sure. Although, I do prefer obj.not.nil? to j...

stupid ruby tricks

robots.thoughtbot.com 23 Mar '12, 6am

At first glance, this barely looks like valid Ruby. But somehow, it just makes sense: it splits up the array. If you’re go...

Oldie but I enjoy this post on Ruby's inject me...

blog.jayfields.com 28 Mar '12, 8pm

I find the inject solution less readable than something like: a = [1,2,3,4,5,6].map{|x| x.to_s if 0 == x % 2}.compact or a...

NIH Phasing Out Class B Dealers, Pets Still Need Our Help | Care2 Causes

NIH Phasing Out Class B Dealers, Pets Still Nee...

care2.com 24 Mar '12, 7am

The National Institutes of Health (NIH) recently announced that it will no longer allow researchers who use federal funds ...

WATCH: Forrester analyst @johnrrymer and learn ...

engineyard.com 27 Mar '12, 1am

In this educational video, Forrester VP and Principal Analyst John Rymer argues Platform as a Service (PaaS) holds the key...

link: 2010 article but still worth reading #en ...

yehudakatz.com 22 Mar '12, 6pm

Tore Darell , Posted February 21, 2010, 7:10 am I think one of the things that makes Ruby what it is is the forced encapsu...