During websites development mostly we use scripting languages, like Javascript, PHP, ASP , JSP , XHTML, are scripting languages, I know XHTML is not a scripting language its a markup language. On other hand most programs on our computer let’s say Firefox, text editor, calcuator, are developed in compiled languages.
Difference between compiled and Scripting languages.
1) Scripting Language.
Actually computer languages are for humans so humans can understand but computer cannot understand them unless any program convert them into machine language. So scripting language needs to convert into machine language as well so computer can understand that and do the instructions of code. For that purpose scripting language use interpreters they convert the code into machine language so computer can understand that and do the instructions of code. As we know javaScript is scripting lanaguage so browser have its own interpters to convert it into machine language and show us what we need.
2) Compiled language.
Compiled languages are when we write a code like in C++, C#, Java and other languages we have to convert our code into compiled version that is the version which computer can understand and can do the instructions of code. Compiled software are faster than the scripting language software cause computer have done their understanding once and they do not need to do that again and again. Compiled code cannot be read by humans that is only for computers. We get compiler for each language to convert its code into compiled version.
There are benefits of scripting language that is fast to test understand and debug, compiled language if we get and error after compiling we will have to fix the bug then compile again and test. That’s time consuming but compiled software are very fast to work.