Scripting language & programming lang.

Web programming topics
Post Reply
User avatar
Face
Major
Major
Posts: 727
Joined: Thu Feb 18, 2010 5:06 pm
Location: SRI LANKA.KANDY.

Scripting language & programming lang.

Post by Face » Sat Jun 04, 2011 4:20 pm

php & Javascript are very popular scripting languages.There may be more :P .
Java,C++ etc are programming laguages.
can you please tell me what is the deference of these two Scripting languages & programing languages.??
Last edited by Face on Sat Jun 04, 2011 9:28 pm, edited 1 time in total.
User avatar
Saman
Lieutenant Colonel
Lieutenant Colonel
Posts: 828
Joined: Fri Jul 31, 2009 10:32 pm
Location: Mount Lavinia

Re: Scripting language & programming lang.

Post by Saman » Sat Jun 04, 2011 9:20 pm

php & Javascript are very popular scripting languages.There may be more :P .
There is a big difference. php executes on server side (Web Server) while JavaScript executes on client side (ex: browser).
So JavaScript is not used for stuff like database access and php is not used for browser based operations such as detecting button presses, hover, etc...
Java,C++ etc are programming laguages.can you please tell me what is the deference of these two.??
Yes. Java and C++ are programming languages. But there are lots of differences.

Java is not only an application programming language such as C++ (generally). Java is used on server side scripting (JSP, Servlets), on mobile platforms such as J2ME, Android, etc...

Java is a platform independent programming language. That means once you compile it, you will be able to run it in many platforms with a JVM. C++ executables needs to be recompiled using cross-compilers to run on different platforms.

Java is completely an object oriented programming language. C++ can be either used as Object oriented or procedural language.

C++ has pointers (direct memory access) where as Java doesn't support memory pointers.

C++ has lots of control on the OS and underlying hardware where as Java doesn't provide such deep access to the users. This is the reason for using C/C++ for system programming and embedded development. Even Java is developed using C/C++.

C++ very fast since it compiled to direct machine instructions on the underlying hardware. Java is too slow to run in most of the cases due to interpreting byetecode on JVM.

Have a look at this wiki article for a complete comparison.
Comparison of Java and C++

Microsoft has made C# as a competitor for Java and you might be interested to compare C# with Java as well.
See Comparison of C Sharp and Java
User avatar
Face
Major
Major
Posts: 727
Joined: Thu Feb 18, 2010 5:06 pm
Location: SRI LANKA.KANDY.

Re: Scripting language & programming lang.

Post by Face » Sat Jun 04, 2011 9:26 pm

Sorry saman....Sorry about my mistake.I wanted to ask the deference between scripting languages & programing languages ?
my thread not contain a clear Idea about the question. :(

Again I am so sorry about the mistake I have made.!I will change the post now.
User avatar
Saman
Lieutenant Colonel
Lieutenant Colonel
Posts: 828
Joined: Fri Jul 31, 2009 10:32 pm
Location: Mount Lavinia

Re: Scripting language & programming lang.

Post by Saman » Sat Jun 04, 2011 9:59 pm

There are lots of discussions going on on this heading since it is so tricky to answer. However I'll add some of the changes I know.

Scripting languages
Usually interpreted (executed line by line) by an interpreter. For example, php executed on a web server such as Apache.

Since the executable code is the script we write itself, it is easily readable.

Limited access to underlying hardware. (Ex: There are limits on accessing the server information from PHP. There are lots of limits on accessing client system using JavaScript using the web browser).

Usually platform independent code.


Programming languages
Usually compiled or hybrid (both compiled and interpreted such as Java).

Since the executable code is a compiled code, it is not readable. We will need the source code to do a change.

Lots of independence on accessing underlying hardware.

Mostly platform dependant except few languages such as Java.
Post Reply

Return to “Web programming”