Hacker News new | ask | show | jobs
by leadingthenet 1512 days ago
> Bad Python looks like good python.

Never used Perl, so I can't really make an honest comparison. I do use Python at work, though, and I can assure you that is FAR from being true.

In fact, I think this is so untrue that I urge you to check out essentially any code written in academia (especially projects involving numeric computation and data science). If you come back and make that same statement with a straight face, I'll eat my hat.

2 comments

I meant superficially. I could write a script that computes histograms over the frequency of the characters in its input, and use the output to judge perl code quality.

In Python, that heuristic wouldn't work nearly as well.

I have had colleagues (in academia) asking me to correct their unindented (or very badly indented code) in Perl. You couldn't actually do that ion Python.
https://metacpan.org/pod/Perl::Tidy is your friend. Think Black from Python land but far more powerful.
> You couldn't actually do that in Python

...and people endlessly complain about it to this day.