• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Perl Vs Python/Ruby

 
Ranch Hand
Posts: 598
3
jQuery Google App Engine Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
jQuery Google App Engine Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 4803
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
jQuery Google App Engine Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your time
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 4803
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Fire me boy! Cool, soothing, shameless self promotion:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic