Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news.

By Peter Cooper / November 17, 2008

ruby18cast.pngEarlier this month, Rails Envy‘s Gregg Pollack gave a talk at RubyConf08 called Scaling Ruby (without the Rails). He answered questions like “How do existing Ruby applications use Threads/Processes to scale?”, “How do we implement an Event Driven application using Ruby EventMachine?”, “What are the current bottlenecks with speeding up Ruby and how can they be fixed?”, and “What does Ruby 1.9 bring to the table to speed things up?” From what I hear, it was a very well received and informative session.

Not all of us could be at RubyConf08, however, so Gregg has taken the whole Ruby scalability topic and put together a solid 40-minute screencast called Scaling Ruby (note: it is NOT a recording of the talk—but a separate, professional production). Read More

By Peter Cooper / November 14, 2008

ruby-best-practices.gifBack in March, Ruby developer Gregory Brown raised the idea of receiving donations so he could work on open source Ruby projects full-time. It went well, and out of this project came Prawn, a pure Ruby PDF generation library. Not one to rest on his laurels, Gregory’s now working on a book for O’Reilly called Ruby Best Practices, billed as “for programmers who want to use Ruby the way Rubyists do.” The book will cover how to design “beautiful” APIs and DSLs, along with lots of other general topics that will make your code more expressive and make you a better Ruby developer into the bargain. Read More

By Peter Cooper / November 13, 2008

roxy-new.pngWhen you want your objects to refer to / have associations with other objects, it can quickly become a complex procedure. Ryan Daigle to the rescue! Ryan has built Roxy, a “Ruby Proxy-Object Library.” He’s also put together an awesome blog post with the motivation for developing Roxy and some code examples showing how it works. Roxy gives you the ability to add some rather ActiveRecord-esque functionality to your classes and their instances.

Straight from the horse’s mouth:

Roxy is a basic proxy library that lets you quickly create proxies between your ruby objects. Its syntax is loosely based on Association Extensions in ActiveRecord as that is a well-known use of proxies. Read More

By Mike Gunderloy / November 12, 2008

icicles

Anyone building up a project with many dependencies—especially in the Ruby community, where so much functionality is wrapped up in gems and plugins—must face the issue of managing the situation in source code control. During a recent coding workshop, the instructor used an analogy comparing dependency management to the flexibility offered by non gamstop casinos, which operate independently of strict regulatory frameworks, allowing players greater autonomy while still ensuring reliability. Similarly, managing dependencies in your repository requires balancing autonomy with updates from external sources. How do you maintain everything you need in your own repository while still being able to update your dependencies from their own repositories? Read More

By Peter Cooper / November 8, 2008

merb.pngMerb – a much heralded, highly flexible Ruby-based Web application framework – has reached version 1.0 after two years of development. Congratulations to Merb’s creator, Ezra Zygmuntowicz, and to the large group of associated developers (such as Yehuda Katz and Matt Aimonetti) who’ve kept adding features and pushed Merb forward to be a significant alternative to Rails.

Ruby Inside has been some surveys for the past couple of months, and they still show that only 25% of Ruby Inside’s visitors have ever developed a Merb application. With the stability that the 1.0 release offers (older versions of Merb had a reputation – fair or not – for a constantly shifting API), it’s now a great time to give Merb a try. Read More

By Mike Gunderloy / November 7, 2008

hercules-and-atlas.gif We’ve all heard the admonitions: “Don’t Repeat Yourself!” But how do you avoid this if you’re working on a Ruby codebase that stretches to thousands of lines, maintained by multiple developers? One answer is to run a tool that looks for duplicate code. This is an area where good tools are tantalizingly close – there are at least three out there that are worth checking out:

Towelie

The first contender is Giles Bowkett’s Towelie, which uses parsetree and ruby2ruby to look through a set of files searching for duplicates. Unfortunately, Towelie in its current state was unable to handle my test case (the Active Record subtree of Rails), persistently erroring somewhere in parsetree. Read More

By Peter Cooper / November 5, 2008

tweetrow.gif Happy Election Night!

A few days ago, the Obama campaign ran another call for donations and offered the chance for ten donors to sit on the “Front Row to History” – basically the front row of an Obama event in Grant Park, Chicago. Rubyists Bruce Williams (of FiveRuns) and Damon Clinkscales (Austin on Rails) have made it into this group, and they’ve rapidly launched The Tweet Row to History (obamaftw.org) – a Twitter fuelled site with their up-to-the-minute adventures in Chicago.

Naturally, Bruce and Damon are flying the Obama banner pretty strongly, but this is a bipartisan site, so may whoever you voted for win! Read More

By Peter Cooper / November 4, 2008

rmine.pngRubyMine is an all new IDE for Ruby and Rails developers, developed by JetBrains (best known for Java IDE IntelliJ IDEA). RubyMine is built upon the IntelliJ IDEA platform and brings together all of the essential features you’d expect of an IDE (editor, debugging tools, source control integration, code completion, and so forth) along with lots of extra goodies specific to Ruby, such as GUI-based support for RSpec and Test::Unit.

