Forum Home
Press F1
 
Thread ID: 19802 2002-05-23 02:16:00 code & script Guest (0) Press F1
Post ID Timestamp Content User
50285 2002-05-23 02:16:00 yonks ago I wrote 'code' for COBOL progs. Big gap then back to computers and hear all about 'script'. 'Scuse me if dumb question but are they the same thing? Guest (0)
50286 2002-05-23 02:46:00 Mark,

Almost. 'Code' is usually something that is entered in and compiled to create a new program etc. A script however is text based that is accessed from something (eg a website) and the text 'script' is run to perform a certain task. The script is not compiled.

I think that's pretty correct.

Mike.
Guest (0)
50287 2002-05-23 03:11:00 HTML pages are written in HTML code. Often they include Scripts written in either Javascript or VBScript.

Basically they are mini programs that don't need compiling as the browsers interpret and run them.

VBScript is loosely based on Visual Basic - a full programming language.

Javascript is the one most commonly seen on the web as Netscape isn't set up to read VBScript by default.
Guest (0)
50288 2002-05-24 04:38:00 There are great similarities between COBOL code and scripts ... they are both verbose, have filthy syntax, and use huge amounts of CPU cycles. ;-) . Guest (0)
50289 2002-05-24 22:20:00 Thanks to you all but the dif. between code and script is not whether or not compiled, eh? because plenty of code is interpreted too. Maybe 'script' is shorthand for 'little bits of code that perform a subroutine or are embedded like Javascript in HTML'. Maybe the distinction is more in function, than structure. Maybe it's just semantics, but thanx anyway. Guest (0)
1