Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Modules / Documentation / CPAN like repository??
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Paul D. Kraus  
View profile  
 More options Jun 5 2006, 9:57 pm
From: "Paul D. Kraus" <paul.kr...@gmail.com>
Date: Tue, 6 Jun 2006 10:57:00 +0900
Subject: Modules / Documentation / CPAN like repository??

I am having a blast with ruby and the more I convert my Perl code to ruby ,
and then RE FACTOR... well its just so much better to read that I am blown
away.

I keep running into situations where I have some cpan module that i am using
in a perl script and before redesigning the wheel i do some google searches
for ruby equivalents.

I usually find one but its in some require statement in a script from some
mailing. More searching and I eventually find it. But then I can not find
any decent documentation on it(not that their isn't some just that I just
can't seem to get my head around how all the tools work. to find it)

For example. I need to be able to write excel spreadsheets on *nix boxes.
Find out that hey they have a port of spreadsheet::writeexcel. FANTASTIC so
now want. The documentation from RAA website is just a quick 4 line
synopsis. IS that it? Is the idea then to just do the mental guesses on how
it was ported and should work based on the perldocs for the original module?

What is the perldoc command for ruby?
I try rdoc for the command line and every time it finds nothing. I put the
same command in ri and again nothing.

Another example I need to do some recursive file searches. So I do a google
search ruby file find.

Second link is a link to a message from this list
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/38267 dig
through the script AHH require find must be the key.
rdoc find
File not found: find

ri find
gives a bunch of modules but no documentation and nothing that looks like
the module i am trying to use.

I am not even sure if its part of the standard distribution.

There seems to be tons of libraries out there which is how it should be with
a language so build on OO ideas and code reuse. But it just seems
disorganized and in a pinch at work i keep having to switch back to perl to
burn through a quick script.

Is it just my my ignorance or is there some cult of the hidden ruby modules.

I have asked about rdoc and ri on this list and I am not just trying to feed
the same info back because I am slow and un-observant but it just "feels"
like that has got to be an easier way to get to some of this stuff. How can
a language that just SCREAMS code reuse be so fractured. So I post again
hopefully not angering anyone.

Not trying to keep pointing to perl but its my only point of reference.
TIA,
PK


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Edward Gray II  
View profile  
 More options Jun 5 2006, 11:07 pm
From: James Edward Gray II <ja...@grayproductions.net>
Date: Tue, 6 Jun 2006 12:07:21 +0900
Local: Mon, Jun 5 2006 11:07 pm
Subject: Re: Modules / Documentation / CPAN like repository??
On Jun 5, 2006, at 8:57 PM, Paul D. Kraus wrote:

> What is the perldoc command for ruby?

ri

Installing the docs isn't always automatic though.  If you build from  
source, it's important to make install-all.

Also, many standard libraries are not documented.

> Another example I need to do some recursive file searches. So I do  
> a google
> search ruby file find.

ri Find

Note the capital.  It is a standard library.

> Is it just my my ignorance or is there some cult of the hidden ruby  
> modules.

It definitely takes some getting use to.  The Pickaxe (2nd Edition)  
has an appendix that is very good for getting introductions to the  
standard libraries.  It helps you know what's in there.

I certainly agree that things could be better though.

James Edward Gray II


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Britt  
View profile  
 More options Jun 5 2006, 11:59 pm
From: James Britt <jame...@neurogami.com>
Date: Tue, 6 Jun 2006 12:59:14 +0900
Local: Mon, Jun 5 2006 11:59 pm
Subject: Re: Modules / Documentation / CPAN like repository??

Paul D. Kraus wrote:

> What is the perldoc command for ruby?

Examples:

   ri String
   ri String.to_i

> I try rdoc for the command line and every time it finds nothing. I put the
> same command in ri and again nothing.

rdoc will crawl though your source code and generate documentation.  It
can also generate data files used by ri. But it does not serve back that
information. ri does that.

> Another example I need to do some recursive file searches. So I do a google
> search ruby file find.

Try www.ruby-doc.org/core  and www.ruby-doc.org/stdlib

--
James Britt

"A principle or axiom is of no value without the rules for applying it."
   - Len Bullard


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google