recommends of redesign OO feature of python !!!
Calvin Spealman
cspealma at redhat.com
Thu Oct 25 08:47:25 EDT 2018
It does not appear that you actually want to use Python.
On Thu, Oct 25, 2018 at 1:15 AM iamybj--- via Python-list <
python-list at python.org> wrote:
> I am an engineer of java and c#, I want to some personal projects in free
> time, and I choose python.
>
> After try python, I hava some suggestion.
>
> The first thing is that python’s class is not well designed than other
> programming languages.
> Using dictionary as data model is the 20th century style, but now is 21t
> century.We usually use strong typed class to express a data model.
> For example, the code presentation of a person in Java/c++/c# may be:
> public class Person {
> public String name;
> public String email;
> public int age;
> }
> The corresponding Python code:
> class Person:
> def __init__(self):
> self.name = None
> self.email = None
> self.gage = None
> It is very strange to define instance members of a class in
> constructor.Even the OOP feature of PHP is very like Java. Python's dynamic
> feature has lost control.
>
> Second, python is too complex.
> Python is an old programming language.At that time, enterprise programming
> style is very popular, witch like making simple things become complex, so
> force the costumer to pay more money.But now is WWW and Internet and Linux
> time, people like simple production and simple programming styles. Every
> new programming language wants to keep simple.
>
> Third, python is too slow.
> At the old enterprise programming time, performance is not a critical
> feature. If software runs too slow, customer have to pay more money to
> enterprise software company to buy new hardware.
> Time changed, performance is very important now. Because the complex of
> python, the pypy project process very slow, and not widely used by people.
>
> Totally speaking, simple and performance are mostly required by this
> times. I suggest the python team should stop any new work, and start to
> rebuild a new python with simple grammar and better performance.
> --
> https://mail.python.org/mailman/listinfo/python-list
>
More information about the Python-list
mailing list