Post by Peter Cooper on March 1st, 2008
Interesting Ruby Tidbits That Don’t Need Separate Posts #18

- How To Develop A Mac (Cocoa) Application With MacRuby And XCode
- Ruby In Steel PE: Free, Visual Studio-based Ruby and Rails IDE for Windows
- Interesting Ruby Tidbits That Don’t Need Separate Posts #19


Ruby In Steel Releases Alpha of IDE for "IronRuby"

Huw Collingbourne writes in to tell us that Sapphire Steel, the company behind Ruby In Steel, has released the first alpha version of a Ruby In Steel IDE for Microsoft's IronRuby .NET Ruby implementation. A particularly interesting development is that a visual form designer is included that enables you to drag and drop controls onto forms, as if you were designing a, say, Visual Basic app. Being able to develop Windows applications visually seems quite an appealing prospect.
MacRuby: Ruby Running On Top of Objective-C
Most Mac-based Ruby developers are already familiar with RubyCocoa, a bridge that enables regular Ruby apps to talk to OS X's various frameworks. MacRuby, however, takes a rather different approach and is a port of Ruby 1.9 that runs directly on the Objective-C runtime and garbage collector. It's still in its early stages, but for anyone interested in Ruby implementations, this is worth a look.
Try: Stop Using "@person ? @person.name : nil" And Start Using "@person.try(:name)"
try() is a ridiculously simple, but incredibly useful, bit of sugar Chris Wanstrath has come up with for making it easy to "try" and call methods on objects, but without Ruby getting upset if that method doesn't exist.
ProcessorPool: Easily Farm Work to Amazon EC2 Instances
And the Rubyist infatuation with Amazon's EC2 service continues! Ari Lerner and Ron Evans have developed ProcessorPool, a new Ruby library that provides a simple load-balancing solution for Amazon's EC2 and S3 backend. It allows you to "effortlessly farm work to an EC2 instance." The best source of information is Ari's own blog post where some demonstration code is shown.
Heroku Gits an API
Heroku, the much heralded Ruby on Rails online development and deployment platform, has launched an API along with external Git access. The combination of these new features mean that you can work on your Rails applications on your local machine and deploy them on Heroku with just a few simple steps. All you need to do is install the Heroku gem, then use the "heroku" command line app to create an application before finally pushing it back to the Heroku servers with git. Miraculously, pushing your code back to Heroku automatically runs the migrations and restarts the processors on the server. One step deployment!

Click here to add on del.icio.us
Tweet This









March 1st, 2008 at 9:50 am
Wow, Heroku really rocks.
March 1st, 2008 at 11:43 am
Regarding Chris Wanstrath's try(), I'd at least allow it to accept methods that need arguments, so:
class Object
def try(method, *args)
send(method, *args) if respond_to? method
end
end
March 1st, 2008 at 12:09 pm
Instead of the try(:name),
http://blog.rubyenrails.nl/articles/2008/02/29/our-daily-method-18-nilclass-method_missing
March 3rd, 2008 at 4:29 pm
I would suggest:
##
# @person ? @person.name : nil
# vs
# @person.try(:name)
def try(method, default=nil)
respond_to? method ? send method : default
end
T.
T.