Stupid Newbie Question

Briefly looking at the coding examples for Ruby, it looks like Ruby
takes alot of the best qualities from Perl, Python, and TCL.

Knowing some of these languages, especially Python, would it be pretty
easy to pick up Ruby?

Does Ruby work well with CGI?

Does Ruby play nicely with Macs? Especially OSX?

On another note, the only tutorials I have seen are the Ruby Guide
(which is rather quaint) and The Pragmatic Programmer. I also saw
O’reilly’s Ruby in a nutshell but it did not look like it contained any
more in depth than the online ruby guide. Is there any more
documentation out there? Especially online tutorials?

One different note:
Is there a way to document and then read the documentation in the
modules? For example, help in the python interactive reads off the
module documentation and Perl has perldoc. Anything similar in Ruby?

Thanks for letting me indulge myself here.

···


SA

Briefly looking at the coding examples for Ruby, it looks like Ruby
takes alot of the best qualities from Perl, Python, and TCL.

Knowing some of these languages, especially Python, would it be pretty
easy to pick up Ruby?

I found Ruby very easy. It feels more like ObjC or even Smalltalk when
you get into it.

Does Ruby work well with CGI?

Yes

Does Ruby play nicely with Macs? Especially OSX?

If you have Jag, you already have it. Try “ruby -v” in terminal. Then
check out RubyCocoa and RubyAEOSA.

On another note, the only tutorials I have seen are the Ruby Guide
(which is rather quaint) and The Pragmatic Programmer. I also saw
O’reilly’s Ruby in a nutshell but it did not look like it contained
any more in depth than the online ruby guide. Is there any more
documentation out there? Especially online tutorials?

You have to just get the “PickAxe Book” (prag programmer) and jump in.

One different note:
Is there a way to document and then read the documentation in the
modules? For example, help in the python interactive reads off the
module documentation and Perl has perldoc. Anything similar in Ruby?

Yep. There are a few alternatives. It’s a religious issue.

Thanks for letting me indulge myself here.

Feel free.

···

On Monday, November 4, 2002, at 02:20 PM, Sean Armstrong wrote:

One different note:
Is there a way to document and then read the documentation in the
modules? For example, help in the python interactive reads off the
module documentation and Perl has perldoc. Anything similar in Ruby?

The ‘ri’ command is an excellent command-line reference tool, like ‘perldoc’
(though not as broad). It contains documentation for all built-in classes.

There are people working on extending this to user modules and other things.

For library code, RDoc is like JavaDoc (if you know that), but better. It
allows you to browse the classes and methods of the library, with comments
extracted from the code. It’s really good.

Gavin

···

From: “Sean Armstrong” sarmstrong@shearwatercorp.com

Sean Armstrong wrote:

[ I won’t respond to the other questions since others have already given
the same answers I would :wink: ]

Does Ruby work well with CGI?

Yes, although Patrick May and Tom Clarke gave a presentation about NARF,
which sounded like a promising new library for web development that
builds on the existing CGI library for Ruby. They should be officially
releasing it soon I think.

... speaking of the latter, is anybody else having difficulty accessing the
rubycentral.com domain?

Looks like there are no NS records for it in the root, although "whois" says
its not due to expire until Feb 2003. Strange.

Cheers,

Brian.

$ dig @a.gtld-servers.net. rubycentral.com. ns

; <<>> DiG 8.3 <<>> @a.gtld-servers.net. rubycentral.com. ns
; (1 server found)
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 4
;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUERY SECTION:
;; rubycentral.com, type = NS, class = IN

;; AUTHORITY SECTION:
com. 1D IN SOA A.GTLD-SERVERS.NET. NSTLD.VERISIGN-GRS.com. (
                                        2002110401 ; serial
                                        30M ; refresh
                                        15M ; retry
                                        1W ; expiry
                                        1D ) ; minimum

;; Total query time: 77 msec
;; FROM: xxx to SERVER: a.gtld-servers.net. 192.5.6.30
;; WHEN: Tue Nov 5 10:11:02 2002
;; MSG SIZE sent: 33 rcvd: 106

···

On Tue, Nov 05, 2002 at 06:20:56AM +0900, Sean Armstrong wrote:

On another note, the only tutorials I have seen are the Ruby Guide
(which is rather quaint) and The Pragmatic Programmer.

Lyle Johnson wrote:

Yes, although Patrick May and Tom Clarke gave a presentation about NARF,

… and the presentation was given at RubyConf this past weekend. I knew
what I meant.