Adblock breaks this site

JavaScript is NOT only a web programming language!

Discussion in 'Programming General' started by broady, Jan 2, 2009.

  1. broady

    broady Newcomer

    Joined:
    Nov 15, 2008
    Posts:
    22
    Referrals:
    0
    Sythe Gold:
    0
    JavaScript is NOT only a web programming language!

    Noobs. Discuss.
     
  2. Zyloch

    Zyloch Member

    Joined:
    Apr 21, 2005
    Posts:
    63
    Referrals:
    0
    Sythe Gold:
    0
    JavaScript is NOT only a web programming language!

    Well, what do you think it is? I don't think there are enough use-cases to consider it anything else than a web programming language. Yes, there are other uses (http://en.wikipedia.org/wiki/JavaScript#Uses_outside_web_pages). Chiefly, I've seen it often used in PDF files and the new Adobe AIR, but I don't think it has reached any sort of maturity to be considered, for example, an application programming language.
     
  3. Captain Picard

    Captain Picard Newcomer

    Joined:
    Dec 26, 2008
    Posts:
    1
    Referrals:
    0
    Sythe Gold:
    0
    JavaScript is NOT only a web programming language!

    Noobs? Well guess what, you're still posting in the wrong section, idiot! Even though Javascript isn't always used in the web, this is still the Java section! It would still belong in the Web Programming section because that's meant for Javascript!

    Anyways, Javascript was meant for the web. There are languages that are being used for the web, and off of it. PHP, a web language, can be used locally from the command line. Perl, generally for the command line, can be used in web applications! You see? There are no limitations for any language!

    (Note: The only reason Javascript is being used is because a lot of people won't have to go through the trouble of learning an entirely new scripting language + it's easier on the developers)
     
  4. Swan

    Swan When They Cry...
    Retired Global Moderator

    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner
    JavaScript is NOT only a web programming language!

    JavaScript is just a scripting language, it can be applied to almost anything given the correct API.
     
  5. SuF

    SuF Legend
    Pirate Retired Global Moderator

    Joined:
    Jan 21, 2007
    Posts:
    14,212
    Referrals:
    28
    Sythe Gold:
    1,234
    Discord Unique ID:
    203283096668340224
    <3 n4n0 Two Factor Authentication User Community Participant Spam Forum Participant Sythe's 10th Anniversary
    JavaScript is NOT only a web programming language!

    I have seen it used in a chat program. The moderators can do really anything they want. It also responds to CSS and HTML. Its kinda cool. You can be attacked with an infi loop of anything though... lul
     
  6. broady

    broady Newcomer

    Joined:
    Nov 15, 2008
    Posts:
    22
    Referrals:
    0
    Sythe Gold:
    0
    JavaScript is NOT only a web programming language!

    Thanks Swan :D

    With powerful VM's like V8, Rhino, SquirrelFish, and TraceMonkey we will see more and more usage of JS as a general purpose language.

    The language itself is extremely powerful and expressive (moreso than Java).
     
  7. Zyloch

    Zyloch Member

    Joined:
    Apr 21, 2005
    Posts:
    63
    Referrals:
    0
    Sythe Gold:
    0
    JavaScript is NOT only a web programming language!

    While I know that JS is extremely powerful, it still has a long way to go before it can become a general purpose language. V8, SquirrelFish, and TraceMonkey are helping to bridge the speed gap between JS and native code, but these are still primarily embedded in browsers. Rhino bridges a language gap, so people certainly can use that (although I would suspect converting some closures to classes suffers some performance hit if you are into that), but it is just not as popular as the traditional application programming languages.

    What you'll notice is that I did not say JS cannot be used for other purposes. I only said that it is too early to start talking about it like it is.
     
  8. Swan

    Swan When They Cry...
    Retired Global Moderator

    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner
    JavaScript is NOT only a web programming language!

    I doubt that - Java is an application development language, JavaScript is just a scripting language. A scripting language is only as good as the way it is implemented - JavaScript in web pages can only dynamically display content and in some cases interface with the web browser, JavaScript in Windows Script files can only execute the functions given by Windows, and so on.
     
  9. broady

    broady Newcomer

    Joined:
    Nov 15, 2008
    Posts:
    22
    Referrals:
    0
    Sythe Gold:
    0
    JavaScript is NOT only a web programming language!

    Swan, actually, no. ECMAScript is ECMAScript, DOM and other extensions are separate.
     
  10. Zyloch

    Zyloch Member

    Joined:
    Apr 21, 2005
    Posts:
    63
    Referrals:
    0
    Sythe Gold:
    0
    JavaScript is NOT only a web programming language!

    That is the idea. JavaScript is useful on the web because it is bound to the DOM. I have not seen a JavaScript implementation of application GUI, for example (except perhaps AIR).
     
  11. broady

    broady Newcomer

    Joined:
    Nov 15, 2008
    Posts:
    22
    Referrals:
    0
    Sythe Gold:
    0
    JavaScript is NOT only a web programming language!

    Zyloch, you can use JS with Rhino to code Swing, SWT or AWT, for example.

    Also, don't forget Flash/ActionScript.
     
  12. war833

    war833 Member

    Joined:
    Dec 11, 2008
    Posts:
    82
    Referrals:
    0
    Sythe Gold:
    0
    JavaScript is NOT only a web programming language!

    Wrong forum. Why would anyone want to use JS to code swing/awt over Java? WHY?
     
  13. Zyloch

    Zyloch Member

    Joined:
    Apr 21, 2005
    Posts:
    63
    Referrals:
    0
    Sythe Gold:
    0
    JavaScript is NOT only a web programming language!

    Personally, I have never used Rhino, so I don't know how efficient it is translating some of the features of JavaScript that Java does not have. You are probably right in that Rhino would provide some API for Java GUI through JavaScript, but in this case JavaScript is still jumping off of Java -- it hasn't developed its own identity.

    ActionScript... meh... that still has fairly limited use and relies completely on the Flash plugin. I see JavaScript being extended in use but still not to the point of being general use.
     
  14. Nullware

    Nullware Guru

    Joined:
    Jan 30, 2007
    Posts:
    1,761
    Referrals:
    4
    Sythe Gold:
    0
    JavaScript is NOT only a web programming language!

    I agree, especially due to Javascript being so lenient with variables and programming errors that can lead to hard to find problems.
     
  15. Sei Italiano

    Sei Italiano Forum Addict

    Joined:
    Feb 4, 2009
    Posts:
    578
    Referrals:
    1
    Sythe Gold:
    1
    JavaScript is NOT only a web programming language!

    ive made a java virus before
     
  16. cp

    cp an cat
    Banned

    Joined:
    Jan 30, 2007
    Posts:
    3,278
    Referrals:
    6
    Sythe Gold:
    0
    JavaScript is NOT only a web programming language!

    [​IMG]
    Like that CD Tray Opener that you made, right?

    Java is not the same as Javascript. Seeing as you would make such an elementary mistake, it's clear that you have not made any "virus" before, or know how one works at all.
     
  17. SilabGarza

    SilabGarza Active Member
    Banned

    Joined:
    Dec 26, 2008
    Posts:
    108
    Referrals:
    1
    Sythe Gold:
    0
    JavaScript is NOT only a web programming language!

    thats actualy quite impressive, those are pretty hard/almost impossible to make

    cuz ive seen many pro's at java try, and they all fail at it lol

    closest they can do is a DDoS'ing program, works pretty gud, shuts down ppl's computers if u no there ip lol, fun 2 use, lol its like a big game...

    but ya, i use java almost daily, since i run a java powered game (rsps (silabgarza))
    its all java, most of the java is in the client, which i suk at coding... the clients r not easy 2 make....

    Fun Fact: RuneScape's Current Cache is around: 530.
     
< quick question about domains | New Programmer, Little help? >


 
 
Adblock breaks this site