Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Hacking with objects

by Anonymous Monk
on Mar 24, 2001 at 00:01 UTC ( [id://66721]=note: print w/replies, xml ) Need Help??


in reply to Hacking with objects

First of all, please accept this in the spirit intended... I've programmed in Perl for about 6 years now. I started doing OO Perl about 2-3 years ago, but recently I realized that (OK, I'm about to utter blasphemy in the Monestary don't flame be too bad) that Perl's OO model is so kludgy and the code is so ugly that I needed an alternative. My point here is that to really learn and take advantage of OO techniques you may need to go to another language.

I found OO peace in moving to Ruby, and I might add, the move is quite easy if you're coming from the land of Perl. Others find OO nirvana in Python, but the move to Ruby seemed a lot easier for me. I've been programming in Ruby off and on (I still have to use perl at work primarily) for about three months now and already I feel more comfortable with it than with Perl. Look, I know this will be seen as advocacy, but I'm just trying to help out other tormented souls :-)... Check out http://www.ruby-lang.org for more info on Ruby. Ruby has a very clean OO model. It has a lot of the same functions for dealing with strings (like chomp, for example) as Perl (and in fact it has a lot more built-in goodies like reverse). Also, I find that threading and timeout (Ruby's equivilent of alarm) work on the Windows platform (Perl's alarm still doesn't work on the Windows platform).

Replies are listed 'Best First'.
Re (tilly) 2: Hacking with objects
by tilly (Archbishop) on Mar 24, 2001 at 03:21 UTC
    Why is this on PerlMonks?

    I know Ruby, and I know full well how nice its OO model is compared to Perl's, but this site is about Perl. Attempts to "rescue tormented souls" here will just result in Ruby being looked at by Perl people like most people look at Jehova's Witnesses. (And the way that Perl people look at Python.)

    Besides which, for someone who claims to have programmed in Perl for 6 years you seem strangely ignorant of basic Perl functions like reverse...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://66721]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (None)
    As of 2024-04-25 01:31 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found