[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



As for module support, 1.8.2 has a whole bunch of handy stuff in the
core.  There's an (SG|X)ML parser, there's a 'perldoc' analogue (rdoc
and ri), there's an HTTP server, there's SOAP and XML-RPC support,
there's a complete unit testing framework, . . . .  Check the stdlib docs:

<a  rel="nofollow" href="http://www.ruby-doc.org/stdlib/";>http://www.ruby-doc.org/stdlib/</a>

As for aftermarket stuff there's no CPAN yes, but rubygems is pretty
interesting and probably will be shipping with 1.8.3 I believe.  There's
also a good number of things available as source (and pointed at from
either raa.ruby-lang.org or rubyforge; but again granted it's not CPAN).


There's open-uri which overloads open() so that it handles URLs as
well as filenames.  This snippet (from <a  rel="nofollow" href="http://redhanded.hobix.com/";>http://redhanded.hobix.com/</a>)
uses it to grab the font size for the different categories and shows
their relative popularity on del.icio.us:

require 'open-uri'
t = open(&quot;<a  rel="nofollow" href="http://del.icio.us/tag/&quot";>http://del.icio.us/tag/&quot</a>;).read
l = %w(c c++ java javascript perl php python ruby)
l.map do |lang|
  [$1.to_f, lang] if t =~
    %r{/#{Regexp::quote lang}&quot;  style=&quot;font-size: (\d+\.\d{2})}
end.compact.sort {|a,b|b&lt;=&gt;a}.each do |score, lang|
  puts &quot;#{lang}: #{score}&quot;
end


Rails is what's gotten me to look at Ruby again.  I've been poking at
it since ~0.7.0 and it's really spiffy how quickly it &quot;just works&quot;
(I'd looked at Maypole for Perl but never got it to behave as well as
Rails did straight out of the box).


[0] Actually poking at python2.3 it looks like a couple that I
    remember actually may have gotten fixed (lambda actually makes a
    real closure now, for instance); but indicating block structure by
    indentation is still broken :)

-- 
Fletch                | &quot;If you find my answers frightening,       __`'/|
fletch at phydeaux.org|  Vincent, you should cease askin'          \ o.O'
                      |  scary questions.&quot; -- Jules                =(___)=
                      |                                               U


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="01183" href="msg01183.html">[ale] Why Ruby? [was Pyhon syntax]</a></strong>
<ul><li><em>From:</em> jknapka at kneuro.net (Joe Knapka)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg01158.html">[ale] This list is flooding with messages</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg01160.html">[ale] Chaintech SKT600 motherboard</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg01153.html">[ale] SUSE 9.2 download?</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg01183.html">[ale] Why Ruby? [was Pyhon syntax]</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#01159"><strong>Date</strong></a></li>
<li><a href="threads.html#01159"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>