The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Barebones Distro

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Daniel Berger

Posts: 1383
Nickname: djberg96
Registered: Sep, 2004

Daniel Berger is a Ruby Programmer who also dabbles in C and Perl
Barebones Distro Posted: Sep 28, 2008 11:33 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Daniel Berger.
Original Post: Barebones Distro
Feed Title: Testing 1,2,3...
Feed URL: http://djberg96.livejournal.com/data/rss
Feed Description: A blog on Ruby and other stuff.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Daniel Berger
Latest Posts From Testing 1,2,3...

Advertisement
I've been thinking more and more about the Ruby/Sapphire standard library, and the more I think about it, the more I think it should (almost) all be ripped out.

Why? In short, maximum flexibility. The fact of the matter is that rubygems has become the defacto manner in which to manage third party libraries. This is a good thing. The problem is in dealing with standard libraries that need updates.

This creates a dilemma. Look at REXML, for example, where some bugs have been found in recent releases. What's a user or admin to do? Upgrade to the next version of Ruby? What if the next version hasn't been released? What if the next version has (ahem) bugs of its own that you don't want to introduce? In these cases, you only want an updated library and not an updated Ruby.

In some cases libraries exist in both the standard library and as a gem. While this is better than no gem at all, it requires special handling in any code that uses the gem version, i.e. "gem some-lib" before the require line in order to force code to use the gem and not the standard library code. That could be problematic in practice.

But, if we distribute remove all libraries from the standard library (except rubygems itself), we don't run into this issue. REXML bug? Update. Test::Unit features added? Update. Think the gdbm library is useless? Never install it.

What's the downside here?

Read: Barebones Distro

Topic: RSpec Tips Previous Topic   Next Topic Topic: Rake task runs both Test::Unit and RSpec tests

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use