Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Perl Vs Python/Ruby

 
Bobby Sharma
Ranch Hand
Posts: 598
3
Google App Engine jQuery Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not going to start debate here but just want to ask can
we use Ruby/Python for shell scripting ,replacing Perl?

I know Perl is quite powerful for doing that Job but it's ugly than C.
I worked in pearl a little but don't like it much.

I am Java programmer so in future learning Ruby and Python will
be great for me as Java have good integration with both languages.

However,I found a Perl integration library but I don't think it's
effective for web application and job market.

so please get me imbibed

best regards,
[ November 17, 2008: Message edited by: omi sharma ]
 
Jimmy Clark
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perl = Practical Extraction and Reporting Language

The correct spelling is Perl. There is no 'a' character in the name.

can we use Ruby/Python for shell scripting ,replacing pearl?


You can use Ruby or Python for scripting, not Shell scripting however. These are not Shell-based languages.
 
Bobby Sharma
Ranch Hand
Posts: 598
3
Google App Engine jQuery Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
LOL, thank for correction.

What I am asking is can we use Ruby/Python for system adminstration
in Linux.?

if yes,how powerful they are as compared to language Perl when
it comes system administration.

best regards,
omi
[ November 17, 2008: Message edited by: omi sharma ]
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by omi sharma:

What I am asking is can we use Ruby/Python for system adminstration
in Linux.?


Yes, absolutely. Both Ruby and Python are able competitors to Perl, and personally of the three, I like Perl the least.
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by James Clark:
You can use Ruby or Python for scripting, not Shell scripting however. These are not Shell-based languages.


What do you mean here? Perl is not inherited from cshell/bash/bourn/sh

Do you just mean that you can't shebang python code?
 
Bobby Sharma
Ranch Hand
Posts: 598
3
Google App Engine jQuery Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your time
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18094
48
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anaconda - the system configuration utility that runs whenever a Red Hat Linux (or compatible) system boots is a shell script written in Python. So are most of the support scripts for the Xen Virtual Machine facility. Among other things, that means that you can pretty well count on Python being available.

A lot of people prefer Python to Perl because of Perl's unfortunate reputation for "write-only" code.

These days, I tend to use Perl mostly for tasks that depend a lot on pattern matching and Python for more general scripting.
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Tim Holloway:
A lot of people prefer Python to Perl because of Perl's unfortunate reputation for "write-only" code.


And its a well earned reputation.

One crack that I've heard recently is that Python programmers tend to be smarter than Java programmers. Just because every one's mother has heard of Java and tells little Johnnie to "become a Java programmer and make big bucks" whereas no one knows what Python is other than geeks.
 
Jimmy Clark
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...whereas no one knows what Python is other than geeks.


This is a significant weakness. It is important for non-technical roles, i.e. business analyst, project manager, etc, to have a strong grasp of information technologies and tools.
[ November 18, 2008: Message edited by: James Clark ]
 
Joe Ess
Bartender
Pie
Posts: 9264
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by James Clark:
It is important for non-technical roles, i.e. business analyst, project manager, etc,


I have the opposite opinion. If those roles aren't occupied by technical people, I don't want them making technology decisions for me. That's asking for a Dilbert-esque meeting where somebody's read about this great new thing called AJAX on a blog and demands that all our databases use it. Then I have to :roll: and and and finally implement it my own way because non-technical people won't know the difference
And for what it's worth, Python is my choice if a task is too much for a shell script but not enough for a full-blown Java app. My employer has several large-scale Python apps in production and from what I've heard, there haven't been any language-related drawbacks or limitations.
 
Jimmy Clark
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joe, I see your point. I wasn't speaking on "making decisions" however, just for clarity.

What I have experienced is that when non-technical management and other roles do have a significant understanding of information technologies and the various needs of them, better decisions are made and things run smoother.

A project manager that has a significant understanding of Java-based development is a great thing, in my opinion.

A project manager that is clueless about the differences between Java statements and SQL statements, or a web server and an application server, is not a great thing, in my opinion.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic