Can we attack the 'not enough libraries' thing straight on?

From: Daniel P. Zepeda [mailto:daniel@zepeda-zone.net]

In the not-a-big-deal category:

User::grent
User::pwent – Password a group utilities. Admittedly, not a
big deal

I’m not sure what you mean here. Are you referring to stuff in the ‘etc’
module?

           searched for 'password'

Proc::killall - kills off a process by name, searched for
‘process’ and ‘killall’

Equivalent

require “sys-proctable”
Sys::ProcTable.ps{ |p| kill if p.ppid == 2122 }

This module came up first in a search for “process” on the RAA, btw. The
name was derived from Dan Urist’s Proc::ProcessTable Perl module.

I find it telling that the OP asked for what pieces were
missing, but the
discussion tended to naming conventions and module
management. There is a ton of stuff on CPAN, but a lot of
it is not needed, because Ruby obviates the need for it, and
of course, my list is not exhaustive, just my experiences.
Maybe after all the discussion is done, we’ll find that CPAN
is huge because it has to be, to add stuff to Perl that Ruby
already has, and that the small size of Ruby doesn’t show the
lack of available functionality, but the power of the core Ruby.

I agree with you here. Note the hoard of “Class::” modules that Ruby simply
doesn’t need, for example.

Regards,

Dan

···

-----Original Message-----

From: Daniel P. Zepeda [mailto:daniel@zepeda-zone.net]

In the not-a-big-deal category:

User::grent
User::pwent – Password a group utilities. Admittedly, not a
big deal

I’m not sure what you mean here. Are you referring to stuff in the
‘etc’ module?

Yes, I guess so. I can’t find any documentation on it, but I know it is
there because

ruby -e ‘require “etc”’

works.

I don’t see any reference to it in the Built-in Classes and Methods or
Standard Library in the Pickaxe, or am I not looking hard enough?

           searched for 'password'

Proc::killall - kills off a process by name, searched for
‘process’ and ‘killall’

Equivalent

require “sys-proctable”
Sys::ProcTable.ps{ |p| kill if p.ppid == 2122 }

This module came up first in a search for “process” on the RAA, btw.
The name was derived from Dan Urist’s Proc::ProcessTable Perl module.

Sure enough. Not sure why I didn’t see it the first time. I see it is the
first entry, guess I was going too fast and got sloppy.

Thanks for the pointers! That knocks those off the list.

···

On Sat, 25 Jan 2003 03:59:22 +0900 “Berger, Daniel” djberge@qwest.com wrote:

-----Original Message-----

Regards,

Dan


“Daniel P. Zepeda” <daniel@z,e,p,e,d,a,-,z,o,n,e.net>
(Remove commas for address)

From: Daniel P. Zepeda [mailto:daniel@zepeda-zone.net]

In the not-a-big-deal category:

User::grent
User::pwent – Password a group utilities. Admittedly, not a
big deal

I’m not sure what you mean here. Are you referring to stuff in the
‘etc’ module?

Yes, I guess so. I can’t find any documentation on it, but I know it is
there because

ruby -e ‘require “etc”’

works.

I don’t see any reference to it in the Built-in Classes and Methods or
Standard Library in the Pickaxe, or am I not looking hard enough?

Well, for those who know the ‘C’ equivelants, I suppose no documentation
is really needed:

ruby -e ‘require “etc”; puts Etc.methods’|m
group
getpwnam
getgrnam
getpwuid
getgrgid
getlogin
passwd
private_instance_methods
clone
class_variables
public_class_method
const_set
ancestors
protected_instance_methods
class_eval
method_defined?
const_get
name
<
<=>
public_instance_methods

···

On Sat, 25 Jan 2003 04:29:59 +0900 “Daniel P. Zepeda” daniel@zepeda-zone.net wrote:

On Sat, 25 Jan 2003 03:59:22 +0900 > “Berger, Daniel” djberge@qwest.com wrote:

-----Original Message-----


“Daniel P. Zepeda” <daniel@z,e,p,e,d,a,-,z,o,n,e.net>
(Remove commas for address)

Daniel P. Zepeda wrote:

ruby -e ‘require “etc”; puts Etc.methods’|m

BTW…

irb(main):006:0> Etc.methods - Etc.class.instance_methods(true)
[“getgrnam”, “getpwuid”, “getgrgid”, “getlogin”, “passwd”, “group”,
“getpwnam”]

Less to snip.