Quote:
Originally Posted by image
Only 194? =0/
|
Yes, unfortunately everything tends to start at 0 and work its way up from there

.. My point was that it's not as large as perl, but it's not small either. It's *not* an unknown language like, say, SNOBOL (I do know someone who uses SNOBOL though

). I'd say that most of the new users of ruby though are frustrated perl users. There are quite a few books on it as well.
Example:
-----------
# Whois client in ruby
require 'socket'
TCPSocket.open( "localhost", 43 ) do |mySocket|
   begin
     mySocket.puts ARGV[0]
     puts mySocket.gets until mySocket.eof?
   rescue => exception
     STDERR.puts "Error: #{exception.type} - #{exception.message}"
     STDERR.puts exception.backtrace.join( "\n" )
   end
end
-----------
Threads are as simple as:
Thread.new do |myThread|
   # code to execute . . .
end
I like to learn at least 1 language per year though. It's not that much effort and it gives you more experience and more options. Ocaml is probably the next language I'll try as I've heard some good things about it. Anyway, just because a language isn't C++ or Java doesn't mean it shouldn't be used

.. I don't think there would be any chance for any other language if everyone thought like that.
Cheers,
-JD-