Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / A simple question. . .

Author
Message
Dances With Robots
14
Years of Service
User Offline
Joined: 13th Jan 2011
Location:
Posted: 4th Feb 2011 18:50
OK, so I'm demonstrating some serious ignorance here. But a post in another thread got me wondering. . .

"What exactly IS the difference between scripting and programming?"

I mean, when I look at, say, LUA scripts, or (*blush*) LSL scripts, I see what looks a lot like basic source code.

Anyone care to enlighten a simpleton?
Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 4th Feb 2011 20:38
I think that a script, such as php, python, is executed at runtime, meaning that the line of code will be run when it reaches it. Programming languages are generally complied into machine code as far as I'm aware, such as c++, c#, and darkbasic pro.

heyufool1
16
Years of Service
User Offline
Joined: 14th Feb 2009
Location: My quiet place
Posted: 4th Feb 2011 22:05
Scripting languages are generally executed on virtual machine too

"So hold your head up high and know, it's not the end of the road"
Avoider The Game
PAGAN_old
19
Years of Service
User Offline
Joined: 28th Jan 2006
Location: Capital of the Evil Empire
Posted: 4th Feb 2011 22:41
Yeah. scripting is just executed on runtime. while code is compiled before its executed

dont hate people who rip you off,cheat and get away with it, learn from them
n008
18
Years of Service
User Offline
Joined: 18th Apr 2007
Location: Chernarus
Posted: 5th Feb 2011 00:43
So Java is a scripting language? And C#?

"I have faith, that I shall win the race, even though I have no legs, and am tied to a tree." ~Mark75
Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 5th Feb 2011 01:31
I believe Java is complied, but runs on a virtual machine, I don't know what you mean by c# however

Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 5th Feb 2011 01:49
I'm not sure there's a clear definition between a scripting language and a programming language. Some languages overlap the range of proposed differences between the two.
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 5th Feb 2011 02:10
So DBC is a scripting language?

TheComet

Rampage
17
Years of Service
User Offline
Joined: 4th Feb 2008
Location: New Zealand
Posted: 5th Feb 2011 02:32
DBC compiles.

Regards,

Max
n008
18
Years of Service
User Offline
Joined: 18th Apr 2007
Location: Chernarus
Posted: 5th Feb 2011 02:42
DBC, Java, and C# are all interpreted and executed at runtime. Java does have the ability to compile to native code, but this is not the norm or original intention.

"I have faith, that I shall win the race, even though I have no legs, and am tied to a tree." ~Mark75
crispex
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location:
Posted: 5th Feb 2011 04:33
C# isn't really even a "real" programming language. It's a mixture of Java, JavaScript (only on Jquery and JSON based elements), and C.

Anyway, look at it this way, when you're baking a cake you get all the ingredients together before hand, then mix them up and bake them. This is a programming language.

Now, assume that the cake is there, but you want to put some icing on it, you do it "on the fly" in real time, covering the cake as you go along. This is scripting.

JavaScript, Lua, C#, DBC, PHP (well, it's actually parsed before the page loads entirely, but still considered a scripting language), and Python are some examples of scripting languages.

I just now realized I've had a typo in my signature for the past 3 years.
Dances With Robots
14
Years of Service
User Offline
Joined: 13th Jan 2011
Location:
Posted: 6th Feb 2011 04:07
Thanks for the answers guys. After reading your posts I did a little research and it seems that the lines are a little fuzzy.
ionstream
20
Years of Service
User Offline
Joined: 4th Jul 2004
Location: Overweb
Posted: 6th Feb 2011 08:17
There is no clear distinction between scripting and programming, and I would say that scripting IS programming, while programming isn't necessarily scripting. Often the term scripting will be used to describe adding on to a program through the use of scripts. You might program a game engine in C++, but if that game engine has an embedded Python interpreter, then I would be "scripting" if I wrote scripts for that game engine. I consider myself to be programming when I write something in Python that doesn't run inside another program (except Python itself).

And C# is definitely a real programming language.

Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 6th Feb 2011 14:21
I think scripting is basically entering complex commands into a system that has been pre-prepared by a programming language.
Like in FPSC you write scripts to "program" your game but the structure has already been set up for you.


Everything worthwhile requires effort.

Login to post a reply

Server time is: 2025-05-22 11:07:28
Your offset time is: 2025-05-22 11:07:28