On Sun, 18 Oct 2020 12:19:18 -0600, Michael Torrie wrote:

> Python certainly is procedural.  A script starts at the top and executes
> through to the bottom and ends, barring any flow control in the middle.
>  Like Perl you can use it in many different ways and paradigms including
> OO if you desire.

That's not the point. In Python, regular expressions are a class. So are 
strings and lists. 
In Perl, there are no classes. Procedural paradigm means that you are modelling 
the real world
with the objects provided by the computer environment: strings, numbers, lists 
or hashes (known 
as "dictionaries" in Python). OO paradigm allows you to create objects and make 
them behave like 
in the real world. In other words, in OO paradighm, data and functions are 
related. The basic 
idea of the OO was to make code sharing much easier. However, things  do not 
always work as 
they should:

https://medium.com/better-programming/object-oriented-programming-the-trillion-dollar-disaster-92a4b666c7c7

https://towardsdatascience.com/object-oriented-programming-is-dead-wait-really-db1f1f05cc44

Of course, not everybody agrees. People never do:

https://techbeacon.com/app-dev-testing/object-oriented-programming-dead-not-long-shot

Sometimes, OO has its funny side:
https://www.wearethemighty.com/articles/that-time-the-australian-air-force-squared-off-against-missile-shooting-kangaroos

-- 
Mladen Gogala
Database Consultant
http://mgogala.byethost5.com
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to