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 12-26-2003, 10:58 PM   #1
Frank
Member
 
Registered: Jun 2002
Location: Québec, Canada
Distribution: Slackware
Posts: 42

Rep: Reputation: 15
Seeking for a good scripting language...


I seek for a scripting language which is quick to learn, yet powerful. Which scripting language available under linux (perl, python, etc.) is the most polyvalent, has a great potential and has most chances to be used for a long time in the community???
I have a good base in C and C++, but it's complexity and syntax made me want to learn something else...
 
Old 12-27-2003, 12:21 AM   #2
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Perl is a good standby, though if complexity and syntax are not your thing, Perl might be tough. PHP seems to be going places. And if you want a good general-purpose scripting language for Linux tasks, the bash or csh shell scripting languages can't be beat. But it all sort of depends on what you want to use it for.
 
Old 12-27-2003, 04:29 PM   #3
tigod
LQ Newbie
 
Registered: Oct 2003
Location: Brazil
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
Python rocks!

Man,

I just learned Python and I can say that it ROCKS!! If u need a powerfull language and easy to learn, this is the one!! And its more than just a scripting language, its a lot more. Bit Torrent is built in Python, for example. =)


[]'s
TiGOD.
 
Old 12-28-2003, 01:00 AM   #4
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
perl is useful and fun, as is python. shell scripting _YOU_MUST_KNOW_ if you run a *nix computer imho. php is a web scripting language and has nothing to do with linux; if you're not into webdev i see no reason to learn it.
http://www.tldp.org/LDP/abs/html/
 
Old 12-28-2003, 07:48 AM   #5
llama_meme
Member
 
Registered: Nov 2001
Location: London, England
Distribution: Gentoo, FreeBSD
Posts: 590

Rep: Reputation: 30
I'd recommed Python, but just to add a bit of diversity, Lua (http://www.lua.org) is also a very nice and simple language.

Alex
 
Old 12-30-2003, 04:09 AM   #6
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 32
Perl rules. Even though you may not like comlpexity, Perl has something for everyone.
 
Old 12-30-2003, 08:22 AM   #7
nephilim
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: Debian (server), Kubuntu (desktop)
Posts: 248

Rep: Reputation: 30
I just learned perl myself and if you know C and C++, this shouldn't be too much of a problem.
 
Old 01-02-2004, 02:13 AM   #8
SolarBear
Member
 
Registered: Oct 2003
Location: Québec, Canada
Distribution: Gentoo 2005.0(desktop), Debian 3.0 r2 (server)
Posts: 105

Rep: Reputation: 15
Learning Python is a cinch ; I did it in an afternoon. I've been hooked to it since then. I'm less fond of Perl, but its user base is larger by an order of magnitude, so support is easier to find.

My advice : learn both.
 
Old 01-02-2004, 08:49 AM   #9
Strike
Member
 
Registered: Jun 2001
Location: Houston, TX, USA
Distribution: Debian
Posts: 569

Rep: Reputation: 31
Python is the best language ever, so learn it But I also agree with one of the above posters in that you should learn basic shell scripting if you are going to become seriously powerful on a *nix box. Python is great for anything ranging from automating simple tasks to building full-fledged applications, but for very quick hacks, shell scripting is often more useful (so is perl, but I hate perl and don't recommend that anyone ever learn it for fear of them learning some of the awful habits perl coders often acquire)
 
Old 01-02-2004, 07:01 PM   #10
sonar0m
LQ Newbie
 
Registered: Dec 2003
Location: Austin, TX
Posts: 5

Rep: Reputation: 0
python all the way! it is easy for simple suff but a few things that might throw you for a loop

EVERYTHING is a object... now this is a brod statemt but true. i dont mean everything you make ... i mean everything. including the deffination for a class

spacing is nessary ... the tab's are required to code there are no brackets.

learn about the cool new varables like tuples and dictnary's


of corse you could get info on it at www.python.org

but my fave is http://diveintopython.org/ but this is not for 's ... at least the one i got ((was a while back)) it is a good intresting read **as far as how to's go
 
Old 01-02-2004, 08:54 PM   #11
poison
Member
 
Registered: Dec 2003
Location: Layer 7 =D
Distribution: Slackware, LFS, Rock Linux
Posts: 165

Rep: Reputation: 30
depends on your preferences....
maybe PHP....which....by the way is _not_ only a server side scripting language (with the CLI you can also write shell scripts) ...
it's very easy to learn, easy read, dealing with complex data structures is as easy as can be, you can write almost pure OOP code...
IMHO it's the best choice to start with since it is very similar to C, regarding syntax and style...and if your planning on someday switching to c/c++ you won't have much troubles understanding =)

or you could start with something really weird but more powerfull than any other scripting language....Perl ^^ but I guess it's not a good choice to start with since your brain will get poisoned by the syntax that can sometimes only be described as magic *g*

bash is VERY important if you plan to stay with linux...but maybe not the best choice to start with since (I'll just keep my opinion, I dont wanna get flamed with a hundred posts ^^)

are you planning to start real programming ? start with C++ or Java...from the beginning...

I have taken a look at phyton...
but IMHO it looks too much like basic....I've started 10 years ago with basic/asm on a C64...and all those memories came back and I instantly closed my browser and decided never to visit that site again *gg* take the word of somebody else regarding phython...

greets =)

Last edited by poison; 01-02-2004 at 08:59 PM.
 
Old 01-02-2004, 10:35 PM   #12
fr0zen
Member
 
Registered: Nov 2003
Location: 127.0.0.1
Distribution: xubuntu
Posts: 217

Rep: Reputation: 30
In my own opinion:

Take a look at both PHP and Python. If you're looking for speed/efficiency, you'll want to use PHP (I've benchmarked it running 50% faster than Python).

If you want quick/powerful, both are adequate. It's possible to even combine the two.
 
  


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
difference between shell scripting and c language gadekishore Linux - Software 5 10-17-2005 06:33 AM
How does a client side scripting language get executed ?? tuxfood Linux - Software 3 10-06-2005 08:26 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 09:17 AM.

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