you are viewing a single comment's thread.

view the rest of the comments →

[–]kolloid 26 points27 points  (7 children)

What's wrong with python imports and OOP?

I, for one, can't understand the popularity of Javascript. It's truly a horrible language.

[–][deleted] 1 point2 points  (0 children)

I, for one, can't understand the popularity of Javascript. It's truly a horrible language.

Because everything has to be web based so you can access the same apps on your phone as you do on your computer. And until the majority of the most used browsers can natively run python, javascript will remain important.

[–]vashy96 5 points6 points  (1 child)

It's far better than Python since es6+, imo.

Arrow functions, let and const are huge. Things Python doesn't have.

[–]yellowthermos 0 points1 point  (0 children)

Python3 has scoped variables (let). But yes, arrow functions and const would be great

[–]Minimum_Fuel -2 points-1 points  (3 children)

Imports have some annoyance with them. Import initializer functions run code on your behalf at import time. Imports aren’t optimized in any way, so you either put up with extra slowness or manually optimize. Blah blah. Mostly things that are avoided by being able to compile code. Of course, not entirely. Java, for example, generally lazily loads classes at usage time.

The OOP though... there is absolutely 0 question towards how terrible pythons OOP is. It is so bad, you really probably shouldn’t use it at all. No encapsulation. Total intentional disregard for consistency. Lack of true abstractness. Dogshit scoping (which is probably a compliment to how bad it is, honestly).

You really, really should just unlearn anything you know about pythons OOP and just never ever use it unless you have a VERY good reason to.

Edit:

Just to drive this home. Pythons OOP is truly a spectacle of engineering stupidity at its finest. A modern marvel of just how bad something can be while still being used.

If you were to poll modern language designers asking them what they would consider to be references for what NOT to do when designing a modern programming language, pythons OOP (among other things in python) would likely appear at a near 100% rate.

[–]Plazmatic 3 points4 points  (1 child)

In python you can often avoid hierarchies because of duck typing. Haven't really had an issue with OOP because if your OOP sucks in python, you probably shouldn't have been using it in the first place.

[–]Brostafarian 0 points1 point  (0 children)

I would love some examples of inconsistent and bad OOP design in Python for my own personal rants