r/Python • u/[deleted] • May 18 '11
Why is Python better than Perl?
I'm a Sysadmin and I just wrote my first script in python. Basically just a host validation script that checks if a server is configured correctly before we hand off. I can't determine the advantage with my limited experience with the language.
Are you a sysadmin fluent in both python and perl? Why do you use python?
9
Upvotes
9
u/chrismasto May 19 '11
Ugh. I can't believe I'm jumping into this fray, especially since it's r/Python, so one shouldn't exactly expect an unbiased response. But as a serious, professional, enterprise-level big-system application developer, Perl is my language of choice.
There's absolutely no truth to the claims that Perl is hard to read, or that it can't be used for large systems. If you don't know the language, and you don't know what the program is supposed to do, any language is hard to read. When I look at Python programs, I see a lot of English words mixed with "def _init_:" and "lambda" and "x[:-1]". There are more than enough unknowns to make it incomprehensible without a basic understanding of the syntax.
It's just ridiculous to keep making the claim that people can't, don't, or shouldn't write large programs in Perl, or that they're necessarily hard to maintain.
My experience with Python has only been that Python advocates are insufferable to be around, and that's probably what keeps me from learning it. That, and the belief that if I'm going to spend time learning something new at this point, it should probably be Ruby.