Live data from Hacker News

Learn Perl in about 2 hours 30 minutes

qntm.org

1–10 of 111 posts

Re: Learn Perl in about 2 hours 30 minutes

#4

Would it be beneficial to know this alongside of Python, or is it more used instead of Python?

I personally found that I didn't need Perl at all. I am a bioinformatics programmer/scientist and Perl was the first language I learned. I find that whatever I can do in Perl I can do with bash/awk/sed--and whatever I can't do with bash/awk/sed I can do in Python. I've never been happier.

Re: Learn Perl in about 2 hours 30 minutes

#7
Wish there were similar ones for all the other languages - PHP / Python etc. I always thought that most programmers and web developers experienced in one language can quickly pick up the major features of another lanaguage, if there was a quick overview of this sort. Know of any sites that do this? Maybe this is a great opportunity for someone to put together a site like that?

Re: Learn Perl in about 2 hours 30 minutes

#8
post #4

Would it be beneficial to know this alongside of Python, or is it more used instead of Python?

I personally found that I didn't need Perl at all. I am a bioinformatics programmer/scientist and Perl was the first language I learned. I find that whatever I can do in Perl I can do with bash/awk/sed--and whatever I can't do with bash/awk/sed I can do in Python. I've never been happier.

Whatever you can do in one Turing complete language you can also do in all other Turing complete languages. The point isn't what you can do, the point is what tasks are easier, simpler or faster to do in one language compared to another language, while also respecting how hard the language is to learn to get to the point where can can do what you want (easily).

I would prefer to use Perl over bash/awk/sed since Perl is good at the same things and more and has alot more libraries.

Re: Learn Perl in about 2 hours 30 minutes

#9
post #2

not mentioned in the article is that apparently Moose is a really good OO system for perl, but (in my opinion) about 10 years too late.

How is it too late? Ten years ago, significant pieces of Moose did not exist anywhere.

You can make the argument that if Perl 5 had had a better OO system not borrowed from Python, Moose might not exist now. That may be true in part, but I suspect significant pieces of Moose would still have to exist.

Re: Learn Perl in about 2 hours 30 minutes

#10

Would it be beneficial to know this alongside of Python, or is it more used instead of Python?

Perl's used more widely than Python, if you look at job trends -- but then again, you have to consider that Perl 5 was more popular earlier, so there's a lot of entrenched usage. Python may or may not have more new projects written in it; the statistics are difficult to interpret.

You can get by knowing one or the other well. Perl's advantages to me are the CPAN, the tooling culture, the testing culture, and a very pragmatic approach to getting things done without the language or ecosystem dictating how.

Python's advantages are slightly cleaner defaults in Python 3 and the fact that all code looks basically the same. (I'm not sure I see that as an advantage, but other people do.)

Post reply on HN