albertlee Posted May 19, 2004 Posted May 19, 2004 I am a bit confused about the difference between programming and scripting....... Can any one tell me the definition of scripting? Albert
Dave Posted May 19, 2004 Posted May 19, 2004 For the most part, scripts are an interpreted language; that is, an interpreter will go through your code line by line, and execute those instructions as it goes along (for example, PHP, perl, Python, etc). A compiled language (such as C/C++), the entire source file is converted to a format the machine can understand - please note that most of the time this isn't machine code, but rather an extremely fast and rather simplistic interpreted language.
albertlee Posted May 19, 2004 Author Posted May 19, 2004 Then , What is the difference of Unix Shell and Unix commands? Albert
Dave Posted May 19, 2004 Posted May 19, 2004 A unix shell is basically an interpreter - it does the executing part. You type commands into this shell and it executes them - basically you tell the shell what to do. If you're referring to UNIX applications, then these are (for the most part) compiled programs that, as I said before, are put into a specific format (ELF mostly) for a very fast interpreter built into the kernel.
albertlee Posted May 19, 2004 Author Posted May 19, 2004 Do all scripting languages use for making webiste? if not, then what is the use of scripting language in another ways? Albert
Dave Posted May 19, 2004 Posted May 19, 2004 No, only selected languages (e.g. JavaScript). Other languages such as IRC clients use scripting languages so that people can add functionality to the program easily.
albertlee Posted May 19, 2004 Author Posted May 19, 2004 Acutally, What is the name of Windows script? is it vbscript? What does Windows script do? Albert
Dave Posted May 19, 2004 Posted May 19, 2004 There's no one specific scripting language inherant to Windows. VBScript is one of them though, yes. I've already explained how VBScript is used though.
albertlee Posted May 19, 2004 Author Posted May 19, 2004 but Dave, you say that vbscript is used on Internet, Does nt it have other uses on Windows except on Internet? Albert
Dave Posted May 19, 2004 Posted May 19, 2004 As far as I'm aware, the two main uses for VBScript are: 1) To add functionality to webpages (in the same kind of way as JavaScript) 2) To add functionality to programs in general, if the programmer so desires. I can't tell you any more than that, sorry
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now