Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I like Python well enough, but at Localytics we use Ruby where I'd previously used Python and I'm finding it a lot nicer. Backticks alone make my life way, way easier.


I agree that Python is a bit of an impedance mis-match for lots of short scripts compared to Ruby and Perl, however it's not that bad.

I'm forcing myself to use Python for SysAdmin tasks because I like it so much.

Here's backticks in Python, pretty much a copy n paste from the docs.

    def backtick(cmd):
        return subprocess.Popen(shlex.split(cmd),
            stdout=subprocess.PIPE).communicate()[0]


> I'm forcing myself to use Python for SysAdmin tasks because I like it so much.

This seems unwise.

Use the best tool for a given job.


Well I exaggerate a little.

And folks tend make too much of the differences between languages.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: