• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problems with javascript

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also, be sure not to confuse the abomination that is the browser DOM with JavaScript the Language.
 
author
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
James Weaver
author
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 will open the floodgates of his own worst nightmare! All in a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic