Welcome to your place for tech questions! ( Log In or Join today ) Get answers from experts today. (it's 100% free) Virus removal forum

 
Reply to this topicStart new topic
> Query regarding difference between programming/scripting language..
vijay.gupta
post Sep 25 2010, 03:23 PM
Post #1


Silver Member
***

Group: Authentic Member
Posts: 331
Joined: 5-September 09
From: Delhi, Noida
Member No.: 87,735
Operating System: Windows Xp



Can anyone please let me know the difference between application programming (for eg: c,c++,asp.net etc) and scripting language (for eg: php, vbscript, javascript etc)?
Go to the top of the page
 
+Quote Post
vijay.gupta
post Oct 15 2010, 12:28 PM
Post #2


Silver Member
***

Group: Authentic Member
Posts: 331
Joined: 5-September 09
From: Delhi, Noida
Member No.: 87,735
Operating System: Windows Xp



Can anyone please answer this?

I will ask the specific query after the response to this post.
Go to the top of the page
 
+Quote Post
terry1966
post Oct 16 2010, 12:43 AM
Post #3


SuperMember
*****

Group: Visiting Tech
Posts: 2,056
Joined: 11-October 10
From: Abingdon, uk.
Member No.: 94,698
Operating System: suse linux



i would of said programming languages control the hardware and scripting tells the program language what it needs done, so scripting is a layer above the programming language, so slightly slower, to the end user, there is no difference tho.

but i found a link that i think explains things much better than i could. :- http://www.killersites.com/blog/2005/scrip...e-a-difference/

popcorn.gif
Go to the top of the page
 
+Quote Post
vijay.gupta
post Oct 16 2010, 09:34 PM
Post #4


Silver Member
***

Group: Authentic Member
Posts: 331
Joined: 5-September 09
From: Delhi, Noida
Member No.: 87,735
Operating System: Windows Xp



Thanks terry for the response..i have a query regarding the usage of scripting language. Scripting language is generally used for some automation work. It is valid as per your above post that it controls programming language..
Scripting language is also used in both client and server side programming. The rationale for using client side scripting is: we don't want browser to send request to server for everything so we embed script in html for some actions which don't require browser to contact server and be executed at the client side, thus faster. For example: select all checkbox, all the states of U.S. are populated in the state drop down after selecting U.S. in the country drop down.
Similarly, i just want to know the rationale for using server side scripting?
Also, please let me know if i am wrong any where.
Go to the top of the page
 
+Quote Post
terry1966
post Oct 16 2010, 10:40 PM
Post #5


SuperMember
*****

Group: Visiting Tech
Posts: 2,056
Joined: 11-October 10
From: Abingdon, uk.
Member No.: 94,698
Operating System: suse linux



this is way out of my comfort area, but will try and answer..

lets use your example and the web page needs to know where your located, now the web page designer, might use a script on the server side to use that information provided by you to change what he can lawfully send you.

so if your in the u.s. you would see a video when you click on a link, but if you were anywhere else you would get a message saying sorry copyright laws prohibit us from showing you this video.(they would actual use different methods of getting your location tho biggrin.gif )

so in other words they would use a script to automatically change what location on their servers they will get the information you see in your web browser.

the programming at their end handles the technical details of how data is passed from them to you and the scripting handles exactly what that data is that you finally see as a web page.

hope that helps answer your question.

popcorn.gif
Go to the top of the page
 
+Quote Post
vijay.gupta
post Oct 16 2010, 11:16 PM
Post #6


Silver Member
***

Group: Authentic Member
Posts: 331
Joined: 5-September 09
From: Delhi, Noida
Member No.: 87,735
Operating System: Windows Xp



Thanks Terry for the quick response. Though I understood what you are saying but not very clear. I will try to explain it more clearly where is the problem:

I understood this "if your in the u.s. you would see a video when you click on a link, but if you were anywhere else you would get a message saying sorry copyright laws prohibit us from showing you this video.(they would actual use different methods of getting your location tho)"

I did not get the bolded portion when you say this " in other words they would use a script to automatically change what location on their servers they will get the information you see in your web browser.

the programming at their end handles the technical details of how data is passed from them to you and the scripting handles exactly what that data is that you finally see as a web page."
Go to the top of the page
 
+Quote Post
terry1966
post Oct 17 2010, 12:20 AM
Post #7


SuperMember
*****

Group: Visiting Tech
Posts: 2,056
Joined: 11-October 10
From: Abingdon, uk.
Member No.: 94,698
Operating System: suse linux



ok,
QUOTE
technical details of how data is passed

they way computers talk to one another never changes, they send and receive packets of data(0's and 1's), so it's the programmes job to establish this connection, interpret the data received then send back data when needed/requested, so "technical details".


QUOTE
what location on their servers

computers are computers no matter cost/where they are and everything has to be stored in a certain order/place if a server(computer) needs to send you the "video" data it will be in one place/file if it needs to send you the "sorry notice" data that will be in a different place/file.

QUOTE
what that data is that you finally see as a web page

now when web browsing this forum, it's always the same programme that sends/receives you/r data but it's the scripts that go off and find what data(0's and 1's) it needs to send to you,
what data is needed depends on which link you have clicked on, and is stored in a different place, this is then passed to the programme to be sent to you.

each page is seen by you has something different, a black line, picture or a letter but to a pc it is all seen as the same thing, lot's of 0's and 1's, it's just the order of those numbers change, depending on what page your looking at.

what you see on a screen looks nice and can be understood but to a pc it's just a lot of lights that it needs to turn on or off depending on what order the 0's and 1's are received in. 0 being off and 1 being on.

that better?? biggrin.gif

popcorn.gif

This post has been edited by terry1966: Oct 17 2010, 12:25 AM
Go to the top of the page
 
+Quote Post
vijay.gupta
post Oct 17 2010, 03:54 AM
Post #8


Silver Member
***

Group: Authentic Member
Posts: 331
Joined: 5-September 09
From: Delhi, Noida
Member No.: 87,735
Operating System: Windows Xp



Ok....what I infer now is how the data is sent is handled by the protocol, that is HTTP, how the data will look to the user on the computer after opening the website is defined by the programming language, that is HTML and which data will be shown/response will be given to the user based to user's ip address/input etc is defined by the scripting langauage that is used at the server side, for eg: CGI.

Please let me know if I understood it correctly.

Go to the top of the page
 
+Quote Post
terry1966
post Oct 17 2010, 01:04 PM
Post #9


SuperMember
*****

Group: Visiting Tech
Posts: 2,056
Joined: 11-October 10
From: Abingdon, uk.
Member No.: 94,698
Operating System: suse linux



sounds about right to me.
but don't forget it's a lot more complicated in reality,
not least because programming/scripting are more or less the same.

popcorn.gif
Go to the top of the page
 
+Quote Post
vijay.gupta
post Oct 17 2010, 01:20 PM
Post #10


Silver Member
***

Group: Authentic Member
Posts: 331
Joined: 5-September 09
From: Delhi, Noida
Member No.: 87,735
Operating System: Windows Xp



thanks terry for the response!!
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 


RSS Time is now: 21st May 2013 - 06:14 PM
Advertisements do not imply our endorsement of that product or service. The forum is run by volunteers who donate their time and expertise. We make every attempt to ensure that the help and advice posted is accurate and will not cause harm to your computer. However, we do not guarantee that they are accurate and they are to be used at your own risk.
Member site: Alliance of Security Analysis Professionals | UNITE Against Malware
© Geeks to Go, Inc. | All Rights Reserved | Privacy Policy