[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

New user questions

brundlefly76

1/24/2005 8:01:00 PM

I have been a production Perl programmer for about 10 years, and am
looking into tinkering with Ruby, and had a few questions:

1. I noticed Ruby was not installed by default on Suse 9.2 (although a
package was available in Yast). Does anyone have any information on
what Linux distributions *do* install Ruby by default, and any progress
on that? Because of the nature of my work, its not too convenient for
me to go installing interpreters on every machine I need to work on.

2. How fast do Ruby releases move - say in comparison to Perl? I cant
tell if it moves very slowly or simply has a versioning scheme that
belies this.

3. Is anyone here running Ruby in a production environment, and for
what applications?

4. Any Perl programmers have any comments on their experiences working
with Ruby?

Thanks for any info!

18 Answers

Stephan Kämper

1/24/2005 8:21:00 PM

0

brundlefly76 wrote:
> I have been a production Perl programmer for about 10 years, and am
> looking into tinkering with Ruby, and had a few questions:
>
> 1. I noticed Ruby was not installed by default on Suse 9.2 (although a
> package was available in Yast). Does anyone have any information on
> what Linux distributions *do* install Ruby by default, and any progress
> on that? Because of the nature of my work, its not too convenient for
> me to go installing interpreters on every machine I need to work on.

Can't tell you, sorry. As far as I am concerned I tend to make the
latest stable Ruby on new systems (unless they're Windows machines, then
I take the one-click-installer).

> 3. Is anyone here running Ruby in a production environment, and for
> what applications?

See http://www.rubygarden.org/ruby?Rea...

> 4. Any Perl programmers have any comments on their experiences working
> with Ruby?

I used to do Perl and C++ programming when I first too notice of Ruby. I
wasn't too exited, mainly because I didn't understand the Japanese
documentation. Then some months later I found Dave & Andy's book
"Programming Ruby" (the pickaxe) in the local bookstore and instantly
got hooked.
I didn't have the feeling I actively learned Ruby. I learned that there
is a language out there that worked pretty much the way I think.
And I have to admit that *this* was not the way I got used to Perl (but
I have met people how say that it's just the other way round for them).

Happy rubying

Stephan

Florian Gross

1/24/2005 8:24:00 PM

0

brundlefly76 wrote:

> I have been a production Perl programmer for about 10 years, and am
> looking into tinkering with Ruby, and had a few questions:
>
> 1. I noticed Ruby was not installed by default on Suse 9.2 (although a
> package was available in Yast). Does anyone have any information on
> what Linux distributions *do* install Ruby by default, and any progress
> on that? Because of the nature of my work, its not too convenient for
> me to go installing interpreters on every machine I need to work on.

I can not say much about this as I'm not a Linux user by myself, but it
appears to me that installing Ruby via a package manager is still fairly
easy.

> 2. How fast do Ruby releases move - say in comparison to Perl? I cant
> tell if it moves very slowly or simply has a versioning scheme that
> belies this.

Ruby is usually released to the public on Christmas. See
http://redhanded.hobix.com/cult/sevenChrist...

There was talk about speeding releases up a bit, but the benefit of
doing it this ways is that Ruby releases usually are very stable. I've
even used release candidates without trouble via the wonderful one-click
installer.

> 3. Is anyone here running Ruby in a production environment, and for
> what applications?

Of course. There's lots of usage samples on the RubyGarden Wiki:
http://www.rubygarden.org/ruby?Rea...

Ruby is because of RubyOnRails nowadays also getting used for running
websites like basecamphq.com, 43things.com, rubyonrails.org and so on.
See http://wiki.rubyonrails.com/rails/sho... for a few more samples.

> 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.

Robert Klemme

1/25/2005 8:22:00 AM

0


"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.

Kind regards

robert

Premshree Pillai

1/25/2005 8:42:00 AM

0

On Tue, 25 Jan 2005 17:25:52 +0900, Robert Klemme <bob.news@gmx.net> wrote:
>
> "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.

Yep. Perl's OO sux0r. Ruby = bestOf(Perl, Python)

>
> Kind regards
>
> robert
>
>


--
Premshree Pillai
http://www.livejournal.com/...


Dick Davies

1/25/2005 10:29:00 AM

0

* 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


Premshree Pillai

1/25/2005 10:51:00 AM

0

On Tue, 25 Jan 2005 19:29:02 +0900, Dick Davies
<rasputnik@hellooperator.net> wrote:
> * 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.

Heh, but that's no reason realy, is it? ;-)

>
> 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
>
>


--
Premshree Pillai
http://www.livejournal.com/...


Mohammad Khan

1/25/2005 4:51:00 PM

0

On Mon, 2005-01-24 at 15:00, brundlefly76 wrote:
> I have been a production Perl programmer for about 10 years, and am
> looking into tinkering with Ruby, and had a few questions:
>
> 1. I noticed Ruby was not installed by default on Suse 9.2 (although a
> package was available in Yast). Does anyone have any information on
> what Linux distributions *do* install Ruby by default, and any progress
> on that? Because of the nature of my work, its not too convenient for
> me to go installing interpreters on every machine I need to work on.
>
> 2. How fast do Ruby releases move - say in comparison to Perl? I cant
> tell if it moves very slowly or simply has a versioning scheme that
> belies this.
>
> 3. Is anyone here running Ruby in a production environment, and for
> what applications?
>
> 4. Any Perl programmers have any comments on their experiences working
> with Ruby?

When I was introduced with ruby by my boss, I was using Perl for about
3+ years at that time. It was about 2 years back.
I am not using Perl for at least 18 months.

Mohammad


>
> Thanks for any info!




Robert Klemme

1/25/2005 6:23:00 PM

0


"Mohammad Khan" <mkhan@lextranet.com> schrieb im Newsbeitrag
news:1106671849.15925.12.camel@localhost.localdomain...
> On Mon, 2005-01-24 at 15:00, brundlefly76 wrote:
> > I have been a production Perl programmer for about 10 years, and am
> > looking into tinkering with Ruby, and had a few questions:
> >
> > 1. I noticed Ruby was not installed by default on Suse 9.2 (although a
> > package was available in Yast). Does anyone have any information on
> > what Linux distributions *do* install Ruby by default, and any
progress
> > on that? Because of the nature of my work, its not too convenient for
> > me to go installing interpreters on every machine I need to work on.
> >
> > 2. How fast do Ruby releases move - say in comparison to Perl? I cant
> > tell if it moves very slowly or simply has a versioning scheme that
> > belies this.
> >
> > 3. Is anyone here running Ruby in a production environment, and for
> > what applications?
> >
> > 4. Any Perl programmers have any comments on their experiences working
> > with Ruby?
>
> When I was introduced with ruby by my boss, I was using Perl for about
> 3+ years at that time. It was about 2 years back.
> I am not using Perl for at least 18 months.

So you're clean now. :-)

robert

> Mohammad
>
>
> >
> > Thanks for any info!
>
>
>
>

Florian Gross

1/25/2005 8:32:00 PM

0

Dick Davies wrote:

> It was quicker to download ruby (only 3Mb, I get emails from my
> manager bigger than that),

Heh, good comparison. I'm pretty sure I'll have to steal it. :)

Csaba Henk

1/26/2005 1:50:00 AM

0

On 2005-01-25, Mohammad Khan <mkhan@lextranet.com> wrote:
> When I was introduced with ruby by my boss, I was using Perl for about
> 3+ years at that time. It was about 2 years back.
> I am not using Perl for at least 18 months.

Where can one get a job with such a boss??

Csaba