News for hackers. Stuff that matters.
Re:If AI writes your code, why use Python? by KptMarchewa on Tuesday May 12, 2026 @07:18AM (#48106663)
I think the meme come from the fact that in 00s and early 10s most people looked at Python code coming from C++ and Java.

In Java bad OOP conventions were commonplace, like everything using getters/setters, deeply nested class hierarchies and insane patterns like AbstractSingletonProxyFactoryBean. It got impossible to figure out what's going on.

C++ just got every possible feature that badly interacts with each other, in an amount that never could fit in a single person's context window. That basically led to a situation where every programmer or company had it's own dialect of the language; the other dialects than your own were mostly incomprehensive.

Python has it's own share of bad features, and for a long time really bad ecosystem around the language - Python 2 vs Python 3; eggs vs wheels; easy_install vs pip; 123489 ways of installing Python and each of them bad. But, once it started to become better, in the mid-late 10s, around Python 3.5 or 3.6, it exploded in popularity.

Re:If AI writes your code, why use Python? by mjd on Tuesday May 12, 2026 @09:14AM (#48107813)
C++ and Java and … Perl.
Re:If AI writes your code, why use Python? by boringg on Tuesday May 12, 2026 @09:16AM (#48107848)
Python data processing/ML in the 2010s became a huge asset for the language.
Re:If AI writes your code, why use Python? by jimz on Tuesday May 12, 2026 @01:22PM (#48111325)
Ironically it also created a ton of really badly written Python in the process.
Re:If AI writes your code, why use Python? by OutOfHere on Wednesday May 13, 2026 @04:11AM (#48119150)
Commercially, almost all Python is fairly badly written, with types either not documented or not passing with any consistency even when documented. It is the default state of Python. I blame Python for it because it could have made type definition and conformance a default, but it didn't.
Re:If AI writes your code, why use Python? by delecti on Tuesday May 12, 2026 @04:45PM (#48114289)
The AI boom has really carried Python up with it, but it was quite popular as early as the mid '00s. I remember grumbling in college around that time that the CS curriculum was shifting from Java to Python, because I didn't like Python and thought it was a worse first language.

Incidentally, even though I still hold those opinions, I can admit that history has solidly shown them to be unfounded.