Scripting Preference

Pages: 12
What is everyone's scripting language of choice and why? I lean toward Lua myself. I find it's C API fairly straightforward and it can be embedded easily. It is also one of, if not the fastest interpreted scripting languages.

The down side to the language is there is considerably less documentation available, although I think what's out there is enough to do the job, your choices are just limited. It also is not as widely seen in corporate solutions. I had a project at my last employer and I busted out Lua... everyone just looked at me. No one had heard of it... granted half the team were "Oracle Developers" which was a bloated title. All they did all day was push around PL SQL. They went with Python instead.... which got the job did...
Last edited on
Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python Python
Or sh. But I'm not that good at shell script.
Yeah I knew you would respond with Python. Ever looked into Lua? :)
closed account (z05DSL3A)
What is everyone's scripting language of choice and why?

The best one for the job at hand, because I want an easy life. :0)
The best one for the job at hand, because I want an easy life. :0)


Good answer :). But you must have one you enjoy more than the other right?
closed account (z05DSL3A)
Perl is the one that I want to study more in-depth but I tend not to have the time to play with scripting. Maybe it 'cos I like the Llama book.
I like Python syntax and its indentation thing
Ever looked into Lua? :)

No but it has a cool name and you seem to like it; so I will look into it.
Perl is the one that I want to study more in-depth

Me too. My excuse is that I can't afford the book. It's like £28. I have £5. And I'm meant to be saving for my own computer so I can install four operating systems...
the Llama book.


Llama ???

I script only in Roblox (:P it's fun) which supports lua as well

so I can install four operating systems...


Which ones?

Also what is the cost of a hamburger at McDonalds in the UK (So I can guess currency exchange)
closed account (z05DSL3A)
The Llama Book is Learning Perl... 'cos it has a Llama on the cover.
Hmm that sounds funny I think I might learn PERL now ...
I've been thinking about using tcl/tk but its meant to be cross-platform but on its website it says all these problems it has with windows.

What do any of you think is better (wx)python or tcl/tk?
Last edited on
Camel book:
http://covers.oreilly.com/images/9780596000271/lrg.jpg
Llama book:
http://www.ebookchm.com/screen/it-ebooks/smallerar9.jpg

I didn't know there was a Llama book.

Also what is the cost of a hamburger at McDonalds in the UK

About £2.50, which is $4.10.

Hmm that sounds funny I think I might learn PERL now ...

Here's an example:
Send an email:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
use chilkat;

#  The mailman object is used for sending and receiving email.
$mailman = new chilkat::CkMailMan();

#  Any string argument automatically begins the 30-day trial.
$success = $mailman->UnlockComponent("30-day trial");
if ($success != 1) {
    print "Component unlock failed" . "\n";
    exit;
}

#  Set the SMTP server.
$mailman->put_SmtpHost("smtp.chilkatsoft.com");

#  Set the SMTP login/password (if required)
$mailman->put_SmtpUsername("myUsername");
$mailman->put_SmtpPassword("myPassword");

#  Create a new email object
$email = new chilkat::CkEmail();

$email->put_Subject("This is a test");
$email->put_Body("This is a test");
$email->put_From('Chilkat Support <support@chilkatsoft.com>');
$email->AddTo("Chilkat Admin",'admin@chilkatsoft.com');

#  Call SendEmail to connect to the SMTP server and send.
#  The connection (i.e. session) to the SMTP server remains
#  open so that subsequent SendEmail calls may use the
#  same connection.
$success = $mailman->SendEmail($email);
if ($success != 1) {
    print $mailman->lastErrorText() . "\n";
    exit;
}

#  Some SMTP servers do not actually send the email until
#  the connection is closed.  In these cases, it is necessary to
#  call CloseSmtpConnection for the mail to be  sent.
#  Most SMTP servers send the email immediately, and it is
#  not required to close the connection.  We'll close it here
#  for the example:
$success = $mailman->CloseSmtpConnection();
if ($success != 1) {
    print "Connection to SMTP server not closed cleanly." . "\n";
}

print "Mail Sent!" . "\n";


Here's some PHP to do roughly the same thing:
1
2
3
4
5
6
7
8
9
10
$_subject = "Re: Test";
$_body    = "This is some body text";
$_from    = "bill_g@microsoft.com";
$_to      = "you@somewhere.com";

if (mail($_to, $_subject, $_body) {
    echo "Email sent.\n";
} else {
    echo "Error. Try a bigger eNET cable so the internet can fit through better.\n";
}
closed account (z05DSL3A)
The Camel Book, The Llama Book, The Dragon Book, The Dinosaur Book...us programmers are an inventive bunch, no?

and who can forget The Pink Shirt Book..
Last edited on
closed account (S6k9GNh0)
Hmmm... Scratch :D

On a serious note, I know a little bit of each language since I've made some cool little programs that basically do nothing useful. I wish I still had them to show of though. >.>

If I had to say my favorite, it'd be.... *drumroll* None of the above. For games, it MIGHT be Lua. I don't really like scripting to be anywhere around my games. For everything else, I'd probably enjoy Perl or Python. Like, I said, I made some small tools but they're years old, even before my days of Unreal Script. I haven't scripting something using a script language in ages.
Last edited on
How old are you? I always imagined you in the range of 16-19...

I like Python and PHP best. PHP I've forgotten most of; I only spent two days learning it (a Saturday and Sunday, so a total of 10-16 hours) and then about a week using it.

I haven't done much on BASH script; I spent about an hour learning it when I was meant to be doing homework, so I don't really know it very well. I'm still learning Python. I'm probably going to make a large effort at Python, Perl and PHP in February (I'll have been programming C/C++ for ~1 year), but who knows? I like to take the "cross that bridge when I come to it" approach to everything...

I might start learning bash script again tonight...
What about Ch?
For C/C++ programmers should be the best scripting language
Interesting... I've never heard of Ch. What advantages might Ch have over... say Lua?
It's a C/C++ interpreter. That's it. I looked it up. I don't want it, tbh.

DrChill wrote:
Which ones?

1. A Linux
2. Free or Open BSD
3. GNU Hurd (when it arrives)
4. Minix.
Last edited on
Interesting... I've never heard of Ch. What advantages might Ch have over... say Lua?

Nothing, it's just similar to C/C++
This diagram shows it: http://www.softintegration.com/images/support/chwithothers.gif
Last edited on
Pages: 12