Skip to main content
GameDev.net gamedev.net
🔒 Locked

Script Languages

Started by Xorcist Apr 24, 2002 at 11:27 PM 19 replies 3.2k views
Original Post
Xorcist
Xorcist
Can someone gimme a quick rundown on the differences between say Java and Java script or Visual Basic and VB Script. Thanks.
badblood909
badblood909
For starters, Java and java-script have nothing to do with each other, other than name similarity.

Be more specific.

-It''s all in the blood...
-It's all in the blood...
EODCyismARDEM
EODCyismARDEM
yeh i agree with anonymous, save your time and don''t be a jerk
~EODCyismARDEM
SabreMan
SabreMan
quote:
Original post by Anonymous Poster
There are no silly questions when you are trying to learn. If your not going to be helpfull then don''t answer and save GameDev the hard drive space.

If you were so concerned about GameDev''s storage requirements, rather than being self-righteous, then I don''t think you''d be pointlessly posting to complain about pointless postings.


[C++ FAQ Lite | ACCU | Boost | Stroustrup on Learning C++]
Zanthos
Zanthos
All I know on this is that for visual basic scripting all of the variables are variants, so theres no explicit declarations of single data types(unless you''re using types like c structs). As for java-script and java.. no idea.. and as for jscript.. its an imposter!
Xorcist
Xorcist
So basically when it all comes down to it, those "script" versions of the languages are stripped down versions for web development, thanks. I''ll do a little more research on it for more specifics, not to say I wasn''t already. As some people here can''t imagine that actual word of mouth goes a long way above what articles and arguements often supply. Gotta love the negativity though. It''s nice to know you can assume that this is the only effort I made toward achieving my answer. Keep up the good work.
SabreMan
SabreMan
quote:
Original post by Xorcist
So basically when it all comes down to it, those "script" versions of the languages are stripped down versions for web development, thanks.

Stripped-down versions of what? Java? None of them are a "stripped-down" version of anything, they are all languages in their own right, apart from maybe JScript, which is a rip-off.

Listing the differences between the languages you mentioned is a bit superficial. We need to know in what context you are talking about. The differences are only relevant when you have a task you need to carry out, then we might me able to talk about how you would approach that task in each language. People spend years learning various technologies and understanding the trade-offs between each technology. Ultimately, it''s something you have to find out for yourself; there is no short-cut to this sort of hard-earned experience and knowledge.


[C++ FAQ Lite | ACCU | Boost | Stroustrup on Learning C++]
Xorcist
Xorcist
quote:

Stripped-down versions of what? Java? None of them are a "stripped-down" version of anything, they are all languages in their own right, apart from maybe JScript, which is a rip-off.




See this is what I''m trying to find out. Most of the resources I''ve come across compare Java to Java Script and VB to VB Script each hinting that the latter has some basis in the former (if nothing more than syntax). Yet all the "script" languages seem to be completely based around web development. Using key elements of there supposed parent languages but simplifying somewhat to reduce development time. I''m already well versed in Java as well as Visual Basic, and never touched their scripted counterparts before. Just wondered what the differences are... I''m not asking anyone to write an in depth dissertation on the subject.

Here are some of this sites I''ve read over:

Java / Java Script
http://airweb2.org/links/java.cfm
http://itc.utk.edu/itc/clearinghouse/java/jvsjs.html
http://www.firststep.com.au/education/solid_ground/javadiff.html
http://www.htmlgoodies.com/beyond/j_vs_js.html

VB / VB SCript
http://www.natecsystems.com/98%20Sep-Oct%20VBA%20vs%20Visual%20Basic.html
http://www.devguru.com/Technologies/vbscript/quickref/vbscript_intro.html
Xorcist
Xorcist
P.S. Maybe I should have asked what these scripting languages are mainly used for? That might have made a bit more sense, but it looks like I''ve got the answer I was looking for. So we''ll leave it at that. Sorry for being incorrectly inquisitive.
Oluseyi
Oluseyi
quote:
Original post by Xorcist
See this is what I''m trying to find out. Most of the resources I''ve come across compare Java to Java Script and VB to VB Script each hinting that the latter has some basis in the former (if nothing more than syntax). Yet all the "script" languages seem to be completely based around web development.

No disrespect to anyone, but most web "resources" are written by overexcited and underinformed individuals. JavaScript was named so in a slick marketing move by Netscape to capture public attention since Java was generating a lot of hype (and ECMAScript isn''t "sexy"). Furthermore, JavaScript is a full-featured language which simply requires an object model to adapt to different application domains. It''s as useful for RAD as for web development, but just more associated with the latter.

VBScript - Visual Basic Scripting Edition - is an ASP/MSScript client language. It was designed to be a drop in replacement for JavaScript in ASP web development. It''s different than Visual Basic and Visual Basic for Applications. Again, more a marketing misnomer with slight syntactic similarities.

[ GDNet Start Here | GDNet Search Tool | GDNet FAQ ]
[ MS RTFM [MSDN] | SGI STL Docs | Boost ]
[ Google! | Asking Smart Questions | Jargon File ]
Thanks to Kylotan for the idea!
Auron
Auron
The main purposes of VBScript and java-script are as client-side web scripting languages. However, both are also quite embeddable. You can get java-script libraries and VBScript ActiveX controls that allow you to make you applications scriptable through those scripting languages. That''s probably also how browsers can read scripts in those languages.

A good example would be Visual Studio. The IDE has VBScript embedded so you can use it for programming macros.

-Auron
Siebharinn
Siebharinn
It''s important to point out that java-script is not related to Java at all. They share a few syntactic elements, but apart from that, they are completely different.

VBScript is a subset of VB. You don''t get typed variables (everything is based on Variant), you can''t compile VBScript, and a few other elements, but that''s about it. They are very similar. Both adhere to the COM/OLE/ActiveX object model.

Take care,
Bill

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.