Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Should I give up Perl?

by space_monk (Chaplain)
on Jun 01, 2013 at 15:39 UTC ( #1036465=note: print w/ replies, xml ) Need Help??


in reply to Re: Should I give up Perl?
in thread Should I give up Perl?

Well I think PHP5 is a genuine OO language with features such as private and protected data, so used properly it is a reasonable programming language. Both Perl and PHP can be written well or poorly.

Rather than Perl being a direct help, I think a CompSci/Maths degree and 20 years+ experience helps. Doing a lot of C and assembly language encourages economy of code. :-)

If you spot any bugs in my solutions, it's because I've deliberately left them in as an exercise for the reader! :-)


Comment on Re^2: Should I give up Perl?
Re^3: Should I give up Perl?
by LanX (Canon) on Jun 01, 2013 at 15:46 UTC
    OK you convinced me, give up Perl! =)

    Cheers Rolf

    ( addicted to the Perl Programming Language)

Re^3: Should I give up Perl?
by tobyink (Abbot) on Jun 01, 2013 at 20:29 UTC

    PHP has some nice OO features that I'd like to see in Perl, but also lacks some found in Perl - no multiple inheritance; traits are a very recent development and somewhat lacking compared to Moose's roles; overloading support is minimal (there's __toString, and the Iterable interface, but that's about it). I've personally always thought the introspection APIs, though quite comprehensive, are kinda clunky.

    PHP's OO is a very nicely designed part of PHP; arguably the only nicely designed part of PHP. ;-) If somebody were to take the basic syntax of PHP (minus <?php), and its OO system, but strip out all those gazillion globally namespaced functions, replacing them with a well-designed standard library of classes, that would be bloody lovely.

    package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2014-12-20 00:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (94 votes), past polls