File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes problems with javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "problems with javascript" Watch "problems with javascript" New topic
Author

problems with javascript

vijaya saradhi
Ranch Hand

Joined: Dec 31, 2007
Posts: 32
as a javascript programmer I face a lot of problems with coding.First thing I found is its highly unstructured.Meaning like java it has no full object oriented structure.


and also the source code is made available in the browser.So that we must use some code obfuscation techniques.

in what way does this new javaFX so called client scripting language addresses these issues.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60997
    
  65

If you come to JavaScript expecting class-based OO, then yeah, you'll have problems. JavaScript is a functional language with prototype-based inheritance. It's actually quite an elegant language once you learn it -- but you do need to take the time to learn it.

P.S. The JavaScript 2 proposal adds classes.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60997
    
  65

Also, be sure not to confuse the abomination that is the browser DOM with JavaScript the Language.
James Weaver
author
Ranch Hand

Joined: Oct 11, 2007
Posts: 40
JavaFX Script is a declarative scripting language that is fully object-oriented and statically typed. Please take a look at the following blog post to see an example of all of these qualities:
Roll the Dice - A Compiled JavaFX Script Example


Thanks,<br />James L. (Jim) Weaver<br /><a href="http://JavaFXpert.com" target="_blank" rel="nofollow">"Helping you become a JavaFXpert" weblog</a>
James Weaver
author
Ranch Hand

Joined: Oct 11, 2007
Posts: 40
Vijaya,

Regarding your code obfuscation question, JavaFX Script is a compiled language, so it is distributed as .class files and is as obfuscated as Java. This reminds me, by the way, of the old saying: "Eschew obfuscation!" :-)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problems with javascript