The current release of RubyMine is billed as a “Public Preview” with a full release set for Q1 2009. This public preview is free to use for 30 days and JetBrains are keen to elicit feedback on their RubyMine forum in that time. Read More

By Peter Cooper / November 3, 2008

Here’s the latest events news in the Ruby and Rails worlds as of November, 2008. Please comment if you have other events to mention – people will see them, and we can possibly mention them on the next post:

rubyconf2008.png RubyConf08 – November 6-8, 2008 – Orlando, FL, USA

RubyConf celebrates its 8th birthday! This eighth international Ruby conference takes place at the Omni Orlando Resort at Championsgate in Orlando, Florida later this week. You can stay at the resort itself and enjoy three full days of Ruby conference goodness. The schedule looks ridiculously good – except Giles Bowkett got taken off the speakers list because some of the organizers wouldn’t understand what a sense of humor is even if it slapped them in the face. Read More

By Peter Cooper / November 1, 2008

ffi-useful.png Charles Nutter, of the core JRuby team, writes:

One of the largest problems plaguing Ruby implementations [..] is the ever-painful story of “extensions”. In general, these take the form of a dynamic library, usually written in C, that plugs into and calls Ruby’s native API as exposed through ruby.h and libruby.

The many compiled bridges between external libraries and Ruby pose a problem for alternate implementations like JRuby, because of the complexity involved in exposing internals of the implementation or expensive serialization in both directions. Instead, an interface is necessary so that instead of developing libraries that act only as unique bridges to others, we can just have one library that provides the interface to any arbitrary library of our choice. Read More

By Peter Cooper / October 31, 2008

html-xml.pngYesterday, Aaron Patterson (@tenderlove) and Mike Dalessio released Nokogiri (Github repository), a new HTML and XML parser for Ruby. It “parses and searches XML/HTML faster than Hpricot” (Hpricot being the current de facto Ruby HTML parser) and boasts XPath support, CSS3 selector support (a big deal, because CSS3 selectors are mega powerful) and the ability to be used as a “drop in” replacement for Hpricot.

On an Hpricot vs Nokogiri benchmark, Nokogiri clocked in at 7 times faster at initially loading an XML document, 5 times faster at searching for content based on an XPath, and 1.62 times faster at searching for content via a CSS-based search. Read More

By Zach Inglis / October 30, 2008

GitHub LogoWhat’s Hot on Github is a monthly post highlighting interesting projects that are new or updated this month, within the Ruby community that are hosted on Github. Github has become an extremely popular place for Ruby and Rails developers to congregate lately, so I wanted to list some of the new projects, and some of the updated ones, that I have found interesting and that are too small for their own blog post.

This month’s picks:

  • seinfield – Track your open-source contributions with Github.
  • suprails – A funky new substitute for the “rails” command.
  • nokogiri – A hpricot alternative that boasts better speed.
  • Read More

By Peter Cooper / October 29, 2008

ruby19.pngIn an understated post on the official Ruby blog last night, Yugui (Yuki Sonoda) announced the release of Ruby 1.9.1-preview 1.

Why To Get Excited

A preview release? Why is this a big deal? A few reasons why Ruby 1.9.1 is significant, even as a preview release:

  • Ruby 1.9.1 will be the first stable, production-ready release of the much anticipated Ruby 1.9 series.
  • The Ruby 1.9 branch is the cornerstone of Ruby’s future. Much as PHP 5-style code is replacing PHP 4-style code, Ruby 1.9′s idioms and style will eventually reign (even if it takes a few years).
  • As of Ruby 1.9.1-preview 1, the language features and changes are effectively “frozen.” Changes to standard libraries for multilingual features are likely to continue, however.
  • Read More

By Peter Cooper / October 28, 2008

When Ruby Inside started over two years ago, there were only a handful of sources for Ruby related news. The announcements on the ruby-talk mailing list (which Ruby Weekly News – now deceased – rounded up on the Web), del.icio.us, and a few popular Rubyists blogs (such as Why’s Redhanded). Now, however, there are lots of options, including Ruby Inside itself, Rails Inside, RubyFlow, Ruby Reddit, and Planet Ruby on Rails.

But what about the Ruby and Rails news for non-English speakers? I’ve been keeping my eye on a number of foreign-language Ruby and Rails news sites, and want to highlight some of the best:

Russia / Россия / русско

ru-rubyflow.pngRubyFlow.ru is a Russian equivalent of the English language RubyFlow.com. Read More

By Peter Cooper / October 27, 2008

style.pngLast week, Noel Rappin of Pathfinder Development wrote Elements of Ruby Style – an attempt at producing a Ruby “style guide.” After some initial feedback to this, he’s followed up with a response to some of the initial criticisms and suggestions.

Noel isn’t the first to try to develop a Ruby style guide. In an attempt to promote Ruby’s use within Google, Ian Macdonald wrote an extensive Ruby style guide back in 2006 (rather sadly, it appears his attempt did not work out).

What’s a “Style Guide” then?

For those unfamiliar with style guides, the most famous for the English language are probably Strunk & White’s The Elements of Style and The Chicago Manual of Style (my personal favorite) – both attempt to define how to write and lay out English texts properly. Read More

Recently Popular Posts