Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Why Perl in 2020

by stevieb (Canon)
on Jan 05, 2021 at 16:45 UTC ( [id://11126389]=note: print w/replies, xml ) Need Help??


in reply to Re: Why Perl in 2020
in thread Why Perl in 2020

"I do believe that Raku and Perl 7 will at some point combine."

No. Way. In. Hell. We've got 20 years of nonsense trying to separate the two. There is no way they will ever converge.

"People overuse Object Orientation (OO) in my opinion."

Would you mind sharing what your opinion actually is? I've got 54 (I think) CPAN distributions, and I'll bet less than 10% are non-OO. Most software in other languages I write in are OO as well. Typically, if I'm not writing low-level hardware interface software in C, I like OO (for the most part). What in your mind defines when OO is being overused?

"For Python, if you know and understand OO, then OO is fine."

Python, in-and-of itself, inherently is OO, right to its core. Whether you know and understand OO is irrelevant, because if you're using Python, you are by default using OO even if you don't want to ;)

Replies are listed 'Best First'.
Re^3: Why Perl in 2020
by eyepopslikeamosquito (Archbishop) on Jan 06, 2021 at 07:18 UTC

    Python, in-and-of itself, inherently is OO, right to its core

    Really? Care to elaborate? Note that Matz invented Ruby because he disapproved of Python's OO, as indicated here:

    I was talking with my colleague about the possibility of an object-oriented scripting language. I knew Perl (Perl4, not Perl5), but I didn't like it really, because it had the smell of a toy language (it still has). The object-oriented language seemed very promising. I knew Python then. But I didn't like it, because I didn't think it was a true object-oriented language – OO features appeared to be add-on to the language. As a language maniac and OO fan for 15 years, I really wanted a genuine object-oriented, easy-to-use scripting language. I looked for but couldn't find one. So I decided to make it.

    Matsumoto describes the design of Ruby as being like a simple Lisp language at its core, with an object system like that of Smalltalk, blocks inspired by higher-order functions, and practical utility like that of Perl.

    See also: old stack overflow discussion of Python OO

      His claim is correct in the sense that in Python, everything is an object (see an example).

      Ironically those objects are hidden behind a procedural skin, no doubt because Python was procedural before OOP was bolted on, and they couldn't have two ways to do the same thing :)

        It would have been prudent of me to have worded it as you have, and that is exactly what I meant... in Python, everything is an object.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-03-28 15:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found