Why Using require ‘rubygems’ Is Wrong

Courtesy Ruby Inside  Thu, 01/29/2009 - 20:41

Ryan Tomayko, currently known as one of the lead developers of Sinatra , was definitely not mincing his words yesterday when he posted Why "require 'rubygems'" In Your Library/App/Tests Is Wrong :

You should never do this in a source file included with your library, app, or tests:

require 'rubygems'

The system I use to manage my $LOAD_PATH is not your library/app/tests concern.

Whether rubygems is used or not is an environment issue. Your library...


 

More related items

Gibbler: Git-like Hashes and History for Ruby Objects
Inspired by Git (the version control system), Delano Mandelbaum has come up with a library called Gibbler, which produces hashes and history for Ruby objects. Calling the gibbler method on an...

The Ruby Toolbox: See The Most Popular Ruby Libraries...
The Ruby Toolbox gives Ruby developers a categorized overview of 100 or so different libraries ranked on how commonly used they are. It's not perfect as it only pays attention to projects...

Heroku, The Git-Powered Ruby Hosting Platform, Goes...
It was way back in November 2007 that we first mentioned Heroku, the then online Rails development and app hosting environment. It's a little more than that now - it bills itself as the...


 

Post new comment

The content of this field is kept private and will not be shown publicly.
computer-internet.marc8.com