When should one use a scripting language over a more verbose, compiled language like C++. C# or Java?
And to make the question a little more interesting, let's answer the questions like this:
You should use a scripting language when... BLANK...
When you need A use scripting language X.
When you need B use scripting language Y.
When you need C use scripting language Z.
As with scripts in general, scripting languages are mostly used to automate processes at the application level. At the command line or through a web server, they are able to execute programs running on a web server and display the appropriate results to the users.
A scripting language is a type of computer programming language used to provide instructions, called scripts, to software. Scripts contain a series of commands that a software, application or scripting engine interprets one at a time within a runtime environment.
The theoretical difference between the two is that scripting languages do not require the compilation step and are rather interpreted. For example, normally, a C program needs to be compiled before running whereas normally, a scripting language like JavaScript or PHP need not be compiled.
'Compiled' means that a programming language has its own compiler that translates the syntax into machine code before runtime. In contrast, scripting languages are interpreted line by line during runtime by the interpreter of the platform they are running on.
You should use a scripting language when speed of development is more important than speed of execution.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With