• Advertisement

Archived

This topic is now archived and is closed to further replies.

Script Languages

This topic is 5750 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Can someone gimme a quick rundown on the differences between say Java and Java script or Visual Basic and VB Script. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Differences? It would be much easier to point out the similarities, which is only some syntax, everything else is different.

Share this post


Link to post
Share on other sites
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...

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
quote:
Original post by SabreMan
No.

<span><hr height=1 color="#999999"></hr></span><small>[<a href="http://www.parashift.com/c++-faq-lite/">C++ FAQ Lite</a> | <a href="http://www.accu.org/">ACCU</a> | <a href="http://www.boost.org/">Boost</a> | <a href="http://www.research.att.com/~bs/new_learning.pdf">Stroustrup on Learning C++</a>]</small>


Don''t be suck a jerk. If you don''t want to help him out then don''t post.

Their syntax is similar, but Java script and VB Script are mainly just used for client side web programming. Where as the others can be used for non web programming as well.

Share this post


Link to post
Share on other sites
SabreMan wasn''t being a jerk, he just wasn''t at all subtle. I think his answer goes best with the saying "ask a silly question, get a silly answer".


Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
quote:
Original post by siaspete
SabreMan wasn''t being a jerk, he just wasn''t at all subtle. I think his answer goes best with the saying "ask a silly question, get a silly answer".

<small><hr>Helpful links:
<a href="http://www.tuxedo.org/~esr/faqs/smart-questions.html">How To Ask Questions The Smart Way</a> | <a href="http://www.google.com/">Google</a> can help with your question | Search <a href="http://msdn.microsoft.com/">MSDN</a> for help with standard C or Windows functions
</small>


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.

Share this post


Link to post
Share on other sites
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++]

Share this post


Link to post
Share on other sites
The best way to save GameDev hard drive space is to STFW. That said, y''all get over it. Someone answered the poster''s question, and that''s all that really matters.

[ 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!

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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++]

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster

Let people ask whatever they want. no dictatorships please.

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

  • Advertisement