How has Ruby blown my mind?

by Satish Talim on February 5, 2007

Hi and thanks for the visit. If you're new here you may want to subscribe to my feed.

Ruby Code blocks – This single language feature in Ruby, has changed the way I think about code. Blocks (called closures in other languages) are definitely, for me, one of the coolest features of Ruby.

Will we have closures in Java 1.7 ? I hope we do.

Another subtle feature, though not obvious, is that Ruby has revived the programmer in me.

By the way, if you don’t know about Apress’ and Pat Eyler’s blog about Ruby contests, check out this month’s contest.

Technorati Tags: , , ,

Posted by Satish Talim

My Sinatra eBook

The Introduction to Sinatra eBook is an easy-to-follow guide to everything on Sinatra. It is a complete step-by-step guide to quickly creating tiny web-applications and small services in Ruby. I focused entirely on practical advice with specific, actionable how-to tips, tools and techniques. Follow the easy steps and clear tactics to take action today.


{ 1 comment… read it below or add one }

Mike Harris February 6, 2007 at 7:36 pm

Ruby makes programming fun. Gld to have you on board.

Small detail: Blocks really are method parameters. The block structure

[1,2,3].each { |x| puts x }

is just syntactic sugar for this

func = lambda { |x| puts x }
[1,2,3].each(&func)

Reply

Leave a Comment

Previous post: Best Ruby Books

Next post: Convert bytes to megabytes