01 Apr '12, 5pm

Jay Fields Thoughts: Ruby: Adding a "not" method for readability:

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 just obj. I think it's more expressive. But, I recognize that's a personal preference, which also goes against mainstream ruby. Jeff, You can definitely write the conditional statement in the way that you described; however, I prefer the version from my example since it's easier to read. I love the unless keyword when it's used following a statement; however, I dislike it when it begins a block of code. I find it harder to mentally parse. Perhaps I'm just slow. ;) Erik, "premature optimization is the root of all evil". --Donald Knuth While your statement that method_missing and send are expensive is correct , I expect most of my applications to have bottlenecks at the database or web service calls. I tend to write code that is easier to maintain (if I ca...

Full article: http://blog.jayfields.com/2007/08/ruby-adding-not-method-...

Tweets

Jay Fields' Thoughts:

blog.jayfields.com 06 Apr '12, 3pm

originally introduced me to the idea that programming in a niche language was a good idea. He makes great arguments for or...

Ruby Certification: Ruby Study Notes - Best Rub...

rubylearning.com 04 Apr '12, 8am

The Ruby Association Certified Ruby Programmer examinations are intended for such people as engineers who design, develop,...

Jay Fields' Thoughts: Ruby: Defining Class Meth...

blog.jayfields.com 25 Mar '12, 12am

"This [, Class.method,] is the version that recent Java/C# converts seem to prefer. I'm not a big fan of this version beca...

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...

Sam Ruby: Hacked

intertwingly.net 02 Apr '12, 12pm

Hacked Mon 02 Apr 2012 at 11:16 This site was hacked. A reader of the site noted that Google’s index of this site had been...

“Bundler: The best way to manage Ruby applicati...

gembundler.com 04 Apr '12, 3pm

Make sure all dependencies in your Gemfile are available to your application. $ bundle install [--system] Gems will be ins...

Some Thoughts from The Lady

Some Thoughts from The Lady

sgpolitics.net 08 Apr '12, 9pm

Myanmar may have just started to take a small baby-step towards democracy, but their political thoughts through The Lady i...

[Rev:b04899ec] formula updated: ruby-enterprise...

rubyenterpriseedition.com 01 Apr '12, 6pm

Ruby Enterprise Edition is a server-oriented friendly branch of Ruby which includes various enhancements: A copy-on-write ...

Gregory Brown's free articles on #Ruby

blog.rubybestpractices.com 27 Mar '12, 8am

Practicing Ruby's second volume now freely available 2012-03-26 14:00, written by Gregory Brown Keeping with my promise to...