Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^15: Ovid's take on the renaming of "Perl6" (updated)

by 1nickt (Abbot)
on Sep 09, 2019 at 07:00 UTC ( #11105855=note: print w/replies, xml ) Need Help??


in reply to Re^14: Ovid's take on the renaming of "Perl6" (updated)
in thread Ovid's take on the renaming of "Perl6"

PHP 5 came with a standard OO system while Perl is still promoting dozens of competing CPAN frameworks 1 1/2 decades later.

That's just nonsense. First, Perl doesn't promote one, another, or any CPAN OO frameworks. Perl is a language. Second, overwhelmingly most professional Perl programmers I am aware of use Moo, with some sticking to the predecessor Moose. No one I know uses bless, and there is no steep learning curve to

package MyClass; use Moo; has some_attr => ( is => 'ro' ); sub some_func { uc(shift->some_attr) } # eg 1;
Maybe you should sit down and spend a couple of hours with one of Gabor's tutorials and gain some relevant skills instead of just yammering about historical meta-questions and adding more and more confusion to the debate through your ill-informed commmentary?


The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^16: Ovid's take on the renaming of "Perl6" (updated)
by choroba (Bishop) on Sep 10, 2019 at 17:07 UTC
    > there is no steep learning curve

    Unfortunately, there is. See How Moose made me a bad OO programmer for some examples - I don't agree with everything the presenter says (and you might notice me suggesting a different approach), but the underlying message is true: has means several things at the same time and it's pretty hard to understand it.

    Update: The main problem is that Moo(se) doesn't distinguish between cached constructor arguments and public attributes of the object syntactically.

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
Re^16: Ovid's take on the renaming of "Perl6" (updated)
by Anonymous Monk on Sep 09, 2019 at 09:03 UTC
    Perl doesn't promote one, another, or any CPAN OO frameworks.

    Sorry to crash the party but the first half of perlootut teaches "Object-Oriented Programming in Perl" while simultaneously saying things like "we strongly suggest you don't build your objects from scratch" at least 5 times. The last section "PERL OO SYSTEMS" then "strongly recommends" using Moose or Moo or Class::Accessor or Class::Tiny or "literally dozens of other OO-related modules on CPAN".

    But I never use anything other than bless to roll my own objects... *shrug*

Re^16: Ovid's take on OOP
by Anonymous Monk on Sep 09, 2019 at 08:45 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2019-10-17 03:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?