LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-23-2009, 12:09 AM   #1
kike_coello
Member
 
Registered: Jul 2005
Location: maryland
Distribution: Ubuntu 9.04
Posts: 88

Rep: Reputation: 17
Which is the best scripting language?


I want to know which is the best scripting language right now and what you guys think its going to be the best or most used in the future, that is, in about 5-10 years. Take into account system administration and applications. This are the languages i had in mind, add more if you think other scripting languages are better or worth considering.

- Perl
- Python
- Ruby
 
Old 07-23-2009, 01:24 AM   #2
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
I would say that Ruby is the best language, as for the most used in the future probably any language other than Ruby
 
Old 07-23-2009, 01:34 AM   #3
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,697
Blog Entries: 5

Rep: Reputation: 244Reputation: 244Reputation: 244
there is no such thing as the best language, period. The "best language" will be the one you define yourself, AFTER exploring them one by one , yourself. this question is asked again and again and i can foresee what will happen after this.

Last edited by ghostdog74; 07-23-2009 at 01:36 AM.
 
Old 07-23-2009, 03:01 AM   #4
rkirk
LQ Newbie
 
Registered: Apr 2009
Posts: 26

Rep: Reputation: 23
Those three (Perl, Python, Ruby) are the first three that spring to my mind when I think "scripting", but I'd say that Perl and Python are each a lot more commonly in use than Ruby and thus more useful when it comes to leveraging someone else's code to get work done.

That narrows it down to two: Perl and Python. Of these two, I'd say that Python is better for quick and dirty scripting because it places simplicity and ease of understanding above all else. And with today's computers being very fast and having memory measured in the gigabytes, it often makes sense to promote clarity and simplicity above memory management and such. Also (on a personal note) Perl has a syntax and a style that is much too hodge-podge and heterogeneous for my taste.

My motto is sort of: "First, write it in Python; second, write it in C (you may skip this step)."
 
Old 07-23-2009, 03:20 AM   #5
vap16oct1984
Member
 
Registered: Jun 2009
Location: INDIA
Distribution: RHEL-5
Posts: 174
Blog Entries: 3

Rep: Reputation: 38
well all are the best languages its totally depend on you in which you are expert.
We can do all the great things with any of the language, just its depend on your command
,expert and mastery on that language.
 
Old 07-23-2009, 06:23 AM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
The best scripting language is the one that you are most familiar with, AND which fits whatever problem you are trying to solve. The first criteria would take precedence----for example, it will not help you if Perl is better at some text processing task if you are much more fluent with BASH.
 
Old 07-23-2009, 08:51 AM   #7
nowonmai
Member
 
Registered: Jun 2003
Posts: 481

Rep: Reputation: 48
Perl!
Python!
Ruby!
Bash!
Lua!
 
Old 07-23-2009, 07:12 PM   #8
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Pyrubarlua!
 
Old 07-23-2009, 07:34 PM   #9
bannock
LQ Newbie
 
Registered: Jun 2009
Location: Toronto
Distribution: Ubuntu, Fedora
Posts: 24

Rep: Reputation: 18
The best language to learn is whatever they ask for in the job posting.
 
Old 07-23-2009, 09:33 PM   #10
chigurh8
Member
 
Registered: Jul 2009
Distribution: Ubuntu, Gentoo
Posts: 102

Rep: Reputation: 18
For a combination of:
1. being widely used
2. being easy to use
3. being a good general-purpose language
going by what I've read, I'd have to say Python. I've never really learned it, though ... I've learned very little of it, same with Ruby. I've only really put bash and PERL to any use, of these ...
 
Old 07-23-2009, 10:19 PM   #11
kike_coello
Member
 
Registered: Jul 2005
Location: maryland
Distribution: Ubuntu 9.04
Posts: 88

Original Poster
Rep: Reputation: 17
Thanks guys, I think I'm going to start studying Python mostly because it has gtk+ bindings and has a lot of math functions similar to Octave. Thanks for the replies.

Enrique
 
Old 07-23-2009, 11:24 PM   #12
shuuhen
Member
 
Registered: Jun 2004
Distribution: Mac OS X 10.6.6, Gentoo Linux, FreeBSD 6.0
Posts: 127

Rep: Reputation: 20
The best language is the one that changes the way you think and helps you solve problems in more efficient/effective ways. There's a quote similar to my last statement somewhere. A language's purpose is to let you express an idea.

Personally, I like Ruby. It has some downsides (so do the others), but I find it is great for quick programs. It has taught me new ideas and let me experiment easily with others. The language has also helped me with many projects.

Any of the three languages should have some benefit to your programming abilities. If I were to pick two, I'd pick Ruby and Perl. Even though I've heard Perl code is hard to read, I've seen plenty that is easier to read than code I've seen in other languages. A good langauge is only part of the battle of having easy to read code. Whatever you choose, it will still be up to you to learn to write good code rather than bad code. It's not very difficult to write bad code in any of them.
 
Old 07-23-2009, 11:47 PM   #13
chigurh8
Member
 
Registered: Jul 2009
Distribution: Ubuntu, Gentoo
Posts: 102

Rep: Reputation: 18
for all the comments i've heard about PERL being hard to read, i have used it and read the documentation on it, and i don't see it being as bad as people act like it is, but it is a little funny ...
 
Old 07-24-2009, 12:51 AM   #14
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by chigurh8 View Post
for all the comments i've heard about PERL being hard to read, i have used it and read the documentation on it, and i don't see it being as bad as people act like it is, but it is a little funny ...
Any language has its bad programmers.
 
Old 07-24-2009, 12:52 AM   #15
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Perl in the list above has, I think, the widest set of features and greatest flexibility.

My favorite one.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
event.d scripting language? Hourani Linux - Newbie 3 02-02-2009 04:39 PM
Best scripting language? walterbyrd Linux - Software 2 01-08-2006 02:13 PM
Which Scripting Language? birdseye Programming 2 10-03-2005 09:54 AM
Choosing a scripting language joeljkp Programming 5 10-27-2004 04:36 PM
Favorite scripting language rverlander General 8 09-02-2002 05:06 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration