IntelliJ Java IDE
The moose likes HTML, CSS and JavaScript and the fly likes Javascript language doesn't seem very robust java Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Javascript language doesn Watch "Javascript language doesn New topic
Author

Javascript language doesn't seem very robust java

Wilson Mui
Ranch Hand

Joined: Apr 09, 2003
Posts: 140
I know javascript isn't suppose to be real java. But does anybody think the class creation syntax is totally counter-intuitive to how every other language creates classes. There doesn't seem to be any rhyme or reason to why creating a class should look just like creating a function.
Or is there a better way to create a class?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
When people ask me what classes are I usually send them to this site:
http://www.webdevelopersjournal.com/articles/jsintro3/js_begin3.html
JavaScript is not big on classes, a class seemed like an after thought in the language, but they can be useful. Do I use classes in my code? nope. I never really saw a need for it, but one day I might find that need!
JavaScript is not know to be a very good object oriented language. I persoannly rather just use multi-dem. arrays to keep trackof this type of information.
Eric
[ April 09, 2004: Message edited by: Eric Pascarello ]
 
 
subject: Javascript language doesn't seem very robust java
 
Threads others viewed
Readonly class attributes ?
help please!!!
Cannot create stub
[BOOJS] when or when not to use oo javascript
Pagination Problem
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com