• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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: 67752
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: 67752
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!" :-)
 
If you settle for what they are giving you, you deserve what you get. Fight for this tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic