Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::General > Archive::News

Archive::News Archive area for New's posts that were moved here after an inactivity period of 90 days.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 08-17-2002, 03:08 PM
geniusj
Fire Beetle
 
Join Date: Aug 2002
Posts: 3
Default

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-
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 04:19 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3