Ask HN: Why is Perl considered a bad language?
I just saw this post[0] on reddit.com/r/perl, and this is probably the most simplisitic code I've seen in a while. How is this - or similar - done in other languages?
[0] https://www.reddit.com/r/perl/comments/v4kukp/code_help_needed/ib5ggdt/
13 comments
[ 1.4 ms ] story [ 38.9 ms ] threadRather I believe that a language is as good as its founding development community in terms of cooperation, incitement of creativity, inclusiveness, supporting new developers both hobbyists and professional alike and things along this line. I believe those are foundational principals and if those are lacking everything else will be weak and only get weaker with time. Politics, cliques, divisive or elitist behavior will creep in and the rest become downstream artifacts. I witnessed some of this amongst the Perl Monks and it was not surprising that their community stagnated and became divided. This is just my opinion however and I don't code for a living, just for fun. I still write Perl code for my own hobbies.
One huge challenge I had was the inability to read other people's Perl code. There were dozens of ways to solve the same problem, and I had extreme difficulty reconciling my own understanding of "perl" with other people's code.
In the sense of just generating a QR code and outputting to PNG, or building it as a CGI script?
This is what I came up with in Python and Go for the former: https://pastebin.com/NemaaCzF
I still maintain Perl code I wrote at work 10 years ago.
Now most of my work has shifted to Go and Python.
Somewhat related to this, enjoy this article[0] titled “93% of Paint Splatters are Valid Perl Programs”
[0] https://www.mcmillen.dev/sigbovik/
(like bad, unreadable can be a subjective property)
It is easy to write truly awful code in Perl. But if you've never seen truly awful code in any other language, you've lived a sheltered life.