Remix.run Logo
BeetleB 5 hours ago

Yes, the answer is Python, Python, Python.

There's a reason the Zen of Python includes this:

"There should be one-- and preferably only one --obvious way to do it."

It also came with batteries included, which really lowered the learning curve.

Perl was well known for being a pain to read months after you wrote it. Most Python code in those days was readable by people who did not even know Python.

When I started my job in 2010, I took a class at work on Perl. I had done some Perl years before and had grown sick of it, but I thought I was just doing it "wrong" so I thought the course would tell me how to code in Perl "properly".

Nope - I'd been doing it "right" all along. I just hated the language. At the end of the course, I told the instructor (a graybeard) that he should just use Python, and that one day I'd teach the Python course and he should attend. He scoffed at the notion: "Languages will come and go, but Perl will always prevail!"

I never did teach that course, but I bumped into him about 7 years later. He had completely (and willingly) abandoned Perl for Python, and was a big Python advocate.

liveoneggs 5 hours ago | parent [-]

if only python stuck to any of those ideals

BeetleB 4 hours ago | parent [-]

Python has grown some warts, but I can still read code I wrote 20 years ago.

People who don't know Python will have a harder time reading modern Python, though.