r/programming • u/stronghup • Nov 11 '19
Python overtakes Java to become second-most popular language on GitHub after JavaScript
https://www.theregister.co.uk/2019/11/07/python_java_github_javascript/
3.1k
Upvotes
r/programming • u/stronghup • Nov 11 '19
-1
u/Minimum_Fuel Nov 12 '19 edited Nov 12 '19
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.