Like us on Facebook!

Saturday, 13 April 2013

Is Python the right language for Sys Administrators?


Yesterday at work the big boss told me to give up on Perl and to start doing everything in Python!

So this took me a few years back when I did all my sys stuff in bash before I got exposed to Perl. I found it easy to pick up and the online community helped quite a bit! 

My natural reaction when I get asked "hey, I need you to do this and it's urgent" is to do it using Perl because >

a) I feel comfortable 
b) it does the job 
c) it's urgent. 

It has pretty much all the modules that I need to get by - web programming, database programming, OO programming, and general stuff like threading, MIME handling ...

So I have used Perl in pretty much everything that I do - log parsing, cgi, reporting, system checks and now automation.

I spoke to a few guys at work and they have said good things about Python and it's ability to use C libraries. 

So what is your experience with Python? Is it the right tool for Sys Admin? Should I stop using Perl? :)

"Python is a programming language that lets you work more quickly and integrate your systems more effectively. You can learn to use Python and see almost immediate gains in productivity and lower maintenance costs."

Python lets you work more quickly ... how? I was told that parsing large logs takes quite a bit. They say Python is easy but Perl is a pain. It's partially true about Perl but maybe that's because they haven't read the doc very well ... this was the case for me :)

How does it integrate with your system *more* effectively?

http://silicainsilico.wordpress.com/2012/03/26/switching-from-perl-to-python-speed/ [Speed Test]
http://strombergers.com/python/ [Python is Cool (and Perl is not), Especially for C/C++ Programmers]
http://www.revolves.net/perl-vs-python-the-final-battle/



2 comments:

  1. Stumbled on this https://www.coursera.org/course/interactivepython , just after having read this. Interested ? Looks free ;-)

    ReplyDelete
  2. python looks interesting ... I had a quick play today :) ... there are so many other languages out there!!!

    anyway, I got my php for zeroMQ working!

    will post it soon ...

    ReplyDelete

Have your say!