Dick Davies
1/25/2005 10:29:00 AM
* Robert Klemme <bob.news@gmx.net> [0127 08:27]:
>
> "Florian Gross" <flgr@ccan.de> schrieb im Newsbeitrag
> news:35l3tbF4lqk45U1@individual.net...
> > brundlefly76 wrote:
>
> <snip/>
>
> > > 4. Any Perl programmers have any comments on their experiences working
> > > with Ruby?
> >
> > I've enjoyed the switch a lot. I assumed that Ruby was unlike Perl and I
> > suppose that helped with avoiding some of the potential gotchas. With
> > Ruby it was also natural to organize my applications in parts that
> > easily allowed for refactoring and reusing. The only reason I might have
> > today for using Perl over Ruby (I've not done this since quite a few
> > months) would be availability.
>
> +1
>
> IMHO one of the major advantages of Ruby is that it's OO all over while
> Perl's OO was retrofitted.
Definitely, that's the seller. A lot of the gurus on the list build awesome
object frameworks with ruby - i just use it because it makes scripts easier
to type and read than perl. although enlightenment does seep into my head
by hanging about here too.
The OOP is *so* much better than perls (it's actually usable) that you can
take advantage of it even in a 25-line cron script while still
enjoying yourself.
As for the availability, it's easy to think 'well, i have perl already,
so I'll knock out a perl script' but that has bitten me so many times in
the last year (when someone wants a new feature) that my new year resolution
was to break the habit.
I finally put it on one of our servers last week
after wasting an hour trying to get perl oop back in its box. It was quicker
to download ruby (only 3Mb, I get emails from my manager bigger than that),
build it and rewrite the script (an apache server-status -> snmp bridge)
than to trawl around CPAN crying.
You don't even need root if you install it in ~/bin and if it gets the
job done in a morning rather than a week, who's going to care?
--
'When the door hits you in the ass on the way out, clean off the smudge
your ass leaves, please'
-- Alien loves Predator
Rasputin :: Jack of All Trades - Master of Nuns